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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
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
Partner - Champion II
Partner - Champion II

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
Partner - Champion II
Partner - Champion II

Yes sure !

jelindbe
Partner - Contributor III
Partner - Contributor III
Author

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