Forum Discussion
jmeccles
Helper I
5 years agoHow to Determine Same Period Specific Year
Hello, Just as SAMEPERIODLASTYEAR can change the context of a measure to parallel dates last year, is there a way that I can calculate a meaure in the context of a very specific year -- e.g. 2019?...
- 5 years ago
Hey jmeccles ,
yes, you can use the function PARALLELPERIOD to get an individual period.
So you could do:
MyParallelMeasure = CALCULATE( [MyMeasure], PARALLELPERIOD( Datetable[Date], -2, YEAR ) )If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
selimovd
Most Valuable Professional
5 years agoHey jmeccles ,
yes, you can use the function PARALLELPERIOD to get an individual period.
So you could do:
MyParallelMeasure =
CALCULATE(
[MyMeasure],
PARALLELPERIOD(
Datetable[Date],
-2,
YEAR
)
)
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic