Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

trouble with building a setanalysis

Hello,
I'm having some trouble with building a setanalysis in qlikview
I want to compare two dates in sales with the min and max.
This is the syntax i'm using now:
max
sum
( {<date = {$(=max([date])-1) }>} sales)
min
sum
( {<date = {$(=min([date])-1) }>} sales)
But as a result i get € 0,-
What am i doing wrong?
15 Replies
Miguel_Angel_Baeyens

Hi,

Check your amended file attached to my example below. Using single quotes (because dates are in a text format, not in numeric format) but based on your Max() -1 and Min() works.

Hope that helps.

Miguel

nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi please find the Attachment.

Not applicable
Author

Hello Nilesh,

Thank you for your help, yes this one did the trick.

Regards,

Rene Santifort

Drogisterij.net, veilig en vertrouwd

Voor 21:00 uur besteld, morgen in huis

nilesh_gangurde
Partner - Specialist
Partner - Specialist

heyy Renes

If you got the answer please mark the question as answered...

Regards,

Nilesh Gangurde

Not applicable
Author

Done.

Met vriendelijke groet,

Rene Santifort

Drogisterij.net, veilig en vertrouwd

Voor 21:00 uur besteld, morgen in huis

nilesh_gangurde
Partner - Specialist
Partner - Specialist

Thanxxxx

Regards,

Nilesh Gangurde