All courses available in-class or via remote login

Query parameters

Using parameters in Power Query

September 13, 2017

Power BI and Power Query

In this article we will show you how to use parameters within Power Query in PowerBI. Query parameters are a powerful way to dynamically interact with your data in Power BI. With the query parameters, users can define one or multiple parameters to be used in their queries. Stay tuned while we work through this exercise to demonstrate how query parameters work.

Consider a query with geographical information in it like Country, State, and City:


As you can see the query contains information on state and city names from a few countries across the globe. We would like to just focus on Europe and hence we would create a parameter to define a list of all the countries in Europe. We have already created a list query called Europe which we will use when we create the parameter.

Under the Home menu click on Manage Parameters to bring up the Parameters window:

excel exert

Enter the data in the relevant sections like below and hit OK.

excel exert

A new parameter EuropeanCountries is now created which we can now use to filter the query. Click on the Filter option in the Countries column and go to Text Filters-> equals… to bring up the Filter Rows window. Select Parameter instead of Text to choose the EuropeanCoutries parameter and hit OK.

excel exert

Since we set the current value of the parameter to be Germany the query now lists only data from Germany

excel exert

You can now dynamically update your charts by changing the current value. In the data model go to Home-> Edit Queries-> Edit Parameters to bring up the Enter Parameters window. From the drop down list choose the country you want and the query and any chart/table which references the Country field will be updated

excel exert

This is just one example of how you can use parameters.


View Power BI Courses

Contact Us

What is Remote Training?

Valued by Individuals

4.8/5
Over 25917 Reviews
Great context set up for the course and great presentation by Steven! It helped me to refresh some already used functions and learn new functions that beneficial to my work. Thank you! -Excel Advanced Brisbane
Lu - Excel Advanced, .
Great course, was well paced for my skill level. Stephen is a great trainer, knowledgeable, easy to follow, and easy to listen to. -Excel Advanced Brisbane
Beth - Excel Advanced, .
Steve has once again proved to be an excellent trainer. I appreciated his personal attention to questions and issues raised. He also took the time to investigate additional topics that were beyond the set scope of the course. Great learning experience! -Excel Advanced Brisbane
Cindy - Excel Advanced, .
Very informative training! I feel like I have learnt a lot. Very engaging trainer! :) -Excel Advanced Brisbane
Alexandra - Excel Advanced, .
The training was well presented. Learning more about relative and absolute was great. Working in charts and learning more about trends and forecasting was very helpful. -Excel Beginner Brisbane
Annette - Excel Beginner, .
Course is well structured and presenter very knowledgeable -Excel Beginner Brisbane
Kevin - Excel Beginner, .
Good presentation and educational. -Excel Beginner Brisbane
Wayne - Excel Beginner, .
Wonderful course. Learnt a lot from an extremely knowledgeable instructor. Thank you! -Excel Beginner Brisbane
Emma - Excel Beginner, .
It was good to increase my efficiency using Excel. -Excel Beginner Brisbane
Nathan - Excel Beginner, .
it was a great training session -Excel Beginner Brisbane
Belinda - Excel Beginner, .
Great course, I learnt a lot and have taken away some skills i can use in my workplace. -Excel Beginner Brisbane
Chantelle - Excel Beginner, .
Very informative. Well paced session. Clear instruction. Good foundation of learning. Thank you. -Excel Beginner Brisbane
Hayley - Excel Beginner, .
Even though the session was remote , It was interesting. I really learned lots of tips & shortcuts that could be used in my role . Overall the session was all good. Great session Ken!!! -Excel Customised Melbourne
Shoma - Excel Customised, .
It was quite a good session for me. Pivot Tables & Macros were the two components that I was really interested in, and Ken was marvelous in teaching those. Also there were few major shortcuts which I never knew before, so it was really awesome to know these -Excel Customised Melbourne
Abdul - Excel Customised, .
Good Handy Tips and Tricks. -Excel Customised Melbourne
William - Excel Customised, .
Ken is great, it was easy to understand, his speed was easy to follow. -Excel Customised Melbourne
Selina - Excel Customised, .
Ken was great! Lots of knowledge and went at a great pace. Thanks Ken! -Excel Customised Melbourne
Lely - Excel Customised, .
It was a good session. -Power BI Advanced Melbourne
Ehsan - Power BI Advanced, .
Very good -Power BI Advanced Melbourne
Vinh - Power BI Advanced, .
Was very useful and learnt a lot of new concepts. -Power BI Intermediate Perth
Karthik - Power BI Intermediate, .

Trusted by Business

Procured by Government

Awards and Accreditations

Map of Australia

Follow us