Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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