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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Super User
Super User

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
Super User
Super User

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.