Forum Discussion

PhilST's avatar
PhilST
Regular Visitor
7 years ago
Solved

WoW trend calculation

Hi all,   I am working on a dashboard for some days now but I am unable to find a solution to my problem of including WoW changes for data on a weekly basis. I would love to include a third column ...
  • MFelix's avatar
    7 years ago

    HI PhilST,

     

    If you just want to calculate the WoW add the following measure to your model then put it on a table visual.

     

    WoW =
    VAR weekselection =
        MAX ( Table1[rec_week] )
    RETURN
        SUM ( Table1[receipts] )
            - CALCULATE (
                SUM ( Table1[receipts] );
                FILTER ( ALL ( Table1[rec_week] ); Table1[rec_week] = weekselection - 1 )
            )

    Be aware that this won't work for previous year, do you need to pick from last week of previous year also?

     

    Regards,

    MFelix