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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.