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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ccoslow
Regular Visitor

DAX formula for reordering the legend not working

Hi All,

I'm attempting to reorder a legend on one of my visuals using a DAX formula from this tutorial: 

https://www.seerinteractive.com/blog/reorder-powerbi-legend/

But even though I've followed the tutorial to a science, it's still not reordering my legend. The last three legend items are fine, it's just the "10>" should be at the end. Any ideas about why this might not be working? I've playhed around with the relationship details and nothing has changed. Below are screenshots of the visual and my "Sort" query.   

 

legendshot.JPG


legendshot2.JPG

3 REPLIES 3
az38
Community Champion
Community Champion

Hi, @ccoslow 

It looks like you are orderng by value, not by "order" column 

are you sure you have no excessive spaces in "10>" text?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@sturlaws @az38 

 

Hello! Thank you both for your help. I realized it wasn't changing the legend order because I had two fields in the legend column, not just value. It's the small things that often get us! 🙂 

 

 

sturlaws
Resident Rockstar
Resident Rockstar

Hi, if you have done everything according to that tutorial, it should work. If you could share a sample of your file, it will be easier to see what's happening.

 

-s

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors