Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi All,
I have two tables transactions and Exchangerates. created two measures one to get the exchange rates for multiple currency and other to get the total amount (amount X exchange rate). When we deal with multiple exchange rates my measure does not give me total for that particular company.
How should i iterate through all the rows multiplying exchange rates with the respective amount.
Appreciate if someone throw some light on it.
Hi @VeerBI
Please try
ReportingCurrencyMeasure =
VAR GBPRate = [ExchRateMeasure] * 0.01
VAR USDRate = 0.375
RETURN
SUMX (
Transactions,
VAR ExchangeRate =
SWITCH (
Transactions[REPORTINGCURRENCY],
"GBP", GBPRate,
"USD", USDRate,
1
)
RETURN
Transactions[ACCTINGCURRAMOUNT] * ExchangeRate
)
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |