Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

While selecting currentYear, I wanna show value also for previous year

How do I do that?

I tried

CurrentYearSum(currentYear)
Sum(previousYear)
xxx

for the Sum(previousYear) i tried this.

"SUM({<Year=Year-1>}amount)"  , however it still shows amount for 2015, and not for 2014

5 Replies
sasiparupudi1
Master III
Master III

try

SUM({<Year=max(Year)-1>} amount)

hth

Sasi

Not applicable
Author

Sum({$<Year={$(=Year(Today())-1)}>}amount)

Bryant

petter
Partner - Champion III
Partner - Champion III

Something like this should work for you. But remember not to use the year among the dimensions when you want different years in your expressions. If you do it will force the chart to show the expressions on not one line but multiple lines...

2015-10-26 #1.PNG

mjm
Employee
Employee

Hello Saw,

Can I refer you to a blog by hic.

Year-over-Year Comparisons

This will help you with performing year on year comparison.

If this helps, please mark this as helpful and correct.

Thanks,

Mark

Qlik

Not applicable
Author

ok. i will have a read on it first. In the mean time, i would attach the qvf file. for reference.