Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Combine rows with same ID / Split column transformation backward

Hi,

i want to create from these two columns only one in this format.

 

id, CategoryName

c7a..., Importing, NewOne

 

It is possible to make this transformation in QueryEditor? Nearly a split column-transformation backward. Thank you for your feedback.

  • Anonymous's avatar
    Anonymous
    5 years ago

    I can not share sample data because i get an error. 


    I have one table with dublicated rows. Dublicated becuase one id have different categories. And the goal is to combine the dublicated rows in one with the format you see in my first post. I hope this is understandable.

    The challenge is like this:

    https://stackoverflow.com/questions/61238999/how-to-combine-rows-with-the-same-id-into-a-list

     

    I want to combine this two columns like this:

    ID, Category

    1, Green | Blue

     

    It looks like the hint in this link works. I had a mistype in my codings earlier.
    This is the solution. Anyway, thank you for your help.

4 Replies

  • Anonymous , You can do few operation there. What is the logic required ?

    • Anonymous's avatar
      Anonymous
      Not applicable

      The logic is that I have n-IDs and one ID can have n Categories (1-n)...

       

      I have dublicate rows and want to combine these rows where the ID have more than one Category

  • Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
    Appreciate your Kudos.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I can not share sample data because i get an error. 


      I have one table with dublicated rows. Dublicated becuase one id have different categories. And the goal is to combine the dublicated rows in one with the format you see in my first post. I hope this is understandable.

      The challenge is like this:

      https://stackoverflow.com/questions/61238999/how-to-combine-rows-with-the-same-id-into-a-list

       

      I want to combine this two columns like this:

      ID, Category

      1, Green | Blue

       

      It looks like the hint in this link works. I had a mistype in my codings earlier.
      This is the solution. Anyway, thank you for your help.