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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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