Skip to main content

Hello! I've been a little stuck on this for a while...

 

I have a huge dataset which looks at the number of streams a song makes each year from 2000-2022. I want to look at the "Top N" (maybe 30 or 50) each year.

 

e.g... (not real dataset)

Is there a way to get theHowever, I'm not looking for a "ranking", I want to make calculations using Top N group such as...

  • What % of streams did the 'Top N' make out of all songs that year?
  • What % of the Top N streams were 'Pop' each year?

 

I basically want to treat the 'Top N' as it's own group so I can do analyses within that group but also to look at the group relative to the whole dataset.

 

Is there a way to do this? Many thanks for your help :)

1 answer
0/9000