Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Jox
Contributor
Contributor

Show only one occurrence of amount in latest month

Hello dev gurus

Can someone please help?

In this table I am trying to only display one Amount per Number, but to show the Amount always on the most recent month? I tried to use firstsortedvalue() but I just can't seem to get it to work.

Date Number Amount
20231 TI_50136703 17,210
20232 TI_50136703 17,210
20231 TI_50146031 18,055
20232 TI_50146031 18,055
20233 TI_50146031 18,055

 

Labels (1)
1 Reply
Or
MVP
MVP

Assuming these are all fields, you would have Number as your dimension and FirstSortedValue(Amount,-Date) as your measure.