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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Compare multiple rows to get the most recent version

Hello all,

 

I have a dateset containing ongoing projects for my department. I'm attempting to use Power Automate's "Run a query against a dataset" to automatical generate a list of projects that meet certain conditions. The structure of the dataset is giving me trouble and making it hard for me to write the necessary query.

 

Each project is assigned an ID and version number. The ID doesn't change but as the project goes through revisions, a new entry will be made in the dataset with an incremented version number. The Version number starts at 1. For each project, I am only concerned with the entry with the highest version number.

 

For example, if a project with ID 123 has gone through two revisions, there will be three entries with ID 123, each with
incrementing version numbers. I would only be concerned with submission 3 and if it meets my conditions.

IDVersionStatus
1231Under Review
1232Under Review
1233Completed
4561Under Review
4562Under Review

To give another example based on this table, if I wanted to get check if the latest version of any projects are still under review, I would expect to only get back the row for project 456, version 2.

 

I've been researching on how to do comparisons between multiple rows but I only feel more confused. Any help would be greatly appreciated.  

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Please find the attached solution

Refer to the table with measure Last Status Complete 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Please find the attached solution

Refer to the table with measure Last Status Complete 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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