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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation using date

Hi Team,

I need to calculate sum of quantity for Maximum date -7.

For more reference you can use the two attachment.

Please guide.

Thanks in advance

Priyanka Pandey

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

Try to use SET analysis expression

Sum({<ShipDate = {'$(=Date(Max(ShipDate)-7))'}>}  Quantity)

Also check the attached solution

Regards,

Anand

View solution in original post

4 Replies
buzzy996
Master II
Master II

means "for Maximum date -7"?pls.

its_anandrjs
Champion III
Champion III

Hi,

Try to use SET analysis expression

Sum({<ShipDate = {'$(=Date(Max(ShipDate)-7))'}>}  Quantity)

Also check the attached solution

Regards,

Anand

Not applicable
Author

yes, I need to calculate

=Sum({<ShipDate={$(#MaxDate)}>}Quantity)

Where MaxDate  =Date(Max(ShipDate)-7) but its throwing an error.

Not applicable
Author

Thanks Anand.

It was a great help from you

Regards

Priyanka Pandey