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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

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
MVP
MVP

May be use this expression:

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

Not applicable
Author

Its not working Sunny

jagan
Partner - Champion III
Partner - Champion III

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