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: 
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
Luminary Alumni
Luminary Alumni

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