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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.