Note that unlike previous Just Dance games (and unlike the description on the site) this achievement actually only requires you 3-star 40 different songs from the base game. There are 41 songs in the base game (not counting extreme/alternate versions), so you can actually fail to superstar one of the songs in the base game. I personally did all the base songs except "All the good girls go to hell" (when I unlocked the achievement I still had never played this song)
It's also worth noting that songs you 3-star in World Dance Floor actually do count. I know this because I megastarred 4 songs in WDF, then megastarred another 36 in regular play and got this achievement as well as the megastar achievement.
One thing I'm unsure about is if extreme or alternate versions count towards this achievement. When I unlocked it I still hadn't played any extreme versions of songs so I am unsure if you can avoid other base songs in place of alternate versions.
Also, this does stack with the superstar and megastar achievements. I unlocked all 3 at the same time after completing a megastar on my 40th song.