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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Most Valuable Professional
Most Valuable Professional

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
Most Valuable Professional
Most Valuable Professional

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors