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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
How do you create a "index month column" that evaluates the current Year+month to be = 0
next month from now gets the value 1 and previous month from now is -1
similarly 5 months ago gets the value -5
Solved! Go to Solution.
@Anonymous , A new column if you have date
= datediff(eomonth([Date],0), eomonth(today(),0), month)
Thank you! added a *-1 at the end to change to sign, so minus is in the past 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |