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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.