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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
nok
Advocate II
Advocate II

Power Query show only rows with most recent date

Hello!

In PowerQuery, I'm trying to do a filter to show only the most recent files based on the column "Folder Patch.2.1", but I don't know how to do it. Here's how the data appears:
q1.PNG

In the example image above, I want to always filter ONLY the files with the "Folder Patch.2.1" column with the most recent date. In this case, it would only show these rows:
q1 - Copia.PNG


How can I do this?

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

 

Step 0: I use these data below.

mickey64_0-1733486274908.png

 

Step 1: I click a right button of mouse on 'Folder Path.2.1' and select 'Group By...'.

mickey64_1-1733486621307.png

 

Step 2: I enter the conditions in the "Group By" window and click the OK button.

mickey64_2-1733486789144.png

 

Step 3: I expand the "Date created" column.

mickey64_3-1733486978180.png

 

Step 4: I add a condition column.

mickey64_4-1733487082408.png

mickey64_5-1733487136221.png

 

Step 5: I filter the 'Flag' column.

mickey64_6-1733487179430.png

 

Step 6: I remove these columns.

[Before]

mickey64_7-1733487300264.png

[After]

mickey64_8-1733487315504.png

 

 

View solution in original post

2 REPLIES 2
mickey64
Super User
Super User

For your reference.

 

Step 0: I use these data below.

mickey64_0-1733486274908.png

 

Step 1: I click a right button of mouse on 'Folder Path.2.1' and select 'Group By...'.

mickey64_1-1733486621307.png

 

Step 2: I enter the conditions in the "Group By" window and click the OK button.

mickey64_2-1733486789144.png

 

Step 3: I expand the "Date created" column.

mickey64_3-1733486978180.png

 

Step 4: I add a condition column.

mickey64_4-1733487082408.png

mickey64_5-1733487136221.png

 

Step 5: I filter the 'Flag' column.

mickey64_6-1733487179430.png

 

Step 6: I remove these columns.

[Before]

mickey64_7-1733487300264.png

[After]

mickey64_8-1733487315504.png

 

 

lbendlin
Super User
Super User

Click the dropdown, sort the column descending

Group by folderpath.2.1

keep top row

ungroup

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathonโ€”running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.