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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
FredrikJ
Resolver I
Resolver I

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
Super User
Super User

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors