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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.