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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.