Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |