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

Over 24262 Reviews
Great session to understand how to use Power Query to set up Data Tables that are then useful in Power BI for Visuals. A good introduction to DAX, M expression writing. and row level security. Jason paces the session well and makes it easy to understand. -Power BI Intermediate Brisbane
Karen - Power BI Intermediate, .
Great Course with good info good interactions. -Power BI Intermediate Brisbane
Jason - Power BI Intermediate, .
It was a good pace and easy to follow. -Power BI Intermediate Brisbane
Hanh - Power BI Intermediate, .
Well Delivered course -Power BI Intermediate Brisbane
Mike - Power BI Intermediate, .
Great session - Jason is a passionate teacher who kept it interesting all day -Power BI Intermediate Brisbane
Shane - Power BI Intermediate, .
Learned a lot!!! Demonstration of examples was precise. This will definitely come in handy in my current role. Highly recommended workshop! Jason conveyed the lesson in a fantastic way -Power BI Intermediate Canberra
Sehla - Power BI Intermediate, .
Happy with how our questions were answered. -Power BI Intermediate Adelaide
Andrew - Power BI Intermediate, .
Jagg is ran a great session. It was a small group which meant that we could have covered more however I still learnt lots. -Power BI Intermediate Adelaide
Nikki - Power BI Intermediate, .
Need to make sure all desktop apps same version -Power BI Intermediate Adelaide
Gary - Power BI Intermediate, .
Course well delivered. Thank you -Power BI Intermediate Adelaide
Nayan - Power BI Intermediate, .
The course was useful. I learned some things that I will be able to directly implement in my work. -Power BI Intermediate Canberra
Leanne - Power BI Intermediate, .
Very informative -Power BI Intermediate Canberra
Carol - Power BI Intermediate, .
Course was informative but more basic than indicated on the website -Power BI Intermediate Canberra
Amee - Power BI Intermediate, .
Very comprehensive & interactive to ensure understanding of each concept -Power BI Intermediate Canberra
Elizabeth - Power BI Intermediate, .
I picked up some great tools and tips to apply in my current role. Danny was friendly, knowledgeable and helpful. The day was set out well and covered everyone's questions. -Excel Intermediate Sydney
Bree - Excel Intermediate, .
Danny was an excellent presenter . The course covered and touched upon helpful tips and short cuts . I'll highly recommend also to those who would like a refresher on VLookups and Pivot tables. -Excel Intermediate Sydney
Ashwini - Excel Intermediate, .
Great for learning more short cuts and brush up on your skills. Excellent Trainer Danny great. -Excel Intermediate Sydney
Antoinette - Excel Intermediate, .
Good Course, Good outline on features. Happy with pace and presenters clear communication. -Excel Intermediate Sydney
Brock - Excel Intermediate, .
Very good , lots of information to take in. Great course and instructor! -Excel Intermediate Sydney
Kirsten - Excel Intermediate, .
Danny was an excellent trainer and explained things thoroughly and patiently -Excel Intermediate Sydney
Antonia - Excel Intermediate, .

Trusted by Business

Procured by Government

Awards and Accreditations

Map of Australia

Follow us