Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
icdns
Post Patron
Post Patron

Dynamic Ranking Based on Filters selection

Hi, 

 

I would like to ask for your help in creating a RANKING column and the Ranking will be dynamic based on the filters selected (In this case, i have dimensions in my table that I would like to use as my filters). 

 

Once I have my dynamic ranking column, I will then have another column that consists of my TOP 1 to 5 and others will be group as "OTHERS"

 

I tried this DAX below and it worked. However, It is showing 1 to XXX but when I filter it by any dimension it is not displaying the correct value. 

 

1) No Tie column = 'TABLE'[Sales]+RAND()
2) RANX Total Sales (No Tie) =
RANKX(
'TABLE',
'TABLE[No Tie column]
)
 
 
My Expectation: 
 
From this table:
icdns_0-1660287186921.png
 
To this: 
Others will be group to "Others" and their sales will be summed
icdns_1-1660287248269.png

 

Thank you!

 

1 ACCEPTED SOLUTION
2 REPLIES 2
icdns
Post Patron
Post Patron

This really helped! Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.