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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.