Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
This link has anM script to create a date dimension table.
https://insightsoutliers.com/2018/04/19/m-script-date-dimension/
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 50 | |
| 41 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 138 | |
| 121 | |
| 57 | |
| 37 | |
| 32 |