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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register 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

3 Replies
Anil_Babu_Samineni

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

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