unclesomebody
New Member
- Joined
- Nov 13, 2013
- Messages
- 14
I have a table containing sales, which has 4 columns; date, item name, currency, price. We sell in multiple currencies and the price in this table is the currency of the sale. So, in this table we have EUR, GBP, USD, SKK, NOK, DKK, etc. I would like to create a fifth column in my sales table which displays the price in local currency (in my case; GBP).
I currently have 2 issues
I have managed to find a way to get excel to talk to Oanda thanks to a macro I found at this page: Download Historical Forex Data into Excel. That allows me to get historical FX data for a single currency pair and I can then create a table with many currency pairs (all baselined from GBP). This table has date, USD, EUR, NOK, DKK, etc as it's columns. I'd like to find a way to get this clever bit of code into powerpivot but it currently creates a URL, downloads a table, converts it, and displays it in a sheet.
The next issue (which is the major one for now) is that I can't figure out how to create the fifth column in my sales table that looks up the date and the local currency, then finds the corresponding rate in the FX table, then multiplies that by the price. This would be an insanely easy task in excel but my DAX skills are sorely lacking. I did find this web page which has a solution of sorts, but this doesn't use a different rate for every day: Prodata Blog | Many to Many Currency Conversion with PowerPivot
If anyone could help me or nudge me in the right direction I'd appreciate it. And if anyone has a solution to getting Oanda rates into powerpivot then that would be brilliant too!
I currently have 2 issues
- How do I get a table in powerpivot which AUTOMATICALLY populates with FX data from Oanda?
- How do I use the fx rate for a particular day and use it to do the conversion in the sales table?
I have managed to find a way to get excel to talk to Oanda thanks to a macro I found at this page: Download Historical Forex Data into Excel. That allows me to get historical FX data for a single currency pair and I can then create a table with many currency pairs (all baselined from GBP). This table has date, USD, EUR, NOK, DKK, etc as it's columns. I'd like to find a way to get this clever bit of code into powerpivot but it currently creates a URL, downloads a table, converts it, and displays it in a sheet.
The next issue (which is the major one for now) is that I can't figure out how to create the fifth column in my sales table that looks up the date and the local currency, then finds the corresponding rate in the FX table, then multiplies that by the price. This would be an insanely easy task in excel but my DAX skills are sorely lacking. I did find this web page which has a solution of sorts, but this doesn't use a different rate for every day: Prodata Blog | Many to Many Currency Conversion with PowerPivot
If anyone could help me or nudge me in the right direction I'd appreciate it. And if anyone has a solution to getting Oanda rates into powerpivot then that would be brilliant too!