Forum Discussion

Chorri21's avatar
Chorri21
Frequent Visitor
9 years ago
Solved

Cumulative Total

Hy,

 

I had an issue with a latest project for my company. The task was to show the liquidity ratio per month (filtered by the chart of account Id). A formula for calculating the cumulative total was used. I used many variations of the cumulative totals formula which are mentioned even here on the PowerBI community pages. One of them is this one for example:

 

Cumulative = IF(COUNTROWS(GeneralLedger) > 0, CALCULATE([LiquidityRatio],FILTER(ALL(GeneralLedger[Date]), GeneralLedger[Date]<= MAX(GeneralLedger[Date]))),BLANK())

 

The filtering of the chart account id was done in the Filters option.

The issue appears when I present the results with a line chart or a area chart. When I use a waterfall chart, the results are suming up as they should, but the line and area chart do not present the data in the desired way. Here is what happens:

 

 

 

This is an example with a modified data set where just three months are used, April with a liquidity ratio of $632K, May with $17K and june with a negative of -$4.733. As you can see the values are not sumed up (the line is not rising) they are just presented as an apsolute value per month.

Any ideas why is this happening that way?

 

3 Replies