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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors