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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amal_01
Helper I
Helper I

Filter does not applied in power bi query

I have a table called InventTrans, and it contains a large amount of data. I applied a filter in Power Query on the InventDate column to include only records on or after 1/1/2025. However, when I click Close & Apply, it still loads all the data from the table. It looks like the filter isn't working.

 

Why is this happening?

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @amal_01 ,

 

My guess is that the source you are using is not foldable - is it SharePoint/network folder/Excel/CSV etc.?

In this case, Power Query can not send your filter back to the source to only retrieve the filtered rows, therefore, when you apply your query to the model, it has to load ALL the rows, then filter them in the model afterwards.

In order to avoid this behaviour (and only load filtered rows first time) you need to use a foldable source, such as SQL Server etc.

More detail available here:

Solved: Query Folding - Supported and Unsupported Data Sou... - Microsoft Fabric Community

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Abhilash_P
Continued Contributor
Continued Contributor

Hi @amal_01 ,

If your data source is sql database can you below sql statement directly

SELECT *
FROM InventTrans
WHERE InventDate >= '2025-01-01'

MFelix
Super User
Super User

Hi @amal_01 ,

 

This may depend on a lot of things but I would do a couple of checks, I assume you have already done some of this but just double checking,

  • Data type is correct before doing the filter in this case is date
  • Be sure the format of thedate you are using in the filter is correct based on your local settings of PBI file
  • Number of rows are the same before and after the filter
    • Usually I use the Count rows on the  Transform bar

MFelix_0-1752570181503.png

 

  • After load do a sorting of the date column to see what is the minimum and maximum value

 

Without any data and example is difficult to understand what may be happening

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors