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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate

Hello,

I have a chart that has the dimension YYYY-MM and one of the columns is Avg.

In the last column would I like to show Avg the same month last yearbut I cannot

get it working. What have

I done wrong?

AvgLY.png

Here is the calcultaion I try.

AvgLY_Calc.png

kindly

Håkan

4 Replies
sunny_talwar

May be you need to use The As-Of Table

ganeshsvm
Creator II
Creator II

Try like this in Set for PeriodID,

PeriodID = {"$(=Max(PeriodID)-11)"}

Anonymous
Not applicable
Author

sum( {<periodid={"$(=AddYears(Month(PeriodID),-1))"}>} $(vnettofors)/$(vnettoant) )

Not applicable
Author

I found a link to Above() in your suggestion and this solved it.

The Above Function