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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.