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: 
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.