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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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