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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors