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
Gerald23
Helper I
Helper I

Filter by date in source step

Hi Everyone,

 

Would it be possible to filter by date in the source settings within the Power Query editor?

 

I currently have setup an extra step that filters all records to only show data which is after 1-1-2020 but if possible i would like to apply this filtering in the Source step already because I think that would be better for performance reasons.

 

Is this possible and how would my query look like?

 

 

Gerald23_1-1658217981832.png

In Advanced Editor: #"Filtered Rows" = Table.SelectRows(#"Changed Type", each [Period.Date Value] > #date(2020, 1, 1)),

 

Gerald23_0-1658217945740.png

 

2 ACCEPTED SOLUTIONS
Vijay_A_Verma
Super User
Super User

Anonymous
Not applicable

Hi @Gerald23 ,

 

You could also create the paremeters for filtering.

About more details, please kindly refer to

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs

 

 

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Gerald23 ,

 

You could also create the paremeters for filtering.

About more details, please kindly refer to

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs

 

 

 

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

If your source is SQL then you can use direct query by applying the filter condition else
you can use Python or R script to do all data transformation steps and load the final dataset.

Vijay_A_Verma
Super User
Super User

You can use a DAX to filter data before importing. This has been solved here

https://community.powerbi.com/t5/Desktop/limit-SSAS-data-import-through-MDX-DAX-query/m-p/701065#M33... 

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.