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
spartanboy
Helper II
Helper II

Help with Rank on Measure

Hi - Please help with Ranking in attached pbix..
 Ranking is supposed to be: for each SKU by MFG

spartanboy_0-1660056887288.png

https://www.dropbox.com/s/8q0d95e5edp5wze/Sample_PBI.pbix?dl=0

 

TIA

 

4 REPLIES 4
ribisht17
Super User
Super User

ribisht17_0-1660104753933.png

All_In_One_Aug_22 - Google Drive > Look for the page with a name as RANKX , there are multiple pages there

ribisht17
Super User
Super User

@spartanboy 

 

Something similar to this one 


Rank2 = RANKX( filter(ALL(samplesuperstore[Country],samplesuperstore[City]),samplesuperstore[Country]=max(samplesuperstore[Country])),CALCULATE(sum(samplesuperstore[Profit])),,ASC,Skip)
 
ribisht17_0-1660059862794.png

 

 
Thanks,
Ritesh

@ribisht17 
Matching my example with yours.

I have a slicer with Continent, if i choose any single continent then ranking should be only for corresponding countries. The above DAX yields with 1 for all the continents/country/city.

Can you provide a pbix workbook with your example please?

@ribisht17 

 

Thanks for the update. How can i not RANK "Supplier 1" in the attached file?

https://www.dropbox.com/s/8q0d95e5edp5wze/Sample_PBI.pbix?dl=0

 

 

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.