Forum Discussion
abfdjuk
Helper I
4 years agocurrency conversion with budgeted rates
Hi. I have two tables of data. One is the currency, year and exchange rate "ExchangeRates" the other is "Invoices" with colums for year, net amount and currency code. I have tried so many differe...
- 4 years ago
Converted amount = SUMX ( Invoices, Invoices[Net amount] * LOOKUPVALUE ( ExchRate[Rate], ExchRate[Currency code], Invoices[Currency code], ExchRate[Year], Invoices[Year] ) )
lukiz84
Memorable Member
4 years agoyes, because YearCode in your table is of type "String" (text in PowerQuery) -> change it to integer (number in powerquery)
abfdjuk
Helper I
4 years agonks for your quick response. Now I get this error: A table of multiple values was supplied where a single value was expected. Any ideas what I need to change?