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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors