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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.