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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Gr8apmech
Helper I
Helper I

Dates not showing in chronological order - Date Table

My dates are not visualizing in chronological order since i created a date table and linked the receipt date to the date table (relationship).
 
Need help making these visualize in chronological order on all my charts.
i've tried using a sort calculation for my Month & Year column with this:  Year - Month - Sort = YEAR('Date'[Year])*12+Month('Date'[Date])-1
 
Below is the chart i'm stressing over:  Note the dates are not in chronological order.  
 Gr8apmech_0-1721769027885.png

Below is the table from chart above:

Dates not chronological order.png

Below is the Date table showing how i have the Month & Year column sorted by the Month Year Sort column with the above calculation.

DateTable.png

How can i get all of my dates to visualize in chronological/date order?

Thanks Community! You have been very helpful so far!

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

What is in your year-month column?  It doesn't look right (but it's hard to see). I normally use YYYYMM as this sorts well. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

3 REPLIES 3
Gr8apmech
Helper I
Helper I

For others, I followed @MattAllington advice and created another column on my date table to sort by.

Here's that formula:  

MonthYr = format('Date'[Date],"YYYYMM")
I then changed my Month & Year to sort by column MonthYr.  Worked like a charm!
 
Thanks @MattAllington 
Gr8apmech
Helper I
Helper I

I love how simple this solution is!  Thanks very much.  I can now rest!

MattAllington
Community Champion
Community Champion

What is in your year-month column?  It doesn't look right (but it's hard to see). I normally use YYYYMM as this sorts well. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.