Forum Discussion
How to use Filters in database queries?
Hello @jstorm
Thank you for your answer..
The problem is that the table on which I should base the query has 2,000,000 records.. When in fact a user's query needs only 5% or 6% of them...
I find it very unreconventional to have to take the 2,000,000 records when maybe I could trigger a much narrower query...
Best regards
I assume you're mode you are fetching the data is set to DirectQuery. Is that the case?
If so, then you simply need to set up your visualization along with the date slicer. PowerBI will automatically append your query with the approproate WHERE clause to narrow your query.
Keep in mind that Power BI does have a 1,000,000 row limit on data returned from a database when in DirectQuery mode. It doesn't sound like you will be anywhere close to that.
Also, for performance reasons, make sure your filtered query can return in < 5 seconds.
- GustavO656 years ago
Helper II
Hello @jptak
Thank you for your answer..
I'm sando QueryDirect..
How do I do/define this that you tell me? you just need to set up the display along with date segmentation
Apologies but I'm new to PowerBI and I'm trying to migrate my reports made at Reporting Services to use the full power of PowerBI in handling information...
Best regards