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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Fetching first four character from Parameter

Hi Team,

I'm creating a parameter in Power Query Editor which consists of branch_id_name, For Ex. 1116-madhya pradesh.

This parameter is bound to my branch table with branch_id_name, which we are using as slicer.

But there are different  joins in my query perform joins based on branch_id column which is 1116 first four character from branch_id_name.

Now, can anybody let me know how can I extract first four character from my parameter in advance query editor?

Attached one referencequery in screenshot which we using in advance editor, idea is to fetch first four character from parameter value. 

mg01_0-1685601299308.png

mg01_2-1685601696630.png

Thanks in advance!!

 

 

 




1 REPLY 1
Ahmedx
Super User
Super User

pls try this

Text.Start([m,4)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors