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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ARag
Frequent Visitor

Keep rows only when the date is equal to the end of month

Hi, 

 

I have a dataset with dates for each day of a given period. I'm trying to filter and only keep rows where the event date = the last date of the given month. 

 

How do I perform that in PowerQuery (Doing it in DAX after data is loaded is not an option)? 

ARag_0-1631887621043.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can use the GUI function in the columns tab, under Date, to add and End of the Month column, then use 

Table.SelectRows(PriorStep, each [Date] = [EndOfMonth])

 

--Nate

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @ARag ,

 

do you have an end date column?

Anonymous
Not applicable

You can use the GUI function in the columns tab, under Date, to add and End of the Month column, then use 

Table.SelectRows(PriorStep, each [Date] = [EndOfMonth])

 

--Nate

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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