Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
@Dom_Smith825 It's hard to be certain what is going on here. Sometimes these kinds of issues are caused by the Auto-exist "feature".
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |