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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous year figures

I have a problem with my expression to populate purchases amount for the previous year, sum({$<Year={$(=Only(Year)-1)}>}LineTotal)  . The one to get current year figures sum({$<Year={$(=Only(Year))}>}LineTotal) is working perfectly fine.Can someone assist me in fixing this.

Labels (1)
3 Replies
vijay_iitkgp
Partner - Specialist
Partner - Specialist

I have checked your expression and it is working fine for me.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try with this expression

sum({$<Year={'=$(=(Max(Year)-1))'}>}LineTotal)

Regards,

jagan.

Not applicable
Author

Thanks, let me try it