Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a Power BI file and have imported an Excel file using Edit Queries. I created 2 new parameters. When I try to create a function to dynamically change the parameter value on the Excel sheet I imported, Power BI says the Sheet does not reference any parameters. Any suggestions on how to resolve this?
Solved! Go to Solution.
You are missing a step between 4 and 5.
Creating parameters doesn't put them in a query. You have to reference the parameters in the query. So to test this, assume your parameters are numbers, and one is called parTestValue. Create a custom column that is =[SomeNumericColumn] * parTestValue
Now you can right-click on the query and create a function. It will only be using the parameter(s) you are explicitly using in the query.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingPower BI/Power Query cannot change data on an external source, which is what it sounds like you are trying to do. If that is not the case, can you be more specific and perhaps provide a PBIX file as an example?
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingI took the following steps.
1) Create a new .pbix file.
2) Open Query Editor using Edit Queries
3) Choose New Source as an Excel file and then import it.
4) A query named Sheet1 is created.
4) Click on Manage Parameter-New Parameter and create 2 new parameters.
5) Now when I right click on Sheet1 and click Create Function..., Power BI says the query Sheet1 does not reference any parameters.
How do I resolve this? I want to create a function that utilizes the 2 parameters I created when invoked?
You are missing a step between 4 and 5.
Creating parameters doesn't put them in a query. You have to reference the parameters in the query. So to test this, assume your parameters are numbers, and one is called parTestValue. Create a custom column that is =[SomeNumericColumn] * parTestValue
Now you can right-click on the query and create a function. It will only be using the parameter(s) you are explicitly using in the query.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThanks. That solution worked.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |