Forum Discussion
InsureBI
10 years agoAdvocate II
Moving 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
10 years agoCommunity Champion
InsureBI 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
10 years agoAdvocate II