Forum Discussion

PhMeDie's avatar
PhMeDie
Helper I
6 years ago
Solved

Previous Period Measure in Retail Calendar Logic

Hi, I'd appreciate your help on a DAX measure.   We are on a 4-4-5 calendar. I have a date table in which I have a column with the calendar date. Furthermore I have an additional column which indi...
  • PhMeDie's avatar
    PhMeDie
    6 years ago

    Hi,

     

    in the end the following formula did the trick.

     

    Previous Year Revenue =

    CALCULATE (

    [Net Sales VAT excluded EUR],

    FILTER (all(Calendar_day),Calendar_day[Commercial Date_Next Year ] in values(Calendar_day[Calendar Date])))

     

    This approach requires that in the calendart able a second column is maintained containing the comparable date of last year.

     

    Thanks anyways for your help.

     

    Best,

     

    Philipp