Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
when creating a Direct Query dashboard I need to connect to big a complicated SQL query that will be filtered (by defenition) by the user. the SQL Statment disent load, I get a timeout - why does it run the full query?
again- the query is complicated and huge, but when the user will filter it (WHERE statment will be added by PowerBI) it will reduce to very small result.
Is there a way to prevent PoerBI with running the full query when I load the SQL statment to the dashboard?
Solved! Go to Solution.
@Anonymous ,
This issue depends on the sql statement and transformed native sql statement. I would suggest you read the doc about query foldering:
https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
This issue depends on the sql statement and transformed native sql statement. I would suggest you read the doc about query foldering:
https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
refer
https://www.youtube.com/watch?v=4kVw0eaz5Ws
https://docs.microsoft.com/en-us/power-bi/guidance/import-modeling-data-reduction
https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding
https://docs.microsoft.com/en-us/power-query/power-query-folding
https://docs.microsoft.com/en-us/power-bi/guidance/power-bi-optimization
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 40 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 132 | |
| 112 | |
| 58 | |
| 57 | |
| 57 |