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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
admin11
Memorable Member
Memorable Member

I need to Extract first 3 character ?

Hi All

 

Can some one share with me how to do the above mentioned ?

admin11_0-1658755375193.png

 

2 ACCEPTED SOLUTIONS
lukiz84
Memorable Member
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)

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, you may also try the "Column from Example" feature.


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

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, you may also try the "Column from Example" feature.


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

@Ashish_Mathur @Thank you very much for sharing 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Hariharan_R
Solution Sage
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


lukiz84
Memorable Member
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)

@lukiz84 @Hariharan_R 

thank you very much

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.