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
Anonymous
Not applicable

How to split column till delimiter using DAX

Hi All,

 

I have column let say Name it is having values like brian lara now i want to create a new column using DAX that have only first name like "brian" .

How to do it using Dax?

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks Jimmy.

Can you please recheck the DAX column formula which you have sent to me. 

It is not working for me.

I have tried Following one and it worked fine :

First name = LEFT(SUBSTITUTE(Players[Name]," ","-"),SEARCH("-",SUBSTITUTE(Players[Name]," ","-"))-1)
 
 
Cheers,
Deepak Baberwal

View solution in original post

7 REPLIES 7
Jimmy801
Community Champion
Community Champion

Hello

try to use this Syntax

left(<your text>;find(" ";<your text>)-1)

have fun

Jimmy

Anonymous
Not applicable

Thanks Jimmy.

Can you please recheck the DAX column formula which you have sent to me. 

It is not working for me.

I have tried Following one and it worked fine :

First name = LEFT(SUBSTITUTE(Players[Name]," ","-"),SEARCH("-",SUBSTITUTE(Players[Name]," ","-"))-1)
 
 
Cheers,
Deepak Baberwal

Hello @Anonymous ,

 

any news here?

 

Jimmy

Anonymous
Not applicable

 Hi,

 

Actually i want DAX Solution.

I think your solution is working fine with excel but not in Power BI .

Hello @Anonymous 

any news on this regards?

 

Jimmy

Hello @Anonymous 

 

my solution is DAX and DAX is present in Power BI as well as Excel.

If I would pass data in Power BI from Power Query to Power Pivot I would always prefer to "transform" the data in Power Query, not in Power Pivot (DAX).

 

I would appreciate if you mark my answer as solution as well 🙂

 

If this post helps or solves your problem, please mark it as solution.
Kudos are nice to - thanks
Have fun

Jimmy

Hey

my solution works just fine

image.png

 

Jimmy

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.