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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Mdived
Frequent Visitor

Parameter in Power BI (Desktop and Power Query)

Hi Team,

Good Day!

I am and was a Tableau Developer. Now, we are doing migration of reports from Tableau to Power BI.

I have knowledge on power bi but need to improve some technical data technique or ETL porcess.

I am really confused Paramter concept in Power BI. We can create a parameters in power query and desktop also.

Request: Can any one understnad me the when we can utilize the these 2 different tool parametrs.

Imp Question:
If I wan to create a Field parameter in desktop we dont have option to create based on list of values.
So, i created a enter data table then write a DAX to apply logic. Need to fix my confusion.

Appreciate your help and support!
Thank you,
Manty



 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-jianpeng-msft
Community Support
Community Support

Hi, @Mdived 

We can use parameters in Power Query for many purposes, such as filtering our queries through parameters:

vjianpengmsft_0-1723170343767.png

We can also use parameters as parameters for connecting to a data source. For example, when we connect to a database, we define the database name in the parameters and then use it when connecting:

vjianpengmsft_1-1723170492568.png

We can also use parameters created by PowerQuery in the Advanced Editor:

vjianpengmsft_2-1723170755781.png

vjianpengmsft_3-1723170811736.png

For example, when we want to use incremental refresh of the Power BI semantic model, we need to use the parameters in Power Query.

Power BI desktop field parameters allow users to dynamically change the measure or dimension being analyzed in a report. This feature helps report readers explore and customize the analysis of a report by selecting different measures or dimensions that they are interested in.

vjianpengmsft_4-1723171013614.png

vjianpengmsft_5-1723171146374.png

vjianpengmsft_6-1723171216020.png

 

As I created a field parameter in the image above, this parameter will interact with my visual object.

You can learn more about the differences between them from the following links:

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

Parameters - Power Query | Microsoft Learn

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Power Query Parameters Vs. What If Parameters: Power BI Implementation Use Cases - RADACAD

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

2 REPLIES 2
cath1ynn
Resolver II
Resolver II

Having come from Tableau to Power BI, I feel your pain and confusion. In Tableau, you can create Parameters that the Users can use to enter values into that you can then take into account in your measures. You don't have that option in Power BI. The closest you have is to create a data table with the values that they can select from (using a slicer or another visual) and using SELECTEDVALUE in your measure. I find the Parameter function in Power Query too limiting when compared to the Parameter function in Tableau.

 

Having said that though, the Field Parameters in Power BI is quite powerful and it is something that is not available natively in Tableau (when I used it 2 years ago). This allow you to do some very cool work in Power BI such as allowing the user to select the fields that they want to use in their columns and rows for matrix visual, or allowing the user to select the measure that they want to use in their chart visuals.

v-jianpeng-msft
Community Support
Community Support

Hi, @Mdived 

We can use parameters in Power Query for many purposes, such as filtering our queries through parameters:

vjianpengmsft_0-1723170343767.png

We can also use parameters as parameters for connecting to a data source. For example, when we connect to a database, we define the database name in the parameters and then use it when connecting:

vjianpengmsft_1-1723170492568.png

We can also use parameters created by PowerQuery in the Advanced Editor:

vjianpengmsft_2-1723170755781.png

vjianpengmsft_3-1723170811736.png

For example, when we want to use incremental refresh of the Power BI semantic model, we need to use the parameters in Power Query.

Power BI desktop field parameters allow users to dynamically change the measure or dimension being analyzed in a report. This feature helps report readers explore and customize the analysis of a report by selecting different measures or dimensions that they are interested in.

vjianpengmsft_4-1723171013614.png

vjianpengmsft_5-1723171146374.png

vjianpengmsft_6-1723171216020.png

 

As I created a field parameter in the image above, this parameter will interact with my visual object.

You can learn more about the differences between them from the following links:

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

Parameters - Power Query | Microsoft Learn

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Power Query Parameters Vs. What If Parameters: Power BI Implementation Use Cases - RADACAD

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors