This is about parameters in Power BI queries. It is something similar to parameters in Power Query, but something different from parameters used in DAX, managed from visuals.

Parameter is useful if you want to run a single query in multiple modifications – for different items, sources etc.

In following example we will start with this table, loaded from Excel. We will run this query multiple times for different Activities (the fourth column).

Let´s create new parameter:

And define its properties (different according to the type parameter):

New parameter appears in the list of queries. You can find it there anytime and switch its value and properties.

And how to use it? Let´s refer it in some step of query. Typically in a filter:

After refreshing of this query there are just rows meeting parameter loaded.

Values of parameter can be easily switched in Power BI here:

And where can utilize the parameter, besides filter?

For example in conditional columns:

For data source selection:

Number parameters can be used for adding or keeping rows:

And probably something more I forgot 🙂

Leave a Reply

Your email address will not be published.

*

clear formPost comment