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

Timestamp, Max() and set analysis

Hi, in my script I define a variable as Max(Num(DATEFIELD)). And in a chart I use set analysis to show the values belonging to this max date. Now as long as I use a datefield without time-part (floor(DATEFIELD) this works fine. Now I need to use a full date+time DATEFIELD and somehow my set analysis doesn't match this date (and time) anymore. Although the variable gives me the correct max value to match with in the set analysis (40746,4937...)? Regards, Sander

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi Sander,

try your expressions using quotes around the variable, like

Sum({$<DATE={'$(vMaxiDateFull)'}>} ITEMA)

See also attached.

Stefan

View solution in original post

4 Replies
swuehl
MVP
MVP

Hi Sander,

I remember I had a similar problem just recently, but don't know how I handled it right now, need to look up tomorrow.

Would it be possible for you to post a sample application here?

Regards,

Stefan

Anonymous
Not applicable
Author

Hi Stefan, sure. Here it is. Can't get it to work. The variable shows no value... Regards, Sander

swuehl
MVP
MVP

Hi Sander,

try your expressions using quotes around the variable, like

Sum({$<DATE={'$(vMaxiDateFull)'}>} ITEMA)

See also attached.

Stefan

Anonymous
Not applicable
Author

Hi Stefan, life can be so easy. Thanks!

PS:

Also tried to leave out the equal sign in the SET command in the script. Then the variable uses the formula but then I can't find a working syntax for the set analysis/dollar sign expansion. Not that I need it now (since adding the quotes has done the trick) but as a general question in this case. Regards, Sander