Forum Discussion
ansar
4 years agoHelper II
Incorrect Cumulative Total / Running Total - Text field
Hi Dears, Need your help here Am trying to create a measure to get cumulative total of a [Prov USD] (Measure summing provision amounts) based on customer name. Totals showing for other two column...
- 4 years ago
Greg_Deckler : In column 1(Cumulative Prov 2) is aggregating values from column 2(Prov USD) .The total showing in column 2 is not matching with the Column 1 where i have highlited in the image,
It got resolved once i removed the blanksCumulative Value Prov =VAR thisCustProv = [Prov USD]VAR TotalProvAllCust =CALCULATE([Prov USD], ALL('Customer DB'[Cr. Name]))RETURNIF(ISBLANK([Prov USD]),BLANK(),CALCULATE([Prov USD],FILTER(ALL('Customer DB'),[Prov USD]>=thisCustProv)))Regards,
Ansar
Greg_Deckler
4 years agoCommunity Champion
ansar So what is not correct in your image?
ansar
4 years agoHelper II
Greg_Deckler : In column 1(Cumulative Prov 2) is aggregating values from column 2(Prov USD) .The total showing in column 2 is not matching with the Column 1 where i have highlited in the image,
It got resolved once i removed the blanks
Cumulative Value Prov =
VAR thisCustProv = [Prov USD]
VAR TotalProvAllCust =
CALCULATE([Prov USD], ALL('Customer DB'[Cr. Name]))
RETURN
IF(ISBLANK([Prov USD]),BLANK(),
CALCULATE(
[Prov USD],
FILTER(ALL('Customer DB'),[Prov USD]>=thisCustProv)
))
Regards,
Ansar