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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

why does the data order on the X axis in a chart line graph change when I change its aggregation ?

Hello,

I have a table which is the result of a group by, so it has 1 column ExtractionDate (texte format : "20221225") and 1 column "Number of lines" (which is a integer).

In the data model, I have set "Number of lines" to "Do not summarize". First, why does Power BI chooses "Sum" by default instead of "Do not summarize" here ? I would think that if I want to do additional calculations, I would do it myself...

 

I then want to display this in a line chart. I put ExtractionDate in my X axis and "Number of lines" in my Y axis. By default it chooses the aggregation "Number" for my Y axis. I get that (the ExtractionDate is in the right order because I have sorted the data that way in my transformation steps) but it is not of course the graph I want to show :

jmclej2_0-1668686818379.png

But then, when I change from "Number" to "Sum", I get the expected graph EXCEPT that it reverses the "ExtractionDate"...

jmclej2_1-1668687352229.png

Why is that and how can I have the ExtractionDate in the correct original order AND the expected graph ?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Seem like you have sorted your visual on value, sort it on axis column

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hello,

I did nothing else that what I've described above.

What is this difference you make on sorting the visual on "value" or on "axis column" ?

For you the behaviour I have is normal ? I don't understand the logic behind, if you can enlighten me please.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.