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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nomanches
New Member

Extract value matching criteria from comma separated string/values

Hello, 

 

I hope I can get some help on this, my apologies if this is listed incorrectly as its my first post. 

 

I recently started using PowerBi and what a tool it is, I have been able to look up certain values in a column when its a single entry per cell/row. The issue that I am having now is I want to extract the text between the semicolons but the problem is that the content found between the semicolons does not align per type of advisor/coach and in some cases the cell can be empty. 

 

Here is an example of the column in question, I would like to extract only those marked as (advisor) to a new column called Advising Assigned Advisors.

Assigned Advisors
Gills, Sean (Advisor); Martinez, Checo (Res Life Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)
Irena, Ilse (Advisor); Villa, Abraham (Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)
Yan, Victor (Advisor); Garza, Erika (Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)
Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach); Gozado Zepeda, Maria (Advisor)
Reyna, Patricia (IDEA Success Coach); Rosadito, Michael (Advisor); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)
Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach); Hernan, Giovanni (Advisor)
Hernan, Giovanni (Advisor); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)
Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Capilla, Maritere (Advisor); Swiss, Roxanne (IDEA Success Coach)
Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach)

 

I would like to be able to add a new column that will extract those values that are marked as (Advisor) only and place them in a new column. I already tried using the extract and parse options but they do not extract the data correctly. I also split the columns and tried to find the *(Advisor) in each column and pass it over to the new one but could not get that to work. 

 

Surely there is a way to do I am just not able to locate the solution and have siffted through a lot of blogs and videos but had no luck. Any help here would be great, thanks in advance. 

1 ACCEPTED SOLUTION

Good Morning @nomanches ,

Appears you have blank records in your raw data set.

Best to remove those prior to import so you have a "clean" dataset.  If you are unable, then I added a first step in the Power Query to filter out those records where Assigned Advisors is null or blank.

Please see attached.

Best Regards,

View solution in original post

7 REPLIES 7
rsbin
Super User
Super User

@nomanches ,

Please see attached file with Power Query steps.

The first step is to Split by Delimiter - semi-colon.  But be sure to use the Advanced Options and split into rows.

Then, hope you can follow the rest of the logic.

Hope this helps.

Regards,

Thank you for the prompt turn around, I should have added that the data is setup like seen below, how can I apply it to this scenario. 

IDAssigned AdvisorsAdvising Assigned Advisor (Desired OUTPUT)
1230123Gills, Sean (Advisor); Martinez, Checo (Res Life Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)Gills, Sean (Advisor)
2239321Irena, Ilse (Advisor); Villa, Abraham (Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)Irena, Ilse (Advisor)
3248519Yan, Victor (Advisor); Garza, Erika (Success Coach); Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)Yan, Victor (Advisor)
4257717Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach); Gozado Zepeda, Maria (Advisor)Gozado Zepeda, Maria (Advisor)
5266915Reyna, Patricia (IDEA Success Coach); Rosadito, Michael (Advisor); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach) Rosadito, Michael (Advisor)
6276113Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach); Hernan, Giovanni (Advisor)Hernan, Giovanni (Advisor)
7285311Hernan, Giovanni (Advisor); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Swiss, Roxanne (IDEA Success Coach)Hernan, Giovanni (Advisor)
8294509Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach); Vigaet, Casey (IDEA Success Coach); Wanda, Jennifer (IDEA Success Coach); Capilla, Maritere (Advisor); Swiss, Roxanne (IDEA Success Coach)Capilla, Maritere (Advisor)
9303707Reyna, Patricia (IDEA Success Coach); Ayende, Carolina (IDEA Success Coach) 

@nomanches ,

Please review Advisors2.

Let me know if this works for you.

Regards,

@nomanches ,

Here is a 3rd Version for you to review.

Realized that I filtered out records that did not contain (Advisor).

I believe this version works if you need to retain all records including where Advisor = blank.

Regards,

@rsbin 

 

Thanks for catching that, I did need to identify those that are not assigned and this helps do that. Although I was able to follow the steps you provided, I am getting an error and it appears to happen at the Find Advisor (Custom Column), this is what it looks like in the data set.

nomanches_1-1696455253147.png

 

I noticed the red/error notification on the columns appeared after this step and when I click on the error link it displays the following:

nomanches_2-1696455322143.png

 

When I go to close and apply the changes I am getting the following error message:

nomanches_3-1696455396873.png

Thanks once again for taking the time look at my issue. 

Good Morning @nomanches ,

Appears you have blank records in your raw data set.

Best to remove those prior to import so you have a "clean" dataset.  If you are unable, then I added a first step in the Power Query to filter out those records where Assigned Advisors is null or blank.

Please see attached.

Best Regards,

Good Morning @rsbin , 

 

Thank you for taking the time to assit me, I followed your recommendations and was able to get the list of advisors extracted and retained the blank cells as well. Thanks to you I have a file I can now work with. 

 

Have a great day!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.