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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors