Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need Help For Sum Function

Hi All,

When I make multiple selections on the data model, I want the biggest year's data to be processed. Code structure;

(((Sum({$<Year={"=$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}> } In_Qty)) -

(Sum({$<Year={"=$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}>} Out_Qty))))

When I choose all years sum data for all years but i want the only biggest year in my selection.

Please help me.

1 Reply
shiveshsingh
Master
Master

Try removing '=' sign before $ in Year set analysis.

{$<Year={"$(=(Max(Year)))"}