Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Help with column search

Hi All,

 

I am trying the below scenario say we have two columns with comma separated values.

Column 1 value might exist in Column 2.

I am trying to create a new column or table with all unique list of values from both columns for slicer selection.

The sample data would be somthing similar as below

ManagerSenior ManagerProduct
AdamMattGT
AdamJerryOG
AdamBritneyVY
AdamMattBP
DavidAdamTM
BritneyAdam,DavidMT
Carol,CarolineBritneyAG
Alex,AdamTomMH
BradAdamSM
CarolineDavidMT

 

Can someone please help me on this. Thank you in advance

  • I think the best way to acomplish this is in power query:

     

     

    1.Split the column by delimiter , 

    2.Duplicate the table

    3.Remove the new column in the first table and rename the original column to eliminate numbering

    4. In the duplicate table remove the first split column and rename split columns with nulls the to the original column name to eliminate numbering

    5. Use append query to join the table.

    6. You can repeat this for any columns that need to be split.

     

    You should end up with this:

     

     

1 Reply

  • DOLEARY85's avatar
    DOLEARY85
    Resident Rockstar

    I think the best way to acomplish this is in power query:

     

     

    1.Split the column by delimiter , 

    2.Duplicate the table

    3.Remove the new column in the first table and rename the original column to eliminate numbering

    4. In the duplicate table remove the first split column and rename split columns with nulls the to the original column name to eliminate numbering

    5. Use append query to join the table.

    6. You can repeat this for any columns that need to be split.

     

    You should end up with this: