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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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