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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors