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! Learn more

Reply
jp2020
Helper I
Helper I

Date Ordering on Line Chart X Axis - 'dd-mmm' Format

I have an issue which I cannot resolve where the date ordering on my x-axis is like:

 

01-Oct, 02-Sep, 03 Sep, 04 Sep.....30-Sep

 

Its a 30 days rolling chart. I have a date dimension table and the order in that table looks correct.

 

What am I missing here?

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

hi  @jp2020 

for your case, you need to use sort by column in power bi, see more detail as below:

https://radacad.com/sort-by-column-in-power-bi

 

and I think you could just set sort by column with 'Date' column as below:

5.JPG

 

here is my simple sample pbix file, please try it.

if you still have the problem, please share your sample pbix file. that will be a great jelp.

 

Regards,

Lin

Community Support Team _ Lin
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-lili6-msft
Community Support
Community Support

hi  @jp2020 

for your case, you need to use sort by column in power bi, see more detail as below:

https://radacad.com/sort-by-column-in-power-bi

 

and I think you could just set sort by column with 'Date' column as below:

5.JPG

 

here is my simple sample pbix file, please try it.

if you still have the problem, please share your sample pbix file. that will be a great jelp.

 

Regards,

Lin

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

@jp2020 , Create a sort column like this and mark that as the sort column

 

Sort COl = format([Date], "MMDD")

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Sort Month Year.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

Thank you. I added that to the date demsion and ordered thay column but my visual is still not ordering as I expect.

 

If I drag that column into my visual then it does order fine but the display of the x-axis is 0903,0904....1001 etc which isnt what I want to see. I still want to see 02-Sep, 03-Sep etc.

 

 

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