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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Syndicate_Admin
Administrator
Administrator

Grouping

Hello, I have a table with the following columns:

1. Operation Id

2. Id Paso

3. Date

I need to get a table grouped by Operation ID, getting the most recent date and its respective Step ID. When I try to filter by most recent date in data transformation I get the most recent row (1 row) and not for each operation.

I would greatly appreciate the support

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @aperezd 

 

Do you want something like this? 

vjingzhang_0-1655950423370.png

 

First group by operation id column and add two new columns as below. The Latest Date column will return the latest date for every operation id. 

vjingzhang_1-1655950526266.png

 

Then expand the All Rows column and select only necessay columns to expand. 

 

Add a step to filter rows where [Date] = [Latest Date].

vjingzhang_2-1655950575919.png

 

Remove Latest Date column if it's not needed any longer. I have attached the sample file at bottom. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks for the solution! 

I actually have a follow-up question on this. 

What if I want to keep the initial table and create a new one that would group the data in order to have

 

col1 operation ID, col2 earliest step date, latest step date

 

Should I create a new table and use the summarize function to do so? what would it look like?

 

Thanks loads for the support!

v-jingzhang
Community Support
Community Support

Hi @aperezd 

 

Do you want something like this? 

vjingzhang_0-1655950423370.png

 

First group by operation id column and add two new columns as below. The Latest Date column will return the latest date for every operation id. 

vjingzhang_1-1655950526266.png

 

Then expand the All Rows column and select only necessay columns to expand. 

 

Add a step to filter rows where [Date] = [Latest Date].

vjingzhang_2-1655950575919.png

 

Remove Latest Date column if it's not needed any longer. I have attached the sample file at bottom. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors