Forum Discussion
Anonymous
6 years agoNot applicable
Row number over rank column
I need to find top 10 sales as per Brand and Item.so consider in power bi table i have 3 column Brand ,Item ,sales. Now i have created a rank measure using rankx function,now the problem is 7 record...
- Anonymous6 years ago
Hi Anonymous ,
Create 2 measures as below:
Measure = var rank1=RANKX(ALL('Table'),CALCULATE(SUM('Table'[sales])),,DESC,Dense) Return RANKX(ALL('Table'),rank1+RANKX(ALL('Table'),CALCULATE(MAXX('Table','Table'[brand]&'Table'[item])),,ASC,Dense)/COUNTROWS(ALL('Table')),,ASC,Dense)_TOP 10 = IF('Table'[Measure]<=10,'Table'[Measure],BLANK())Then you will see:
For yhe related .pbix file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Have a look at this video.
https://www.youtube.com/watch?v=kRtmb8ftyQc
You can break the ranks and then apply filters in the visuals.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)