Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
aguirre
Creator
Creator

How to get the latest operation result in a table

Hello,

I have a table with the following data:

 

timestamp task result
17/10/2024  task1 OK
18/10/2024  task1 OK
18/10/2024 task2 KO
18/10/2024 task2 OK
19/10/2024  task2 OK
19/10/2024 task2 KO
20/10/2024 task1 KO

 

I would like to show a table with the latest results only for each task:

 

task LatestResult
task1 KO
task2 OK

 

Which formula should I put on column LatestResult ?

 

Labels (3)
1 Solution

Accepted Solutions
Kushal_Chawda

@aguirre  try FirstSortedValue()

=FirstSortedValue(distinct results, -timestamp)

View solution in original post

2 Replies
CHRIS_Singa
Creator
Creator

Group by task and LatesResult

And then use where condition to filter the timestamp

Kushal_Chawda

@aguirre  try FirstSortedValue()

=FirstSortedValue(distinct results, -timestamp)