Forum Discussion
YoY Calculation
ok, I am making progress, this is what I have so far:
So what this means is that since April 2016 the total policy count has went down 5742 policies.
What I want to do now is divide the 5742 by the beginning total pif of 8985 to get the total % decrease.
I can't figure out how to do this. Any help would be appreciated. Thank you fo the help so far.
Mark
- Whitewater1004 years agoSolution Sage
Hi Mark:
maybe something like:
Total PIF YoY Policy Change = CALCULATE([Total PIF Yoy Change], REMOVEFILTERS()) // to obtain -5,742
Total YoY % Chg =
var StartValue= MAX(Table[Total_PIF])
returnDIVIDE([Total PIF YoY Policy Change], StartValue,0)
The variable StartValuemay have to be played with.
Another way to write the StartValue variable:
MAXX(Table, [Total_PIF])
or CALCULATE[Total_PF], FILTER(ALL(Table), Table[Month-Year] = "April-2016'))
I think this should be good. I hope!