The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
94 | |
80 | |
63 | |
56 |
User | Count |
---|---|
248 | |
122 | |
110 | |
77 | |
70 |