Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jelindbe
Partner - Contributor III
Partner - Contributor III

Year plus one

I need to display a measure for "2010" as "2011", "2011" as "2012"....etc.

I have tried this formula (with many variations):

Sum({<Year={$(={Year}+1)} >}my_measure)

but it returns with 0. I would greatly appreciate any assistance.

13 Replies
OmarBenSalem

To adapt to ur case Jon Erik:

use a chart, as dimension: Year

as a measure:

sum({<Year>}aggr(below(sum({<Year>}YourMeasure)) , (Year,(NUMERIC, ASCENDING))))

sunny_talwar

But this expression is only if you have Year as dimension... in case you have more dimensions in the chart, you need to add them to your Aggr() function and make sure to have them before the Year dimension.

OmarBenSalem

Yes sure !

jelindbe
Partner - Contributor III
Partner - Contributor III
Author

Thank you very much. It worked fine! Now I must study why it worked... 🙂