r
2 TopicsRolling calculation for previous 12 months
I have a cumulative hours (last 12 months) caculator DAX as follows: Cumulative HOURS = CALCULATE( SUM('Unit'[Hours Worked]), DATESINPERIOD('Unit'[Month], LASTDATE('Unit'[Month]),-12,MONTH )) This will give me the cumulative value for last 12 months, say June 2021 to May 2022. I now want to plot this agaist cumulative of previous 12 months, that is July 2020 - June 2021. How should I modify DAX to get these values. I want both line graphs in the same plot for comparison. How do I go about doing that? Thanks in advance!Solved1.5KViews0likes2Comments