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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sum a backward

Problen with sum

In the first column I would like to have sum with sum date 2017-05-01and in the other column sum date 2016-05-01

ex

how big was sales, last year at a specific date

//Janne

Labels (1)
3 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

Sum({<DateField = {'$(=AddYears(Max(DateField),-1))'}>} Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

What is your chart dimension here?

Anonymous
Not applicable
Author

I have tried that variant but it will only be 0

//=Sum({<Date = {'$(=AddYears(Max(Date),-1))'}>} sales)

21767454,82->2016-05-01

3201530,09 ->2017-05-01