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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors