Forum Discussion
Anonymous
2 years agoNot applicable
Average exchange rate
I have a table with an exchange rate that converts the companies' local currency to SEK. The exchange rate is available per day and sales transaction. See table 1 for what that table looks like. I al...
- Anonymous2 years ago
Hi Anonymous ,
You can try the following dax:
Measure = var AVExhange= AVERAGEX( FILTER(ALL(ExchangeTable), 'ExchangeTable'[CompanyKey]=MAX('Company'[Company Key])),[Exchange Rate LCY To SEK]) var BudgetInSEK= SUMX( FILTER(ALL('Budget'), 'Budget'[Company Key]=MAX('Company'[Company Key])),'Budget measures'[Budget LCY]) return BudgetInSEK*AVExhangeIf it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
2 years agoAnonymous Use ALLEXCEPT or REMOVEFILTERS.