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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
hansdevr
Creator III
Creator III

Max(Datum)

What I need is to simpify this table.. In the original table, there are (potentially) many transactions on one day, hence the hh:mm:ss in the date. What I want is in the resulting table: when there are more than 1 transactions on one day, I need to keep the most recent transaction for that day, with the corresponding reserve amount. Days can then lose the hh:mm:ss extensions, so I get one final transaction per whole day.

Again, I think this should be accomplished with max() and group by.. But how? I did a few attempts, but couldn't get it to work.

See example below:

Original:

   

%DossierNr%ClaimVlgnrDatumReserve
990019914990019914-12016-06-06 20:25:31€ 239.419,78
990019914990019914-12016-06-06 20:21:01€ 240.938,57
990019914990019914-12016-06-06 20:14:14€ 242.325,84
990019914990019914-12016-06-06 19:56:03€ 282.325,84
990019914990019914-12016-06-06 19:52:32€ 283.006,66
990019914990019914-12016-04-17 21:34:13€ 285.000,85
990019914990019914-12016-04-04 11:10:47€ 286.000,85
990019914990019914-12016-03-30 21:02:23€ 291.500,00
990019914990019914-12016-03-04 09:16:06€ 295.500,00
990019914990019914-12016-03-02 14:10:48€ 300.000,00
990019914990019914-12016-02-12 08:55:16€ 11.150,29
990019914990019914-12015-04-16 10:26:52€ 14.500,00

Desired result:

   

%DossierNr%ClaimVlgnrDatumReserve
990019914990019914-12016-06-06€ 239.419,78
990019914990019914-12016-04-17€ 285.000,85
990019914990019914-12016-04-04€ 286.000,85
990019914990019914-12016-03-30€ 291.500,00
990019914990019914-12016-03-04€ 295.500,00
990019914990019914-12016-03-02€ 300.000,00
990019914990019914-12016-02-12€ 11.150,29
990019914990019914-12015-04-16€ 14.500,00
Labels (1)
12 Replies
bharath28
Creator
Creator

Thanks a lot. Its always great to see your answers.

If you have time, could you give the UI solution( i mean chart expression).

sunny_talwar
MVP
MVP

bharath28‌ -

In addition to mayilvahanan‌'s front end method, you can use FirstSortedValue()

Capture.PNG

bharath28
Creator
Creator

Thank you so much