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
Timbuktu7
Helper I
Helper I

Dax Help

Capture.PNG







I have a column in Power Bi with Employee Name which has mix of club employee and fcs employee. 
I want to create 2 new columns : 1. Club Employee 2. Fcs Employee
The name that starts with FCS is all fcs employee and the reamaining are club employee.

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Timbuktu7 

Please try this, create a new column

IsFcs = IF(CONTAINSSTRING('Table'[Employee Name],"Fcs"),1,0)

vxiaotang_0-1670378143771.png

Since there is no relationship between Club Employee and Fcs Employee, you need to put them into separate tables

table1 = SELECTCOLUMNS(FILTER('Table','Table'[IsFcs]=1),"Fcs",[Employee Name])

vxiaotang_2-1670378510293.png

table2 = SELECTCOLUMNS(FILTER('Table','Table'[IsFcs]=0),"Club Employee",[Employee Name])

vxiaotang_3-1670378560024.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Timbuktu7
Helper I
Helper I

@v-xiaotang 

Sir, You're genius. Thank you very much. It worked. 

v-xiaotang
Community Support
Community Support

Hi @Timbuktu7 

Please try this, create a new column

IsFcs = IF(CONTAINSSTRING('Table'[Employee Name],"Fcs"),1,0)

vxiaotang_0-1670378143771.png

Since there is no relationship between Club Employee and Fcs Employee, you need to put them into separate tables

table1 = SELECTCOLUMNS(FILTER('Table','Table'[IsFcs]=1),"Fcs",[Employee Name])

vxiaotang_2-1670378510293.png

table2 = SELECTCOLUMNS(FILTER('Table','Table'[IsFcs]=0),"Club Employee",[Employee Name])

vxiaotang_3-1670378560024.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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