Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Manager | Senior Manager | Product |
Adam | Matt | GT |
Adam | Jerry | OG |
Adam | Britney | VY |
Adam | Matt | BP |
David | Adam | TM |
Britney | Adam,David | MT |
Carol,Caroline | Britney | AG |
Alex,Adam | Tom | MH |
Brad | Adam | SM |
Caroline | David | MT |
Can someone please help me on this. Thank you in advance
Solved! Go to Solution.
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:
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:
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |