Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

How to calculate Total Variance for January month

Hello,    I am struck at how can we calculate the total variance for January month for a particular project.  I came to know that the total variance for January month = (Current month Variance) - ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    If you do not have a date table, you need to create a date table (Date dimension) and connect your snapshot date to the date in newly created date table. 

     

    Then create 3measures

    1- YTD Current Month := TOTALYTD(SUM('Project Costs'[Variance]), Date[date])
    2- YTD Prior Month := CALCULATE( [YTD Current Month], PREVIOUSMONTH(Date[Date]))
    3- MTD (January) := [YTD Current Month] - [YTD Prior Month]

  • Anonymous's avatar
    Anonymous
    8 years ago

    Yes, I got it, Thank you Anonymous for your help :)