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
bahadur
New Member

changing a parameter value in a query step

I have created a PowerBI template that takes two (text) parameters.  Upon opening the template the parameters are prompted for by the system and entered by the user.  This works as required.  As the various other queries in the template are executed, is it possible to include as a step in one of these queries a command to modify one of the parameter values so that futher processing can use the new value for the parameter?

 

Additionally:

 

- is it possible to delete a parameter in a query step?

- is it possible to create a parameter in a query step?

 

 

2 REPLIES 2
Anonymous
Not applicable

Unfortunately no.  Parameters are defined once and then are unchanged throughout the execution of queries at runtime.

I have some difficulties understanding what you are trying to do and what you mean with a "template".

 

Anyhow, if you have a parameter defined in Power Query like:

 

Changing parameters in Power Query.png

Then you can perfectly have query code (or a function parameter) with the same name "Parameter1" and another value, like:

 

let
    Source = #table(1,{{1}}),
    Parameter1 = "John",
    Custom1 = Parameter1
in
    Custom1

Actually, when reading multiple files from a folder, various query objects are automatically created, including a parameter that points to the example file and used in the example query, while the corresponding function has a parameter with the same name, overriding the parameter value that points to the example file.

 

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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