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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply

Filter, Then Sort, Then Select

Dear kind Sir/Madam,

 

Imagine a table with four colums, actually dont imagine, just look below.

KeyDate/TimeRemainingNEW

6581

16/12/2020 05:34:33-1 
658119/12/2020 08:24:250,2 
658119/12/2020 12:54:233,23,2
789221/12/2020 10:24:233 
789224/12/2020 08:54:2322

 

I would like to see the result like in the last column. So this new function I am looking for should first determine all the rows with the same "key". Then it should look at the corresponding "Date/Time" which date is the most recent (Can be an hour difference only). Then with the most recent date it should return the value from 'Remaining'. Resulting in a column like you can see in red.

 

I hope you are able to help me, thank you for the effort anyway.

 

Kind Regards.

 

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

@SearchKnowledge  Try this and let me know how it goes: The working file is attached below my signature.

 

1.png

View solution in original post

3 REPLIES 3

Works like a charm, thank you @AntrikshSharma 

AntrikshSharma
Super User
Super User

@SearchKnowledge  Try this and let me know how it goes: The working file is attached below my signature.

 

1.png

@AntrikshSharma Thank you for your fast reply and effort, awesome! I only work on the project once a week. But I will try to test it this week. I will let you know!

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.