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

Ranking in Descending Order

Hi,

 

Is there a way to create an index or rank measure for the following graph, where 'Unknown' is always displayed on the extreme right-hand side of the graph, regardless if it has the lowest value or not?

Thanks in AdvanceCapture (3).PNG

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@BICrazy 

I am assuming your value is from a measure.  In my sample I have another measure that checks the value and returns 0 if it is "Unknown".

Ranking = 
VAR _Value = SELECTEDVALUE ( YourTable[Value] )
RETURN
IF ( _Value = "Unknown",0,[Total Amount])

Then I can add this second measure as a tooltip to the chart which will then let me sort by it.

jdbuchanan71_0-1634962316495.png

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@BICrazy 

I am assuming your value is from a measure.  In my sample I have another measure that checks the value and returns 0 if it is "Unknown".

Ranking = 
VAR _Value = SELECTEDVALUE ( YourTable[Value] )
RETURN
IF ( _Value = "Unknown",0,[Total Amount])

Then I can add this second measure as a tooltip to the chart which will then let me sort by it.

jdbuchanan71_0-1634962316495.png

 

@jdbuchanan71  Thank you - this is exactly what I was looking for.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.