Forum Discussion
LotteLaugesen
4 years agoHelper V
Problem with running total
Hi
Can anybody tell me what's wrong with my running total? Why doesn't it aggregate when I have different Currency LCU?
Can anybody tell me how to solve it? When I remove Currency LCU there is no problem.
My calculation:
BR
Lotte
11 Replies
- tamerj1Community Champion
HI LotteLaugesen
Try to add ALL ( TableNam[Currency LCU] ) inside the CALCULATE function.- LotteLaugesenHelper V
Hi tamerj1
Thanks - It almost works π
The first 2 lines are adding up, but below you can see that 2 other lines are not
Have you got any more other ideas?
- tamerj1Community Champion
- AnonymousNot applicable
Hi LotteLaugesen ,
Please use ALLEXCEPT() function on [Current LCU]
Acc. DKK Amount = VAR RT = IF ( [DKK] <> BLANK (), CALCULATE ( 'Misc calc'[DKK], ALLEXCEPT ( 'table', 'table'[Current LCU] ), FILTER ( ALLSELECTED ( 'Dim Calendar' ), 'Dim Calendar'[Date] <= MAX ( 'Dim Calendar'[Date] ) ) ) ) RETURN RTBest Regards,
Jay
- LotteLaugesenHelper V
Hi Anonymous
Unfortunately it just made it worse π
- AnonymousNot applicable