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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mohammadNimer
New Member

Query Parameter in Power BI Service

Hello community,

I have a project that i wanted to migrate from excel to PowerBI Service and get availiable within the app for some users.

We have a query via ODBC on excel with the client code, as show below:

mohammadNimer_1-1678730586689.png


In this excel we can change the cell that represents client code, and this will update our query only for this client (because is very slow to get all clients and then filter for one).

My problem now is: how can i do this same behaviour on power BI Service. I know i can create a parameter and set a value by default, but this will not change if we publish on the app.powerbi, and i wanted put some drop list or field that the user input to the parameter.

Any sugestions?  

 

3 REPLIES 3
collinq
Super User
Super User

Hi @mohammadNimer ,

 

If you are just looking to have the ability to search for a client when you have all of the data, that is quite easy in the visual in Power BI.  You can just use a slicer for "Client" and the list will be available.  This is "instant" in the Service (because your data is already refreshed and is ready for use AND/OR if you use Direct Query then it will be available as well).




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Thanks for the answer.

 

But actually, I wanted do de filter before the load of the query. This way, I don't need to load all the data to filter for the client code.

 

I wanted just to parametrize my query with a input from the user.

Hey @mohammadNimer ,

 

I understand now what you are wanting - and, no, you can't do that in PBI directly.  The reasoning is that the tool has to get all of the data to know what data is available to filter - and, so, that defeats your purpose of trimming out data ahead of time.

I am thinking that if you created some sort of Power Automate that had an input and that passed the input to run the query then you might get what you want (that is totally theory, I do not know HOW to do that).

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.