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 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 |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |