You need to select all the songs that belong to the same album, then right click (if you have a PC - I guess it's ctrl-click if you are on Mac but I'm not sure) and go in the "Get Info" section. Then you go to the Options tab and click the box for "Part of a compilation". You can also achieve the same results, if I remember correctly, by clicking the "Album" box in the Info tab.