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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mitchpj75
Helper I
Helper I

Concatenation??

Hi all, 

 

Just looking for some advice.  Below is my table (screenshot for context)

mitchpj75_0-1680734402792.png

This is the data format setout for ease of reading

 

case_idcase_row_idDate of CallCall successful?Date of Call column TO BE CREATEDCall successful column TO BE CREATED
330001/11/2018No01/11/2018;02/11/2018No;Yes
330102/11/2018YesThis row would then be deletedThis row would then be deleted
332001/11/2018Yes01/11/2018Yes
333001/11/2018No01/11/2018;02/11/2018;06/11/2018No;No;No
333102/11/2018NoThis row would then be deletedThis row would then be deleted
333206/11/2018NoThis row would then be deletedThis row would then be deleted
336002/11/2018Noetc 
336108/11/2018No  
336214/11/2018Yes  
339001/11/2018No  
339102/11/2018Yes  
340001/11/2018No  
340102/11/2018No  

 

Whenever there is a unique case id, I need:

 - Date of call values to be merged into a new Date of Call Column

- Call Successful values to be merged into a new Call successful column

 

Is it best to concatenate?  if so how??

 

Thanks 🙂

 

1 REPLY 1
AlienSx
Super User
Super User

Hi, @mitchpj75 

let
    raw_data = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjY2UNJRAmNDfUNDfSMDQwsgxy9fKVYHJmsIkjVCko1MLYZKG2HTjJA2xmu2MTazUWTBxpthkzWDmYxVrxnMZAtcsiCTDU2wOtoSr6Mt8QaICd7QNMEamiDZWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [case_id = _t, case_row_id = _t, #"Date of Call" = _t, #"Call successful?" = _t]),
    Source = Table.TransformColumnTypes(raw_data, {{"Date of Call", type date}}, "en-GB"),
    z = 
        Table.Group(
            Source, {"case_id"}, 
            { {"Date of Call", each Text.Combine(List.Transform([Date of Call], Date.ToText), ";")}, 
            {"Call successful", each Text.Combine([#"Call successful?"], ";")}}
        )
in
    z

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.