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

@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
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.