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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
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