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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
praveenpasila
Advocate IV
Advocate IV

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

1 ACCEPTED SOLUTION
DOLEARY85
Super User
Super User

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:

 

DOLEARY85_0-1680531872457.png

 

View solution in original post

1 REPLY 1
DOLEARY85
Super User
Super User

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:

 

DOLEARY85_0-1680531872457.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.