This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
I need to create a calculated DAX column to tell me the number of months from today.
So any rows where the date is in this month for example would show 0
Rows for last month would be 1
Rows for six months ago would be 6
Next month I guess would be -1
I tried this but without the year included it doesn't work once we get to the previous year
= MONTH(TODAY()) - MONTH([DATE])+1
Solved! Go to Solution.
Hi @JemmaD DATEDIFF like this
Hi @JemmaD DATEDIFF like this
do you want to create a column or a measure? could you pls provide some sample data and expected output?
Proud to be a Super User!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 26 | |
| 24 |