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.
Hi,
I need to get a spot value of a measure from 12 months ago, but this needs to be a dynamic calculation.
I don't need the rolling/last 12 months cumulative figure, just spot value of the measure from 12 months ago.
I have a conventional date table in my model and am struggling with the DAX.
Any advice appreciated, thank you.
Solved! Go to Solution.
Thanks all I managed to resolve my using month offsets 🙂
Hi how did you solve it because I'm also trying to do the same but all the formulas in DAX i tried, giving me blank or sum or fixed results..Thanks
Thanks all I managed to resolve my using month offsets 🙂
Hi @DW868990
Can you provide your sample and expected result through a pbix file(remove sensitive info) or a screenshot ?
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DW868990 ,
12 Months Ago =
CALCULATE( [Measure to Calculate], DATEADD( 'Calendar'[Date], -1, YEAR ) )
You could try this, but need to replace the [Measure to Calculate] with whatever calculation you're trying to perform - it could be an existing measure or it could be a SUM / AVERAGE over a fact table column.
Thanks but this returns 12 data points, of the last 12 months, and i am looking for only 1 data point, but 12 months ago.
How are you trying to present the data? Is it one data point in a card visual? A matrix of dates with their value from 12 months ago? Or a line chart in which you want to show for each date what the data point was from 12 months prior?
a line shart with the data point of today, and only other data point showing being 12 months ago
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 |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |