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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

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