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: 
BenODBS
Contributor
Contributor

Using filter selection within expression criteria

Afternoon,

I am trying to write an expression where when the user selects a dropdown list of values that consists of 1 to 100, the expression will calculate against it.

value table is;

case_id, value

1, 2, 3, 4, 5 etc

I set this as a filter called value

 

separate to that is the case table where I use the below expression.

count({$<[Field1]={'Completed'}, [Field2]={'A'},  [Duration]={"<=[value]"}>} [Case Ref])

 

I have tried variables with SET DUR = ([value])

and using expression  [Duration]={"<=$(DUR)"}

but I'm having no luck. 

 

Is it even possible to do?

 

thanks

 

1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

count({$<[Field1]={'Completed'}, [Field2]={'A'},  [Duration]={"<=$(=Max(value))"}>} [Case Ref])

View solution in original post

2 Replies
rwunderlich
MVP
MVP

count({$<[Field1]={'Completed'}, [Field2]={'A'},  [Duration]={"<=$(=Max(value))"}>} [Case Ref])

BenODBS
Contributor
Contributor
Author

Thank you so much!