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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yodha
Helper IV
Helper IV

DAX to Split Text using delimeter.

I need help to Split this text based on delimeter "Comma"

can anyone help me with "DAX"?

 

Thanks in Advance

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@yodha

try

 

Column =

var _start = SEARCH("""Type", [Column1],,0)

var _finish = SEARCH(",", [Column1], _start)

RETURN

IF(_start > 0, MID([Column1], _start, _finish - _start), BLANK() )


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

7 REPLIES 7
Mariusz
Community Champion
Community Champion

Hi @yodha 

 

With Power Query is as simple as selecting your string column, follow the below.

Mariusz_0-1594209103020.png

and expand Type,

 

Please see the attached for ref.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Mariusz
Community Champion
Community Champion

Hi @yodha 

 

Can you not do it in Power Quer?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

@Mariusz : no, i need to use DAX, the above DAX is looking fine but it's just giving me error because few rows in my table doen't have "Type", thank you.

amitchandak
Super User
Super User

@yodha , seem like a json data check

https://www.youtube.com/watch?v=ipI6mrWLQKA

https://www.mssqltips.com/sqlservertip/4621/using-power-bi-with-json-data-sources-and-files/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hi @yodha 

try

Column = 
var _start = SEARCH("""Type", [Column1])
var _finish = SEARCH(",", [Column1], _start)
RETURN
MID([Column1], _start, _finish - _start)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 : Thank you so much for the response but this is giving me error because few rows doesn't contain "Type" in my Table, can you tell me how to modify this DAX ?  

az38
Community Champion
Community Champion

@yodha

try

 

Column =

var _start = SEARCH("""Type", [Column1],,0)

var _finish = SEARCH(",", [Column1], _start)

RETURN

IF(_start > 0, MID([Column1], _start, _finish - _start), BLANK() )


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors