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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Mic1979
Post Partisan
Post Partisan

Currency.from use

Hello

 

I have the following:

Mic1979_0-1747569956427.png

 

I would like to convert the first column based on what I found in the second one, in this way:

Mic1979_1-1747570053524.png

 

I understood that the function to use is Currency.from, but I don't know how to combine this with the function Table.TransformColumn.

 

Could you suggest the code please?

 

Thanks.

1 ACCEPTED SOLUTION
SundarRaj
Solution Supplier
Solution Supplier

Hi @Mic1979 , instead of Table.TransformColumns, to refer to the other column without adding an another column, Table.TransformRows can be used. I'll attach the file and and the code itself for reference. Thanks!

https://docs.google.com/spreadsheets/d/15p9idYCeePT9_tNMWoJ2aaEdkpf7XG1V/edit?usp=sharing&ouid=10475...

SundarRaj_0-1747577143715.pngSundarRaj_1-1747577170520.png

 

Sundar Rajagopalan

View solution in original post

3 REPLIES 3
Mic1979
Post Partisan
Post Partisan

Many Thanks.

Just a question: Why did you not use the Currency.From function?

That is because, the Currency.From function transforms the value in that column in a Number format. Since we intend to put the currency symbol next to it as well, both of them need to be in the same data format for it to work. Besides, I don't think Currency.From attaches a currency symbol next to it, it only converts it to Power Query's currency type. Thanks

Sundar Rajagopalan
SundarRaj
Solution Supplier
Solution Supplier

Hi @Mic1979 , instead of Table.TransformColumns, to refer to the other column without adding an another column, Table.TransformRows can be used. I'll attach the file and and the code itself for reference. Thanks!

https://docs.google.com/spreadsheets/d/15p9idYCeePT9_tNMWoJ2aaEdkpf7XG1V/edit?usp=sharing&ouid=10475...

SundarRaj_0-1747577143715.pngSundarRaj_1-1747577170520.png

 

Sundar Rajagopalan

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors