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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Identifier not Working

Can anyone tell me why this expression is not selecting all records (ignoring the current selections)?

=(Sum({1<[B YearPeriod] = {"<=$(=Max([B YearPeriod]))"} >}[B Actual Amount]))

/(Sum({1<[B YearPeriod] = {"<=$(=Max([B YearPeriod]))"} >}[Budget Amount]))

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

You probably need to add the set identifier also to the max functions:

=(Sum({1<[B YearPeriod] = {"<=$(=Max({1}[B YearPeriod]))"} >}[B Actual Amount]))

/(Sum({1<[B YearPeriod] = {"<=$(=Max({1}[B YearPeriod]))"} >}[Budget Amount]))

View solution in original post

1 Reply
swuehl
Champion III
Champion III

You probably need to add the set identifier also to the max functions:

=(Sum({1<[B YearPeriod] = {"<=$(=Max({1}[B YearPeriod]))"} >}[B Actual Amount]))

/(Sum({1<[B YearPeriod] = {"<=$(=Max({1}[B YearPeriod]))"} >}[Budget Amount]))