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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anmolgan
Post Prodigy
Post Prodigy

How to split column?

I have SAP BW on premise as my data source, I need to split a column the string goes like this: 10/10/GO11/P001

 

I need to extract out right most delimeter in this case is P001, now I could have easily done this using query editor, but problem is I cannot duplicate my column whenever I duplicate I get an error stating: 

 

The field '[ZCUST_MA___F4].[LEVEL01].[2ZCUST_MA___F4]' already exists in the record.
Details:

 

So I cannot use the query editor here, is there any way I can write a DAX to split this one?

1 ACCEPTED SOLUTION

@v-xuding-msft @amitchandak @Anonymous 
Below post helped me in achieving the goal, thing was to create custom column using formula 

Text.Split([Value], ":"){2}

and split the column according to the delimeter used with the {2} Position.

 

https://community.powerbi.com/t5/Desktop/DAX-extracting-string-using-delimiter/td-p/287840 

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

Refer :https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

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

Hi @amitchandak as I stated earlier I tried this step only, but failed to duplicate column, as I have sent the error before, I need to do this using DAX custom column.

@v-xuding-msft @amitchandak @Anonymous 
Below post helped me in achieving the goal, thing was to create custom column using formula 

Text.Split([Value], ":"){2}

and split the column according to the delimeter used with the {2} Position.

 

https://community.powerbi.com/t5/Desktop/DAX-extracting-string-using-delimiter/td-p/287840 

Anonymous
Not applicable

Hi @Anmolgan ,

 

you have to make two New Column by using below DAX formula:

 

First_Column =
LEFT (
    SUBSTITUTE ( Table1[Name], "/", "-" ),
    SEARCH ( "-", SUBSTITUTE ( Table1[Name], "/", "-" ) ) - 1
)

 

Last name =
RIGHT (
    SUBSTITUTE ( Table1[Name], "/", "-" ),
    LEN ( SUBSTITUTE ( Table1[Name], "/", "-" ) )
        - SEARCH ( "-", SUBSTITUTE ( Table1[Name], "/", "-" ) )
)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.

 

Regards,

Gaurav Raj Singh

LinkedIN : https://www.linkedin.com/in/gauravrajsingh/

@Anonymous Substitute function  is not helping me in this case, I dont want to replace my delimeter with - I need to extract out right most values after /

Hi @Anmolgan ,

Please investigate the applied steps (panel on the right) and find the first erroneous step. You also could create a blank query to split the column and check if it works. 

 

Best Regards,

Xue Ding

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

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.