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! Request now

Reply
SPa
Frequent Visitor

CONCATENATE three column text values, but return blank if any of the three are blank

Hi all!

 

Need to create a new column that combines the text from three columns (same table)

 

Example Data (Column 1-3 are in the same table)

 

Column 1     Column 2     Column 3           Desired Column

 

'Text ZZZ'    'Text XXX'     'Text CCC'          'Text ZZZ Text XXX Text CCC'

                    'Text XXX'     'Text CCC'

'Text ZZZ'     'Text XXX'

'Text ZZZ'                          'Text CCC'

'Text ABC'    'Text ABC'     'Text ABC'          'Text ABC Text ABC Text ABC'

 

Is there dax code to achieve this for a new column?

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
bsheffer
Continued Contributor
Continued Contributor

=if(<text1> = blank() || <text2> = blank() || <text3> = blank(),
"",

CONCATENATE (CONCATENATE (<text1>, <text2>), <text3>)

)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I think he wants to concatenate only if all 3 cells are not empty, you could use if:

IF(
column1<>"", IF(
                           column2<>"",IF
                                                  (column1<>"",CONCATENATE (CONCATENATE (<text1>, <text2>), <text3>))))

something of similar, you have to fix the brackets,

 

Best.

 

GV

bsheffer
Continued Contributor
Continued Contributor

=if(<text1> = blank() || <text2> = blank() || <text3> = blank(),
"",

CONCATENATE (CONCATENATE (<text1>, <text2>), <text3>)

)

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