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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
FredrikJ
Helper II
Helper II

Sorting barchart with two date calculations not working

Hi!

 

I have a bartchart with two date calculations as legend ( WTD and WTD LY). When I try to sort the axis after the value (Sales Net) it will not sort, it still sort alphabatically after the x-axis(Region). If the chart only have one date calculation in the legend the sort with value (Sales Net) works fine. The Report is built on a dataset with live connection to a multidimensional SSAS cube.

 

 

FredrikJ_0-1642150930064.png

Regards

Fredrik

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @FredrikJ 

 

When it has multiple values in the legend, it would be ambiguous when trying to sort by the value as the sorting result would be different for each legend value. I think that's why it works fine when the chart only has one date calculation in the legend, but fails when having two. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

freginier
Solution Specialist
Solution Specialist

You need to create a ranking column and sort it. 

I don't know if you can do this with SSAS live connection 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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