The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |