cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ccoslow Frequent Visitor
Frequent 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
Super User III
Super User III

Re: DAX formula for reordering the legend not working

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

Super User II
Super User II

Re: DAX formula for reordering the legend not working

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

ccoslow Frequent Visitor
Frequent Visitor

Re: DAX formula for reordering the legend not working

@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! 🙂 

 

 

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors