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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
abehrmann
Helper II
Helper II

Filtering a view but it still loads the entire table

I am connecting to an azure sql db and i am filtering a view down to just the relavant data in powerquery. 

 Let just say i filtered it to 5 row. 

 

 

when i go to apply changes the report still shows loading the 30k rows in the view. 

 

Which takes quite a while sometimes an hour 

 

 

is there a reason for this?

2 ACCEPTED SOLUTIONS
Nolock
Resident Rockstar
Resident Rockstar

Hi @abehrmann,

I assume that your query can't be folded to the Azure SQL DB. In such case PowerQuery downloads all data and then does all the transformations. It depends on what you do with your data in your ETL and if it is supported by the data source.

More about that for example on https://exceleratorbi.com.au/how-query-folding-works/ or just search for "Power BI Query Folding" on the internet.

View solution in original post

Geradav
Responsive Resident
Responsive Resident

Hi @abehrmann,

 

When querying an Azure SQL Database, have you tried implementing a SQL statement at the connection level to apply your filter before it goes into Power Query?

This could greatly improve the performance

Annotation 2019-08-02 222848.jpg

View solution in original post

3 REPLIES 3
Geradav
Responsive Resident
Responsive Resident

Hi @abehrmann,

 

When querying an Azure SQL Database, have you tried implementing a SQL statement at the connection level to apply your filter before it goes into Power Query?

This could greatly improve the performance

Annotation 2019-08-02 222848.jpg

This is what i have started to do to reduce the likeihood that a query will not fold. 

 

Thanks

 

Nolock
Resident Rockstar
Resident Rockstar

Hi @abehrmann,

I assume that your query can't be folded to the Azure SQL DB. In such case PowerQuery downloads all data and then does all the transformations. It depends on what you do with your data in your ETL and if it is supported by the data source.

More about that for example on https://exceleratorbi.com.au/how-query-folding-works/ or just search for "Power BI Query Folding" on the internet.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors