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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Change Value of Power Query Variable for End User

Hello,

 

I hope to allow end users to change the value of variable(s) used in Power Query, whether through slicers, field parameters, or any other methods.

 

Some additional context:

  • I imported my file through Excel (not Direct Query).
  • Example use case: my variable in Power Query will serve as a threshold, where I select data with [Column 1]'s value > [Variable of interest]. 

 

Is this achievable in Power Query?

 

Really appreciate your help! Thank you.

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

In Power Query, when using import mode, end users cannot directly pass parameters to dynamically change the query. Parameters in Power Query are typically set by the developer(sematic model owner) and require a refresh to apply any changes.
Please consider voting for similar ideas:
Microsoft Fabric Ideas


Or if possible, consider moving to a data source that supports the DirectQuery mode.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

AmiraBedh
Super User
Super User

You can use a param like for example :

 

 

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    FilteredRows = Table.SelectRows(Source, each [Column1] > Threshold)
in
    FilteredRows

 

 

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
Anonymous
Not applicable

Hello,

 

Thank you for your reply! To provide more context, my threshold variable will be checking across multiple columns. I want to select data that with [Column 1]'s value  > [variable of interest] or [Column 2]'s value > [variable of interest] or [Column 3]'s value > [variable of interest].

 

An example would be adding a threshold column:

#"Add Threshold Column" = Table.AddColumn(#"previous line", "Threshold", each if [Column 1] > [variable of interest] or [Column 2] > [variable of interest] or [Column 3] > [variable of interest] then [Column 1] else null)

 

Here, I would like the variable of interst to be adjustable by the end user.

 

Would this be possible? Thank you!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.