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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pezakas
Helper I
Helper I

CONCATENATE INFO FROM COLUMNS INTO ONE

Hello community,

 

Here is the following scenario:

 

I have the data in the following table from columns A-F and i want to create the calculated column G.

pezakas_1-1654173578471.png

Is there any faster and more efficient way do this other than multiple nested IF statements?

 

Thank you in advance!

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @pezakas ,


You still need multiple IF statements.

Please refer this formula:

Column = 
var b1 = IF('Table'[Document B1]="Missing","B1,")
var c1 = IF('Table'[Document C1]="Missing","C1,")
var d1 = IF('Table'[Document D1]="Missing","D1,")
var e1 = IF('Table'[Document E1]="Missing","E1,")
var f1 = IF('Table'[Document F1]="Missing","F1,")
VAR g = b1&c1&d1&e1&f1
return
LEFT(g,LEN(g)-1)

vjaywmsft_0-1654592456925.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @pezakas ,


You still need multiple IF statements.

Please refer this formula:

Column = 
var b1 = IF('Table'[Document B1]="Missing","B1,")
var c1 = IF('Table'[Document C1]="Missing","C1,")
var d1 = IF('Table'[Document D1]="Missing","D1,")
var e1 = IF('Table'[Document E1]="Missing","E1,")
var f1 = IF('Table'[Document F1]="Missing","F1,")
VAR g = b1&c1&d1&e1&f1
return
LEFT(g,LEN(g)-1)

vjaywmsft_0-1654592456925.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@pezakas , You need to create a column like 

 

if([B] = "Missing" , [B], blank() )  & ", " & if([B] = "Missing" , [C], blank() ) & ", " & if([D] = "Missing" , [D], blank() ) & ", " & if([E] = "Missing" , [E], blank() ) 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.