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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
watkinnc
Super User
Super User

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


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @ARag ,

 

do you have an end date column?

watkinnc
Super User
Super User

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


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors