Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
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)))"}