Forum Discussion
Average exchange rate
- 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.
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*AVExhange
If 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.