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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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