Forum Discussion

jmeccles's avatar
jmeccles
Icon for Helper I rankHelper I
5 years ago
Solved

How 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?...
  • selimovd's avatar
    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 regards
    Denis