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,
I have an exchange rate master in my model, with following columns:
There is a Date table with specific period measures like Fiscal Year, Month Year, Quarter, etc. linked to key date columns of other tables.
And it is linked to my main Accounting table which has following columns:
Then there are measures created for customized Accounting requirements like:
The FX Amount (For the period) gives the Amount in Functional Currency and Reporting Amount (For the Period) gives in Reporting Currency. My requirement is to create a Measure similar to FX Amount (For the period) but which gives the amount in an intermediate currency (based on selection, but default "USD" if no specific currency is selected). The applicable rates for Functional Currency to Intermediate Currency are uploaded in Exhange Rate Master, we need to pick the last rate that is available in the exchange rate master for the selected period.
I have created the following measure which works fine if my report is at Functional Currency Code level (lowest). But summation at any other level (month/year/entity/etc.) gives a blank output.
I will not be able to attach pbix or any other files due to org restrictions.
Please help!
Thanks in advance,
Shailee
Solved! Go to Solution.
After some iterations, the final measure that worked:
Translated Amount (For the period) =
Var _CurrTo = if (ISBLANK(SELECTEDVALUE('Exchange Rate Master'[Currency To])),"USD",SELECTEDVALUE('Exchange Rate Master'[Currency To]))
Var _Table =
SUMMARIZE(Accounting,Accounting[Functional Currency Code],'Date'[Month Year],
"FXAmt",[FX Amount (For the period)],
"Rate",if(Accounting[Functional Currency Code]=_CurrTo,1,
CALCULATE(LASTNONBLANK('Exchange Rate Master'[Monthly Average Conversion Rate],1),FILTER('Exchange Rate Master','Exchange Rate Master'[Currency From]=Accounting[Functional Currency Code] && 'Exchange Rate Master'[Currency To] = _CurrTo && 'Exchange Rate Master'[Conversion Date]<=max('Date'[Date])))))
Var _OP = sumx(_Table,[FXAmt]*[Rate])
Return _OP
I have achieved the measure total with following measure:
After some iterations, the final measure that worked:
Translated Amount (For the period) =
Var _CurrTo = if (ISBLANK(SELECTEDVALUE('Exchange Rate Master'[Currency To])),"USD",SELECTEDVALUE('Exchange Rate Master'[Currency To]))
Var _Table =
SUMMARIZE(Accounting,Accounting[Functional Currency Code],'Date'[Month Year],
"FXAmt",[FX Amount (For the period)],
"Rate",if(Accounting[Functional Currency Code]=_CurrTo,1,
CALCULATE(LASTNONBLANK('Exchange Rate Master'[Monthly Average Conversion Rate],1),FILTER('Exchange Rate Master','Exchange Rate Master'[Currency From]=Accounting[Functional Currency Code] && 'Exchange Rate Master'[Currency To] = _CurrTo && 'Exchange Rate Master'[Conversion Date]<=max('Date'[Date])))))
Var _OP = sumx(_Table,[FXAmt]*[Rate])
Return _OP
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |