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
denersena
Regular Visitor

Separate text value in the column

I have a column that has two names, like manager's name and supervisor's name, but it hasn't a pattern.

Sometimes the manager's name is the first name, sometimes not. I want to separate these names and have two columns, one for managers and one for supervisors.

 

Original situation:

Column

Manager1; Supervisor1
Supervisor1; Manager2
Manager3; Supervisor1
Supervisor2; Manager2

 

Expected Result:

ManagerSupervisor
Manager1Supervisor1
Manager2Supervisor1
Manager3Supervisor1
Manager2Supervisor2

 

Can somebody help me?

1 ACCEPTED SOLUTION

Hi @denersena 

 

If you know who is a supervisor or a manager, please prepare another table which has two columns indicating the position title of every person. For example,

vjingzhang_0-1668144862508.png

 

Then split the original column by delimiter ";" in the old table. 

vjingzhang_1-1668145003460.png

 

Add custom steps in the formula bar to get Supervisor and Manager Names list separately. 

vjingzhang_3-1668145083744.png

 

Then add custom columns to determine whether the Supervisor Name List or Manager Name List contains that person. 

vjingzhang_4-1668145306822.png

 

After that, remove the first two columns. You will have the result you want. I have attached the demo at bottom. You can download it to see details. 

vjingzhang_5-1668145338660.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

Is there any logic to figure out which is which on each row? Unique text in one of them?

 

Pat

 

Microsoft Employee

no, but i know who is a supervisor or a manager 

Hi @denersena 

 

If you know who is a supervisor or a manager, please prepare another table which has two columns indicating the position title of every person. For example,

vjingzhang_0-1668144862508.png

 

Then split the original column by delimiter ";" in the old table. 

vjingzhang_1-1668145003460.png

 

Add custom steps in the formula bar to get Supervisor and Manager Names list separately. 

vjingzhang_3-1668145083744.png

 

Then add custom columns to determine whether the Supervisor Name List or Manager Name List contains that person. 

vjingzhang_4-1668145306822.png

 

After that, remove the first two columns. You will have the result you want. I have attached the demo at bottom. You can download it to see details. 

vjingzhang_5-1668145338660.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

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.

Top Solution Authors
Top Kudoed Authors