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

Last 3 Years

Hi Experts,

I want to calculate last 3 years Sales in Pivot table. Please help me how to achieve this

Thanks in Advance

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

Sum({<Year = {">=$(=Max(Year) - 2)<=$(=Max(Year))"} Sales)


Check this link for more options


Set Analysis for certain Point in Time


Regards,

Jagan.

View solution in original post

7 Replies
sunny_talwar

May be use this expression:

Sum({<Year = {"$(='>=' & Max(Year) - 2)"} Sales)

Not applicable
Author

Its not working Sunny

jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

Sum({<Year = {">=$(=Max(Year) - 2)<=$(=Max(Year))"} Sales)


Check this link for more options


Set Analysis for certain Point in Time


Regards,

Jagan.

Anonymous
Not applicable
Author

hi,

Sum({<Year = {">=$(=Year(Today() - 2))"}>}Sales)

or

Sum({<Year = {">=$(=Max(Year) - 2)<=$(=Max(Year))"}>}Sales)

Regards

Neetha

Anonymous
Not applicable
Author

Hi Abhi,

Please try like this:

Sum({<Year = {">=$(=Max(Year) - 2)<=$(=Max(Year))"}>} Sales)

Hope it helps!!

Not applicable
Author

Thank You Jagan

Not applicable
Author

Thank You Neetha