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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Line chart 'dd-mmm' X-Axis ordering

Hi,

I have the below Line chart.
line.PNG
I would like the X-Axis ordered by dd-mmm with the earliest date being left and the latest date being to the right. In the above visual it isn't like this. I have set the visual to sort by the X-Axis value. As a result you can see the ordering is by the day (dd). What I require is for the 29-Apr to be far left and the 22-Jul to be far right, and all ordered in between.

I have created the below DATE table.
date.PNG

Using the above SortBy column I was hoping the ordering would be correct.
1) I click on the Month and Year Day and Month field, in the fields pane, and then choose 'Sort by Column' in the Modeling ribbon, then choose the SortBy field. The Line Chart doesn't re-order how I hoped.
2) I then click on the ellipsis on the actual Line Chart visual and the options I have to sort by are the Month and Year Day and Month field or the field used for the values. I could not see an option to see the sort by the SortBy field.

The Day and Month column is a Text column.
The SortBy column is a Whole Number column.

How can I sort by the order I wish?
Thanks.

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You need to use Day and Month column intead of Month and Year in step 1.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-chuncz-msft  My mistake, and a crucial one. Where I mention Month and Year, I meant Day and Month. I have amended this now in the OP. All steps tried was using Day and Month.

When attempting Step 1. I get the below message.
SortBy.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.