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

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.

Reply
Torbenan
Helper I
Helper I

Filter rows in query editor - refresh slow

In a Azure SQL table I have 12 million rows. The table has a column called IntelvalType, and I only need rows where the IntervalType = 8. This is about 177.000 rows.

 

Refreshing data takes a long time. I seems like every 12m rows are download to Power Bi desktop, the evaluated against the row filter. Am I correct in this assumtion? I there a better way to get the rows I need and only the rows I need?

 

 

 

 

1 ACCEPTED SOLUTION

The problem has been solved in Power Bi desktop, since the DBA didn't want a extra view in the DB.
In stead of doing the filtering in Power Query, I did the following.
Created a new data source Power Bi Desktop
Enter Database Names and Server

Selected advanced mode.

wrote the select statement.
I did not time it by a stop watch, but I think data refresh time went from 30 min to 30 sec.
I found the inspiration to the fix here: https://www.youtube.com/watch?v=EhGF372t0sU

Capture.PNG

View solution in original post

4 REPLIES 4
ibarrau
Super User
Super User

Hi. You have to consider that power bi won't add additional load time unless you have a lot of crazy power query steps. Consider running a SELECT * FROM table WHERE IntervalType = 8 in the engine with Management Studio or Data Studio. Then that should be the time that will take the power bi service to refresh directly without a gateway.

 

About Power Bi Desktop you are right, it will download all the table compressed. That is why it can take a bit longer than the time of the query result directly on the engine.

 

The important thing is that once you have this published on service you don't need a gateway and it should take almost the same time of the query against the engine.

 

Hope this makes it clearer.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

The problem has been solved in Power Bi desktop, since the DBA didn't want a extra view in the DB.
In stead of doing the filtering in Power Query, I did the following.
Created a new data source Power Bi Desktop
Enter Database Names and Server

Selected advanced mode.

wrote the select statement.
I did not time it by a stop watch, but I think data refresh time went from 30 min to 30 sec.
I found the inspiration to the fix here: https://www.youtube.com/watch?v=EhGF372t0sU

Capture.PNG

Greg_Deckler
Community Champion
Community Champion

I would highly recommend creating a view in your SQL table that does the filtering and pull from that. Or create the SQL query to do the filtering and in the Advanced part of connecting to your server, paste in the SQL code.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks - I aksed the DB admin to create the view

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors