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 analysis with <= operator

Hello @ all,

I have a set analysis expression that counts field values based on the selection of a week (in field 'week') and all weeks before.

Strange thing it works with a variable, but not with the field in the set analysis:

=count( {$<week= {"<= $(=Selected_Week) "} >} NR)   --> this works, field value of 'week' is represented by variable 'Selected_Week'

=count( {$<week={"<=week"}>} NR)  --> this returns always 0

Any ideas how to get it to work with the field value instead of the variable value?

Thanks, Eva

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

=count( {$<week={"<=$(=Max(week))"}>} NR)

Hope this helps you.

Regards,

Jagan.

View solution in original post

3 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

=count( {$<week={"<=$(=Max(week))"}>} NR)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi Jagan,

this works!

Thank you,

Eva

<p

jagan
Partner - Champion III
Partner - Champion III

Hi,

Close this discussion by clicking Correct Answer button, it helps others to find the answer for similar issues.

Regards,

jagan.