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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Making Pie chart for current and last year

Hello Friends,

I have to put a pie chart for current year and last year, in the dimention I have used the Mode of Transport and the meassure is weight.

Could you please help on this...

Regards

Chriss

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Sum({$<Year={$(=Year(Today()))}>} Weight)

and

Sum({$<Year={$(=Year(Today())-1)}>} Weight)

Assuming that the expression is normally Sum(Weight)

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Sum({$<Year={$(=Year(Today()))}>} Weight)

and

Sum({$<Year={$(=Year(Today())-1)}>} Weight)

Assuming that the expression is normally Sum(Weight)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Sum({<Year={'>=$(=(Max(Year) - 1))<=$(=Max(Year))'}>} Weight)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thanks a lot both Johannes and Jean Mohan.. it works fine.

Regards

Chriss