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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
)