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

Set Analysis for two dates selected

Hi All,

I am trying to calculate the difference between order counts and order values for two dates selected.

Please find attached the data and output files.

Thanks in advance

2 Replies
Not applicable
Author

Please help I have been struck for a while

Anonymous
Not applicable
Author

If I understand your requirements correctly, and assuming that both dates are from the same field [Order Date], this will help (maybe you need some variations of this):

sum({<[Order Date]={"$(=date(max([Order Date])))"}>} [Order Value]) - sum({<[Order Date]={"$(=date(min([Order Date])))"}>} [Order Value])

Regards,

Michael