Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All
So that i can splite the below field for create brand field and still keep the org field.
Solved! Go to Solution.
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
Proud to be a 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
Proud to be a Super User!
@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.
Proud to be a 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
Proud to be a Super User!
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.
Proud to be a Super User!
Hi Ryan
if I duplicate the custom column at PQ , when I try to append file will this new column missing ?
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
Proud to be a Super User!
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.
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