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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mg01
Helper I
Helper I

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 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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