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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filter dates before current week

Hello,

I have the following table in Power Query and i am trying to filter all rows based on the Start date before the Monday date of the current week. Is this possible? Any help is much appreciated!

 

Start dateStockReturnsDefectiveCategory
01/05/20216917Late
27/05/20222510On time
07/08/20225615On time
14/07/20225615Undefined
08/08/2022348No action
12/08/20222210Late
17/08/20227822On time
20/08/20223313No action
22/08/20226318Late
29/08/20223314On time
18/09/20223314Undefined
07/09/20222717No action
16/09/20223722On time
20/09/20229316On time
23/09/20227520Late
11/10/20229818No action
04/01/20236716On time
17/02/202371434On time
11/12/20229818No action
1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Try this:

Table.SelectRows(
    previousStepName,
    each [Start date] < Date.StartOfWeek(Date.From(DateTime.LocalNow()), Day.Monday)
)

 

Pete



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

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

=Table.SelectRows(PreviousStepName,each [Start date]<Date.StartOfWeek(Date.From(DateTime.LocalNow()),Day.Monday))

BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Try this:

Table.SelectRows(
    previousStepName,
    each [Start date] < Date.StartOfWeek(Date.From(DateTime.LocalNow()), Day.Monday)
)

 

Pete



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

Proud to be a Datanaut!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.