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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Date Table

Hi

 

I am trying to create a date table of previous month, current month and next 11 months

 

How can I do this in either M Language, or DAX

 

I want to then use this 13 month rolling table, as axis in my tables

 

I am stuck - any help appreciated

 

Cheers

J

2 REPLIES 2
gooranga1
Power Participant
Power Participant

This link has anM script to create a date dimension table.

 

https://insightsoutliers.com/2018/04/19/m-script-date-dimension/

jthomson
Solution Sage
Solution Sage

You can leverage pulling today's date in as a variable and the EOMONTH function - offset backwards from the eomonth of today a couple of months and add 1 day to get a start value, then offset forwards 11 months to get your end value

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.