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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
pfarahani
Helper II
Helper II

Line Chart not Sorting in correct Order

Hello,

I have a Line Chart posted below. And the sort of the chart is not correct for some reason. In my Date slicer I have 1/1/2017 - 12-31/17 to get all of 2017. However in the Chart it is displaying in order of March, August, January, October, June, February ...... and so on. Perhaps it is because in the Date Slicer I am using a field called FullDate and in the chart Axis I am using a field called MonthName, maybe the different fields are causing this? Any ideas what I can try.... Thanks!

Capture.PNG

1 ACCEPTED SOLUTION
Toerstad
Advocate I
Advocate I

Hi.

I dont know what your calendar table looks like, but if you use a separate date dimension or calendar table try this:

  1. Go to your calendar table in the data view.
  2. Selct the MonthName column
  3. Under the "Modeling"-tab in the ribbon, in the "Sort"-group, select "Sort By Column"
  4. Choose the column you want the column to sort by. With a proper date dimension or calendar table a YearMonth column is usually a good choice. But often MonthNumber will do.

To create a YearMonth-column if you dont have one you can add a custom calculated column in your date dimension table. A good format for such a column is "YYYYMM". This format will allways sort in the correct order. After adding this column you can choose it as a "Sort By Column" as per instructions above.

View solution in original post

1 REPLY 1
Toerstad
Advocate I
Advocate I

Hi.

I dont know what your calendar table looks like, but if you use a separate date dimension or calendar table try this:

  1. Go to your calendar table in the data view.
  2. Selct the MonthName column
  3. Under the "Modeling"-tab in the ribbon, in the "Sort"-group, select "Sort By Column"
  4. Choose the column you want the column to sort by. With a proper date dimension or calendar table a YearMonth column is usually a good choice. But often MonthNumber will do.

To create a YearMonth-column if you dont have one you can add a custom calculated column in your date dimension table. A good format for such a column is "YYYYMM". This format will allways sort in the correct order. After adding this column you can choose it as a "Sort By Column" as per instructions above.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.