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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
jeongkim
Post Prodigy
Post Prodigy

Order tooltip values descending

Hi,

 

Can we order higher to lower values? 

hope to be 

 

3738

425

69

1

1

 

jeongkim_0-1752634502377.png

 

1 ACCEPTED SOLUTION

While you can use a page tooltip, creating a calculated table to materialize measures is not the right approach. Calculated tables are static and do not respond to slicers or cross-filtering, even if the measures they reference do. A better solution is to use a disconnected table that lists the measure names in a column, then reference that column in a measure to return the corresponding value based on the current row.

 

danextian_0-1752652418435.png

The Hex colums above are the to be used to create a DAX-generated conditional formatting icons. SVG Conditional formatting icons do not accept hexadecimal values starting with # so %23 is used instead

 

Circle Icon = 
VAR _Color =
    SELECTEDVALUE(MeasuresToBeSorted[Hex2])

VAR _SVG =
    "data:image/svg+xml;utf8," &
    "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'>" &
        "<circle cx='10' cy='10' r='8' fill='" & _Color & "' />" &
    "</svg>"

RETURN _SVG

danextian_1-1752652708161.png

Notice that the sorting of the measures in the imabe below changes.

danextian_2-1752653791230.gif

Please see the attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

6 REPLIES 6
grazitti_sapna
Super User
Super User

Hi @jeongkim,

 

Power BI do not support sorting multiple measures dynamically in descending order.

But you can achive this by below work around 

 

TooltipTable =
UNION(
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric A", "Value", [MeasureA]),
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric B", "Value", [MeasureB]),
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric C", "Value", [MeasureC])
)

 

Then sort TooltipTable by Value descending.

Add a tooltip page, create a table and add the values to it.

Show it as a tooltip on your visual.

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

I just created tooltip page before you advised, what is the impact creating below measure you suggested? 

 

TooltipTable =
UNION(
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric A", "Value", [MeasureA]),
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric B", "Value", [MeasureB]),
SELECTCOLUMNS(VALUES('YourTable'), "Measure", "Metric C", "Value", [MeasureC])
)

 

 

jeongkim_0-1752650320455.png

 

While you can use a page tooltip, creating a calculated table to materialize measures is not the right approach. Calculated tables are static and do not respond to slicers or cross-filtering, even if the measures they reference do. A better solution is to use a disconnected table that lists the measure names in a column, then reference that column in a measure to return the corresponding value based on the current row.

 

danextian_0-1752652418435.png

The Hex colums above are the to be used to create a DAX-generated conditional formatting icons. SVG Conditional formatting icons do not accept hexadecimal values starting with # so %23 is used instead

 

Circle Icon = 
VAR _Color =
    SELECTEDVALUE(MeasuresToBeSorted[Hex2])

VAR _SVG =
    "data&colon;image/svg+xml;utf8," &
    "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'>" &
        "<circle cx='10' cy='10' r='8' fill='" & _Color & "' />" &
    "</svg>"

RETURN _SVG

danextian_1-1752652708161.png

Notice that the sorting of the measures in the imabe below changes.

danextian_2-1752653791230.gif

Please see the attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @jeongkim,

 

You can skip it.

Mark it as a solution if your issue has been fixed.

 

 

You're sugesting OP to use a calculated table which won't be cross-filtered by by the dimensions in the line chart? That will return in accurate numbers for a specific data point.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @jeongkim 

That isnt currently possible. Measure tooltips are ordered based on their order in the tile field. Tooltips from using  a legend follow the sort order of the legend values. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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