Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
BR
Lotte
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
RT
Best Regards,
Jay
Hi @Anonymous
Unfortunately it just made it worse 😉
HI @LotteLaugesen
Try to add ALL ( TableNam[Currency LCU] ) inside the CALCULATE function.
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?
In this case use
ALLSELECTED ( TableNam[Currency LCU] ) inside the CALCULATE function.
please try
Acc. DKK Amount =
VAR RT =
IF (
[DKK] <> BLANK (),
CALCULATE (
[DKK],
ALLSELECTED ( FT_ARAP_Invoices ),
REMOVEFILTERS ( 'Dim Calendar' ),
'Dim Calendar'[Date] <= MAX ( 'Dim Calendar'[Date] )
)
)
RETURN
RT
@tamerj1 thank you for your time, but it didn't make any difference.
The final result is correct so right now I will go with this 😉
@LotteLaugesen
Last trial
Acc. DKK Amount =
VAR CurrentDate =
MAX ( 'Dim Calendar'[Date] )
VAR RT =
IF (
CurrentDate <> BLANK ()
&& [DKK] <> BLANK (),
CALCULATE (
[DKK],
ALLSELECTED ( FT_ARAP_Invoices ),
REMOVEFILTERS ( 'Dim Calendar' ),
'Dim Calendar'[Date] <= MAX ( 'Dim Calendar'[Date] )
)
)
RETURN
RT
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |