Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Waterfall "Total" column is incorrect

I have a developed a report relating to risk management that compares risks left over from 2023 and monitors progress as those risks are resolved. You can see that the gauge is showing the total percent accurately, which is simply dividing the count of backlog risks processed (1050) by the static total backlog count from end of last year (3451):

 

 

[BacklogProcessed] / [RisksDec31]

 

 

However, I then had the task of breaking out the progress by month as well, and I thought a waterfall chart would be good for this purpose. First, I made a measure to calculate the backlog risk count from the previous month:

 

 

PrevMonthRiskCount = 
CALCULATE(DISTINCTCOUNT(risk_table[risk_id]), PARALLELPERIOD(calendar_table[date].[Date],-1,MONTH))

 

 

Then I plugged that calc into a monthly percent calc:

 

 

Backlog Processed % Monthly = 
DIVIDE(
([PrevMonthRiskCount] - DISTINCTCOUNT(risk_table[risk_id])) --to find # of risks processed in the month 
,    
 CALCULATE([RiskCountLatest], PARALLELPERIOD(calendar_table[date],-1,MONTH)) --to find starting risk count for each month
 ,0)

 

 

However, my DAX must be off somewhere because the Waterfall total (34.4%) always comes out higher than the gauge total (30.4%). Any idea where I went wrong?

3 Replies