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
stevemenke
Frequent Visitor

Incorrect X-Axis order for dates using SUM aggregation

I have two bar charts plotted with a date heirarchy on the x-axis using the same data. The top chart aggregates by sum the bottom by count. The aggregation by SUM chart does not sort the x-axis properly. See attached picture. Actually any aggregation works except for the sum.

 

Screen Shot 2017-11-20 at 8.21.08 AM.png

 

I can supply an example pbix file. But I don't see how to attach in this forum.

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @stevemenke,

 

Please click the top right corner of the chart (...) then select sort by x axis column. 

 

q1.PNG

 

If the issue persists, you can upload the pbix file to your OneDrive or Dropbox and share the link here. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @stevemenke,

 

Please click the top right corner of the chart (...) then select sort by x axis column. 

 

q1.PNG

 

If the issue persists, you can upload the pbix file to your OneDrive or Dropbox and share the link here. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks. That worked. But it seems like the sort order changes whenever you change the aggregation method. Is that expected?

Hi @stevemenke,

 

Based on my test in the latest Power BI desktop version 2.52.4921.682 64-bit (November 2017), as long as we set the sort based on the X axis values for the chart, change the aggregation for the values doesn't affect sort order. You can see attached pbix file. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors