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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.