Forum Discussion
Variance Between Years
- Anonymous7 years ago
Any help?
Hi,
It is example of output, Another Screen shot below and a small data set. Hope this helpSample DataEnd output
Hi,
Since you only have Year (Period column) with no date, we will have to first create a Date columm in the Data model by using the following calculated column formula =DATE([Period],12,1). Then create a Calendar Table and build a relationship from the Date column (created with the calculated column formula above) to the Date column of the Calendar Table. In the Calendar Table, create a Year column by using =YEAR(Calendar[Date]). In your visual, drag Year from the Calendar Table. Write these measures:
Volume=SUM(Data[Vol])
Volume in PY=CALCULATE([Volume],PREVIOUSYEAR(Calendar[Date]))
Absolute volume change=[Volume in PY]-[Volume]
% volume change=[Absolute volume change]/[Volume]
Hope this helps.