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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
wahmed20
Resolver I
Resolver I

Assign yesterday date to a field in Filter rows

I have a date Field and I want to filter rows base on that

wahmed20_0-1685610313103.png

In the Value , I want to have yesterday date formula.
I used https://learn.microsoft.com/en-us/powerquery-m/datetime-fixedlocalnow in the Query ribbon but it not working.
Only #datetime(2023, 5, 31, 0, 0, 0) is working in Query Editor.
What Query I should have in query editor for yesterday date? My date field is datetime

1 ACCEPTED SOLUTION
wahmed20
Resolver I
Resolver I

This worked for me 

 

 Date.From(DateTime.LocalNow() - #duration(1,0,0,0))

 

 

 

View solution in original post

1 REPLY 1
wahmed20
Resolver I
Resolver I

This worked for me 

 

 Date.From(DateTime.LocalNow() - #duration(1,0,0,0))

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

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.