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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
aignn
Helper II
Helper II

How filter table in power query to get all rows where Mydate < last day of previous month?

Hello!

 

Help me please. How filter table in power query to get all rows where Mydate < last day of previous month?

 

That possible with Date.EndOfMonth? Like this:

 

#"Filter1" = Table.SelectRows(#"Filter0", each Date.EndOfMonth(.....))

 

Thank you advance

 

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @aignn 

 

were you able to solve the problem with any reply given?

If so, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)

Kudoes are nice too

 

All the best

 

Jimmy

 

Jimmy801
Community Champion
Community Champion

Hello @aignn 

 

try something like this (not tested!)

#"Filter1" = Table.SelectRows(#"Filter0", each [Mydate]< Date.EndOfMonth(Date.AddMonths(DateTime.LocalNow(),-1)))

 

If this post helps or solves your problem, please mark it as solution.
Kudos are nice to - thanks
Have fun

Jimmy

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors