Forum Discussion
admin11
Memorable Member
4 years agoI need to Extract first 3 character ?
Hi All
Can some one share with me how to do the above mentioned ?
Power BI / DAX: Add a calculated column with the Code:
CalculatedColumn := LEFT([Customer/Vendor], 3)PowerQuery:
nextStep = Table.AddColumn(previousStep, "newColumn", each Text.Start([#"Customer/Vendor"], 3), type text)Hi,
In the Query Editor, you may also try the "Column from Example" feature.
6 Replies
- lukiz84
Memorable Member
Power BI / DAX: Add a calculated column with the Code:
CalculatedColumn := LEFT([Customer/Vendor], 3)PowerQuery:
nextStep = Table.AddColumn(previousStep, "newColumn", each Text.Start([#"Customer/Vendor"], 3), type text)- admin11
Memorable Member
thank you very much
- Ashish_Mathur
Super User
Hi,
In the Query Editor, you may also try the "Column from Example" feature.
- admin11
Memorable Member
Ashish_Mathur @Thank you very much for sharing
- Ashish_Mathur
Super User
You are welcome.
- Hariharan_R
Solution Sage
Hi admin11
As you are in Power query use Text.Start function in the new custom column.
Ref - https://docs.microsoft.com/en-us/powerquery-m/text-start
Thanks
Hari
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.
My Blog :: YouTube Channel :: My Linkedin