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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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