Forum Discussion
hoopaz68
1 year agoNew Member
Dax Help
Good Afternoon. I'm fairly new to using DAX so bear with me. I'm trying to use DAX to calculate invoice amounts in different currencies. I have two example tables below in my PBI desktop. These...
- Anonymous1 year ago
Hi hoopaz68 ,
In the data you provided, the cruno field does not have a unique identifier and cannot be used as a condition for joining tables.
But based on your requirement, you can refer to the following formula:SelectedCurrencyRate = CALCULATE ( MAX ( 'Currency_Table'[rate] ), FILTER ( 'Currency_Table', 'Currency_Table'[cruno] = SELECTEDVALUE ( 'Invoice Table'[cruno] ) && 'Currency_Table'[currency] = SELECTEDVALUE ( 'Currency_Table'[currency] ) ) )ConvertedInvoiceAmount = SUMX( 'Invoice Table', 'Invoice Table'[inv_amt_usd] * [SelectedCurrencyRate] )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
1 year agoNot applicable
Hi hoopaz68 ,
Did danextian reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.
Best regards,
Adamk Kong
hoopaz68
1 year agoNew Member
Not quite. I shared data and expected results for this for danextian. Thanks.