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
caique_aquatico
New Member

Order a graph by dynamic measures

Hello guys,

So, I have some graphs using dynamic measures, but I want to order these graphs always by the dynamic measure and not by the y-axis

Summarizing, I want to be like this, with the x-axis going from 1 to 7:

caique_aquatico_0-1697029179595.png

 

But everytime I change the measure, to "Regiao", for example, and I get back to "Renda" the graph order by "total operations", my y-axis

Can I always order by the dynamic x-axis measure in Power BI?

3 REPLIES 3
christinepayton
Super User
Super User

You're using field parameters, right? The only way I've found to do this is a janky workaround involving bookmarks. Here's a video on how it works (it's in the second half): https://youtu.be/Nt3QgZrJXfY

I realize this response is almost two years old but it helped me today.  One of these days I hope bookmarks can be done dynamically/programmatically (or maybe they can and I'm just behind), but this helps for what I'm doing.  Thanks!

amitchandak
Super User
Super User

@caique_aquatico , Create a measure on which you want sort the axis and use that on tooltip and use that as sort column.

 

Ideally, measure sort works well, not the axis sort. But you can try this solution in case of measure too

Power BI Field Parameters, Keep Axis Sort intact| Always Sort on X-Axis/Categorial Axis: https://youtu.be/GfBrB6czByw

 

Modify it work for measure in your case

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.