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
Jilanibasha
Frequent Visitor

Concatinate multiple columns in single column

Hi Gurus,

 

what is the dax formula to display data in below format. Can some one please suggest onthis.

 

Jilanibasha_0-1623324923208.png

 

Thanks,

Jilani

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Jilanibasha You want UNICHAR(10). So like:

[Column 1] & UNICHAR(10) & [Column 2] & UNICHAR(10) & ...

@ 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

4 REPLIES 4
v-robertq-msft
Community Support
Community Support

Hi, @Jilanibasha 

According to your description, I can roughly understand your requirement, I think you can use the COMBINEVALUES() to perfectly achieve this:

Measure = COMBINEVALUES(" - ",MAX('Table'[Region]),[Amount1],[percentage1])

 

Then you can create a card visual to place this measure, and you can get what you want.

v-robertq-msft_0-1623750995551.png

 

You can download my test pbix file below

More info about the COMBINEVALUES() function in DAX

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@Jilanibasha You want UNICHAR(10). So like:

[Column 1] & UNICHAR(10) & [Column 2] & UNICHAR(10) & ...

@ 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...

Hi Greg,

 

first column is text column and second one is calculated measure, i could not able ot add using & operator creating new measure. In measure text is not accepting.

let assume i have Region dimention field, Amount is calculated measure and percentage is calculated measure

Region Amout percentage

West    5000      75

 

need to display West - 5000 - 75

 

Please help according to this

 

@Jilanibasha Measure = MAX('Table'[Region]) & " - " & [Amount] & " - " & [percentage]

 

How did we go from columns to measures and from new lines to dashes?


@ 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...

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.