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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Swartkat75
New Member

Converting ranking into percentage of maximum

Hi there

 

I am super novice and trying to convert a ranking of train stations - in this example 1 to 84 (based on their level of tree coverage) - to percentage. I.e. The highest-ranking station is 84 so his percentage ranking will be 100%. 84/84.

 

I just don't know how to right the DAX formula to do this?

 

This is how far I have come: 

 

RANKING SCORE = DIVIDE('URBAN ECOLOGY Measure - Urban_tree_canopy_coverage'[RANKING],84)
I would like to know what the correct DAX is to refer to the MAx Ranking measure, instead of just plugging the number in, 84.

 

I have done this conversion in Excel and added the column to check if the formula works ("SCORE - Urban tree canopy coverage").

 

Swartkat75_0-1625101897199.png

 

 

2 REPLIES 2
wdx223_Daniel
Super User
Super User

countrows(allselected(table[station precinct])

??

I have progressed slightly with this formula: 

 

RANKING SCORE = DIVIDE('Table'[RANKING],max('Table'[RANKING]))
 
Using the MAX function rather than reference the measure (MAx Ranking = max(Table[Ranking)]. 
 
 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.