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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Digger
Post Patron
Post Patron

Currency convertion

I have table converted by EUR

 

Digger_0-1657030445712.png

Now i need add column and convert to USD

So one possible way is find each day USD rate and divide  USDrate = 1/amount_2, and after divide each currency by USDrate

 

So how to write right formula in transform data?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Digger , You can get the rate of USD for each date like

in a column

maxx(filter(Table, [date] = earlier([Date] && [Name_2] = "USD") , [Amount_2] )

 

then you can create formula

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Digger , You can get the rate of USD for each date like

in a column

maxx(filter(Table, [date] = earlier([Date] && [Name_2] = "USD") , [Amount_2] )

 

then you can create formula

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  sorry but your formula is wrong
The syntax for 'Table' is incorrect. (DAX(maxx(filter(Table, [date] = earlier([date] && [name_2] = "USD") , [amount_2] )))).

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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