Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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)