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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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.

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

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
tresB
Champion III
Champion III

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.