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

PQ how to duplicate column ?

Hi All

So that i can splite the below field for create brand field and still keep the org field.

Paulyeo11_0-1607131846691.png

 

3 ACCEPTED SOLUTIONS
PhilipTreacy
Super User
Super User

Hi @Anonymous 

You can use the Text functions like Text.Start to create a new column from a sub-string of your Stock Description text.  Eactly what part of that description forms the brand?

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

PhilipTreacy
Super User
Super User

Hi @Anonymous 

The line you need is 

#"Added Custom" = Table.AddColumn(#"Removed Columns", "Brand", each if Text.Length([Stock Description]) > 0 then Text.Start([Stock Description], Text.PositionOf([Stock Description], " ")) else "")

I've added it to your PBIX file so download that from here.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

@Anonymous 

you can also try to create a custom column. Just double click the column name in the list on the right side and click ok.

1.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

8 REPLIES 8
PhilipTreacy
Super User
Super User

Hi @Anonymous 

The line you need is 

#"Added Custom" = Table.AddColumn(#"Removed Columns", "Brand", each if Text.Length([Stock Description]) > 0 then Text.Start([Stock Description], Text.PositionOf([Stock Description], " ")) else "")

I've added it to your PBIX file so download that from here.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi Phil

Thank you very much. May i know how you do it ?

Pls share few screen shot.

Paul

@Anonymous 

you can also try to create a custom column. Just double click the column name in the list on the right side and click ok.

1.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi Ryan

if I duplicate the custom column at PQ , when I try to append file will this new column missing ? 

PhilipTreacy
Super User
Super User

Hi @Anonymous 

You can use the Text functions like Text.Start to create a new column from a sub-string of your Stock Description text.  Eactly what part of that description forms the brand?

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi Phil

Can you show me how you do it , as i cannot understand .

https://www.dropbox.com/s/j7gfpwtid67c63m/ask%20recode%20brand%20v001.pbix?dl=0

above is my PBI file

Paul

Hi,

If you want a calculated column solution in DAX, then try this

Column = TRIM(LEFT(SALES[Stock Description],SEARCH(" ",SALES[Stock Description],1,BLANK())))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Phil

thank you for your advise.

I get the first word of the Description field to form the Brand.

for example :- Desciption =Beckhoff BC9000 

Brand = Bekhoff 

Paul

 

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!

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