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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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