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: 
maternmi
Creator II
Creator II

Get value of max date

Hello everybody,

I would like to get the Reason for change no. of the last (change) date. Below you can see the table

RfCNo.JPG.jpg

I've tried

= num(max({<Day>} Reason for change no.))

But it doesn't works

Can somebody help me?

Thank you in advance!

Best regards,

Michael

1 Solution

Accepted Solutions
Not applicable

in expression try this

FirstSortedValue([Reason for change no],-Day)

View solution in original post

3 Replies
Not applicable

in expression try this

FirstSortedValue([Reason for change no],-Day)

Not applicable

try this

if(num(Day)=max(num(Day)),[Reason for change no.])

saumyashah90
Specialist
Specialist

This will get you max date value->

FirstSortedValue([ReasonForChange],-Day)

and This will get you min date value

FirstSortedValue([ReasonForChange],Day)