• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

(Power Query) How can I combine two columns into one?

Bear

Member
How I can combine [rent] & [%Growth] columns into [Final] including the format?

Rent %Growth => Final
2000 0.05 $2,000 (5%)

I tried to use Number.ToText, but it didn't work.

Thank you.
 

Attachments

  • PQ_Combine Columns.xlsx
    17.8 KB · Views: 5
Last edited:
Code:
= Table.AddColumn(#"Changed Type", "Final", each Text.Format("$#{0} (#{1})",{Number.ToText([Year 2],"n0"),Number.ToText([Year 2]/[Year 1]-1,"p0")}))
 
Code:
= Table.AddColumn(#"Changed Type", "Final", each Text.Format("$#{0} (#{1})",{Number.ToText([Year 2],"n0"),Number.ToText([Year 2]/[Year 1]-1,"p0")}))

Hi p45cal

Thank you so much. May I know if "n0" means removal of decimal, while "p0" means to change of percentage?
 
Back
Top