Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Galat198
Helper IV
Helper IV

Currency Change (Dynamically by Date and Currency Code)

Hi,
I have a table like this :

Galat198_0-1611047663509.png

 This may be a Table with all types of currencies of the world. Currently, I connected to xe.com but the table is without dates (update by the last date) :

Galat198_1-1611047875334.png


How I can dynamically change each currency to USD by currency code and their rate on a specific date ??

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Galat198 ,

Please review the content in the following blog, hope it can help you.

Scrape Data from Multiple Web Pages with Power Query

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-yiruan-msft
Community Support
Community Support

Hi @Galat198 ,

Please review the content in the following blog, hope it can help you.

Scrape Data from Multiple Web Pages with Power Query

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Galat198
Helper IV
Helper IV

Via National Banks is possible only for main currencies.
But I need all currencies (around 170)

From https://www.xe.com/currencytables/?from=USD&date=2021-01-19   it's only for a specific date or last date or static historical excel file (need manual update daily).

Somebody know any way to get daily updated historical currency rates?? free 😉
@MiraAciu @amitchandak 

amitchandak
Super User
Super User

@Galat198 , Try a measure like


Sumx(summarize(Table, Table[Date], [Currency], "_1",sum(Table[Amount])* if(max(Table[Currency])= "USD",1, maxx(filter(currency,currency[Code] =max(Table[Currency])),currency[unit in USA]))), [_1])

Thanks for your response,
But I need to change the rate on the same date as the amount.
So if the date is 01/01/2021 in need to get a rate of EUR to this date, but in the currency table rates only for today.

Because the EUR rate in 01/01/2021 maybe 0.8, but today it may be 0.9, so I need change to USD by 0.8

Is it possible?

Hi,

Import a history rate table instead the one you have.

Hi @MiraAciu 

Hi,
May you know where I can find an updated rates table with dates ??
On xe.com only this table.....
No must be live, only daily rates of all currencies.

Thanks ))



On xe.com I see you can change the date. You can practice with 2-3 dates from there for now, copying small sets of results into a file and use it as a source for your report. You can add more dates lately.

This can be quite a challenge for me, in my country I can acces the history on the official site of the National Bank :). I presumed you can have access to your company database and there you can find the desired history. I'll try to find something for you. Or maybe someone else can help you more,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.