Forum Discussion
year over year variable
Trying to create an easy year over year growth chart but not finding any really simply charts
Would love to show it on a water fall chart
Also not easy to find calculation for year over year variance
7 Replies
- HabibContinued Contributor
Hi Anonymous Waterfall will be a good choice.
YOY should be simple if you want to use Calendar date :)
- Calculate Last Year Values using SAMEPERIODLASTYEAR
- Calcuate Variance based on TY-LY
- Calcuate Varinace % based on Variance/LY
- AnonymousNot applicable
Do you create custom column or calculated table?
If if want to show year over year change for past three years, how would this approach change?
- HabibContinued Contributor
It should be column. Please refer to below example.
I took sales sample for few years.
DateKey Sales 7/1/2006 100 7/1/2007 290 7/1/2008 300 7/1/2009 200 7/1/2010 130 7/1/2011 230 7/1/2012 950 7/1/2013 250 7/1/2014 340 7/1/2015 455 Created "LY Sales" column using below formula
LY Sales = CALCULATE(SUM(Sales[Sales]),ALL(Sales),PREVIOUSYEAR(Sales[DateKey]))
Added new column for LY Variance % as below
LY Variance % = CALCULATE(DIVIDE((SUM(Sales[Sales])-SUM(Sales[LY Sales])),SUM(Sales[LY Sales])), ALL(Sales[DateKey]))
Then put the DateKey and LY Variance % on waterfall chart. Here is the result.