Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

yearly sales

hello everyone,

i come to know ,when i select on 2017 years it will shows last three years of data in three different pie chart like below.

How it will be possible?

for eg.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Chart1 Exp: = Sum({<year={'$(=Max(year))'}>}Sales)

Chart2 Exp: = Sum({<year={'$(=Max(year)-1)'}>}Sales)

Chart3 Exp: = Sum({<year={'$(=Max(year)-2)'}>}Sales)

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

Chart1 Exp: = Sum({<year={'$(=Max(year))'}>}Sales)

Chart2 Exp: = Sum({<year={'$(=Max(year)-1)'}>}Sales)

Chart3 Exp: = Sum({<year={'$(=Max(year)-2)'}>}Sales)

Anonymous
Not applicable
Author

Thanks, It works perfectly.