03-28-2019 01:09 AM
03-28-2019 01:23 AM
03-28-2019 01:30 AM
03-28-2019 03:32 AMSolution
@Ubaid ur Rahman , I tried to do that on your data model, but didn't catch what do you calculate in it. Thus emulate on the table
It is named as Range in data model, the measure will be
CumulativeCountDifd:=CALCULATE ( SUM ( [Actual value] )/COUNTROWS(Range), FILTER ( ALLEXCEPT ( Range, Range[Year] ), Range[Month] <= MAX ( Range[Month] ) ) )
You may it in Power Pivot and result is in second sheet.