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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
rsbin
Community Champion
Community Champion

Power Query: Keep MaxDateTime by Group

Good Afternoon,

I have a scenario that I am not able to fully resolve in Power Query

I have the following simplified dataset:

ReportDate ClientSiteDisplay MaxDateTimeCT
3/9/2023 ABC 2023-03-09T09:15:03
3/12/2023 ABC 2023-03-12T06:02:10
3/12/2023 ABC 2023-03-13T02:00:58
3/9/2023 XYZ 2023-03-09T04:57:07
3/9/2023 XYZ 2023-03-09T07:57:14
3/12/2023 XYZ 2023-03-12T08:27:32

I want to keep only the MaxDate by Group where GroupBy = ReportDate & ClientSiteDisplay.

So final result should look like this:

ReportDate ClientSiteDisplay MaxDateTimeCT
3/9/2023 ABC 2023-03-09T09:15:03
3/12/2023 ABC 2023-03-13T02:00:58
3/9/2023 XYZ 2023-03-09T07:57:14
3/12/2023 XYZ 2023-03-12T08:27:32

As always, any and all guidance is much appreciated!

Regards,

1 ACCEPTED SOLUTION
rsbin
Community Champion
Community Champion

Decided to perform the operation in DAX instead of Power Query.
In this way, User can see the Records in Error if they so choose.

View solution in original post

1 REPLY 1
rsbin
Community Champion
Community Champion

Decided to perform the operation in DAX instead of Power Query.
In this way, User can see the Records in Error if they so choose.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.