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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Concatenation of Percentage Columns

Hello,

 

I have four percentage columns as below and would like to combine them in a field similar to the picture on the right.

Untitled.png

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Perhaps something like:

 

Coins = CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(FORMAT([Column2],"Percent"),"/"),FORMAT([Column3],"Percent")),"/"),FORMAT([Column4],"Percent")),"/"),FORMAT([Column5],"Percent"))

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Perhaps something like:

 

Coins = CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(CONCATENATE(FORMAT([Column2],"Percent"),"/"),FORMAT([Column3],"Percent")),"/"),FORMAT([Column4],"Percent")),"/"),FORMAT([Column5],"Percent"))

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Untitled.jpgThat worked very well, thanks!

 

Any chance I could format the percent with no decimals?

 

 

I was trying that by wrapping each one in another FORMAT but wasn't having much luck with it. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

OK, thanks anyway.  The format with the decimals will work fine.

I was doing a similar thing today - I found if I put "0%" instead of "Percent" I was able to get the value without decimals. Hope this helps someone!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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