Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Can I filter a DirectQuery using a user supplied parameter



I'm working on building a report that is looking at a rather large dataset. However, my users do not need to see the entire dataset at one time, instead they only want to see records for a specific property. I'm still new to PowerBI but in Business Objects I was able to force the user to select a value for a given parameter before the query was sent to the database, am I able to do something similar in PowerBI?


This is an example of what I am hoping to be able to do in PowerBI, it prompts the user for a parameter before even querying the data in the database.




Community Support
Community Support

Hi @thatfield ,

Please check if the following methods can help you achieve your requirement.

1. URL filter eq 'NC – Lindseys'

2. User editing of DirectQuery query parameters


3. RLS

Filter a directQuery with parameter and apply parameter change within URL call (PBIRS sept2021)

Unfortunately what you are trying to do is not possible. Currently the parameters in a query can only be changed at "design time" (while editing in Power BI Desktop) and cannot be changed dynamically while viewing a report. 


One other approach would be to include all the rows from your User table, then apply the url filter using the filter= syntax as documented here 


Another approach could be to look at using Row Level Security to filter the user table, but you would need to have some way of mapping to a login to one of your user ids in order to do that.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors