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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
grgabj
Contributor II
Contributor II

Variable Definition

I have a calendar which when i choose a riskcarrier it gives me the max date, this is the function:

=date(max([LASTREFRESH_DATE]))

but when i select a specific date in the calendar the variable definition gives me numbers : 44628 

why? 

i want to be able to select a specific date , but when i re select a specific filter i want it to give me my variable ( max date ) , it just goes away and it gives nothing , it gives the selected date in the calendar that i chose. Please help

Labels (3)
3 Replies
Or
MVP
MVP

Max(Field) will give the max value of the field for the current selections. If you'd like the overall max value ignoring selections, use Max({1} Field) or Max(ALL Field)

grgabj
Contributor II
Contributor II
Author

That's not it , I need to be able to get the max bi filter , but once i select a date from the calendar , the date is saved as the calendar date and the variable is gone , so once i repick a filter , the date doesnt give the max anymore ! 

SchalkF
Contributor III
Contributor III

Hello,

Try this:

=date(max([LASTREFRESH_DATE]), 'dd/mm/yyyy')