Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Folks,
Solved! Go to Solution.
Please try this version.
Converted_AR2 =
VAR SelectedRate =
SWITCH (
TRUE (),
[SelectedCurrency] = "CAD", 1,
[SelectedCurrency] = "EUR", P_EUR_to_CAD_Rate[EUR_to_CAD_Rate_Value],
[SelectedCurrency] = "INR", DIVIDE ( 1, P_INR_to_CAD_Rate[INR_to_CAD_Rate_Value] ),
[SelectedCurrency] = "USD", P_USD_to_CAD_Rate[USD_to_CAD_Rate_Value],
BLANK ()
)
VAR ExchangeRate =
IF (
MAX ( DatesTable[Date] ) > Labels[Ledger_LatestDate],
SelectedRate,
[Exchange_Rate_Normalised]
)
VAR AccountsReceivable =
CALCULATE (
SUMX (
FACT_Actuals_Master,
( FACT_Actuals_Master[Credits] - FACT_Actuals_Master[Debits] )
),
FACT_Actuals_Master[Account Master Name] = "Accounts Receivable",
ALL ( DatesTable )
)
RETURN
AccountsReceivable * ExchangeRate * -1
Pat
Please try this version.
Converted_AR2 =
VAR SelectedRate =
SWITCH (
TRUE (),
[SelectedCurrency] = "CAD", 1,
[SelectedCurrency] = "EUR", P_EUR_to_CAD_Rate[EUR_to_CAD_Rate_Value],
[SelectedCurrency] = "INR", DIVIDE ( 1, P_INR_to_CAD_Rate[INR_to_CAD_Rate_Value] ),
[SelectedCurrency] = "USD", P_USD_to_CAD_Rate[USD_to_CAD_Rate_Value],
BLANK ()
)
VAR ExchangeRate =
IF (
MAX ( DatesTable[Date] ) > Labels[Ledger_LatestDate],
SelectedRate,
[Exchange_Rate_Normalised]
)
VAR AccountsReceivable =
CALCULATE (
SUMX (
FACT_Actuals_Master,
( FACT_Actuals_Master[Credits] - FACT_Actuals_Master[Debits] )
),
FACT_Actuals_Master[Account Master Name] = "Accounts Receivable",
ALL ( DatesTable )
)
RETURN
AccountsReceivable * ExchangeRate * -1
Pat
@Greg_Deckler I think I've shared a sample database with you here: https://www.dropbox.com/s/lhmjui5bmkgsri2/AR%20Database.pbix?dl=0
New to this, may not have done this properly.
@Greg_Deckler, thanks, I'll take a look at that and if I can't see anything obvious I'll set up a pbix replicating the problem.
@Anonymous It's hard to be certain what is going on here. Sometimes these kinds of issues are caused by the Auto-exist "feature".
User | Count |
---|---|
10 | |
9 | |
7 | |
4 | |
4 |