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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
madushanfernand
Contributor III
Contributor III

previous year counts when using cannonical dates

Hi All

could some one please tell how to get the sum of for the previous year sales, quantity etc if we have past records for last years as per the given popular example of using canonical date.

Capture.PNG

Thank you

Madushan

1 Reply
rubenmarin1

Hi Lahiru, you can add the year filter with last year to the set analysis of the DateType, ie.:

Sum({<DateType={Invoice}, Year={$(=Max(Year)-1)}>} Sales)