Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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