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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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