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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JWorthy
Advocate I
Advocate I

Concatenate columns with delimiter, some columns blank

Hello,

 

I ran a suvery on user ethnicity.

 

I'm trying to create a new column from a concatenate of 12 columns

 

Many of the columns have blank as they only have a value when the respondent checked that ethnicity box. A row can have multiple columns containing values as the respondent might be White - English - Londoner.

 

I want to put in a delimiter between each concatenated value i.e

 

Column1 & ", " & Column 2 & ", " & Column 3 & ", " & Column 4 & ", " & Column 5  & ", " & Column 6

 

What I want would look like:

 

White, English, Londoner

 

but don't want the end result to look like the below because columns 2 to 4 were blank:

 

White, , , , English, Londoner

 

How do I do this?

 

Thanks!

1 ACCEPTED SOLUTION
Floriankx
Solution Sage
Solution Sage

If you are doing it in DAX you could add a IF(ISEMPTY(column n);", "&column n;BLANK() before every column, but the formula is getting huge.

View solution in original post

1 REPLY 1
Floriankx
Solution Sage
Solution Sage

If you are doing it in DAX you could add a IF(ISEMPTY(column n);", "&column n;BLANK() before every column, but the formula is getting huge.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors