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: 
Anonymous
Not applicable

latest date

Good day!

How i can get latest date with added condition?

For this table i must get latest date, where the quantity > 2 (09.11.2013)

dateQuantity
12.11.20132
09.11.20133
08.11.20134
07.10.20136
06.10.20138

Thank you!

13 Replies
Anonymous
Not applicable
Author

but my task is to get max date, where quantity > 2  !!!!!!!!!!!!!!!!

(09.11.2013)

lironbaram
Partner - Master III
Partner - Master III

hi

so you can use max({<quantity={">2"}>}Date)

or

max(aggr(if(sum(quantity)>2,Date),Date))

vardhancse
Specialist III
Specialist III

({$<Account>'2'>}'vMaxDate')

it will display max date for account>2

Anonymous
Not applicable
Author

Hi

try this

Date(Max({<Quantity = {">2"}>} date),'DD/MM/YYYY')

you will get the O/P as 09/11/2013