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
Aslam
Regular Visitor

Barcharts not representing in correct month order

Hi,

Can anyone help me,

My aim to get my bar diagram in a correct order( November 2021data should be left side and the latest data in right hand side).

Aslam_0-1663122382525.jpeg

 

 

My created time table data format is DD/MM/YY HH:MM:SS , However i just used only year and month

Aslam_1-1663122382526.jpeg

This is a line and cluster coloum chart

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Aslam , You should expand in that case so that year stays with the month and it gets sorted first by year and then a month. Seem like you have to use the next level 

 

or create a date table with month and year with the correct sort column(mark that as a sort column) and use that

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Aslam , You should expand in that case so that year stays with the month and it gets sorted first by year and then a month. Seem like you have to use the next level 

 

or create a date table with month and year with the correct sort column(mark that as a sort column) and use that

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

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.