Forum Discussion
InsureBI
Advocate II
10 years agoMoving Average Formula ERROR
I have a table of policy coverage and effective date and I am trying to compute a daily moving average of premium. Here is the formula I constructed, utilizing answers to similar questions on this f...
Sean
Community Champion
10 years agoInsureBI Try these MEASURES
SumCov MEASURE =
CALCULATE (
SUM ( Policy[Coverage] ),
FILTER ( ALL ( Policy ), Policy[Eff_Date] <= MAX ( Policy[Eff_Date] ) )
)
MovAvg MEASURE =
DIVIDE (
[SumCov],
CALCULATE (
COUNTROWS ( Policy ),
FILTER ( ALL ( Policy ), Policy[Eff_Date] <= MAX ( Policy[Eff_Date] ) )
),
0
)InsureBI
Advocate II
10 years ago