I am having a Sales transaction table with RateDate,OrderAmount and Transcation Currency
and also I am having exchange rate with BaseCurrency,targetCurrency and Rate
I need to convert Sales amount to Base Currency and I have tried the following DAX equation
AmountUSD = SUMX(Fact_SalesOrder,[OrderAmount]/lookupvalue(CurrencyRates[Rate],CurrencyRates[Effective Date],Fact_SalesOrder[RateDate],CurrencyRates[Base Currency],"USD",CurrencyRates[Target Currency],Fact_SalesOrder[Currency]))
But I am not getting a proper result How can I solve this?