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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
egbert_jones
Contributor II
Contributor II

Set Analysis parenthesis help

I have the following set analysis statement  which counts the no of players for Florida where 'myscore' is less than the variable vScore.

=NUM(COUNT({<MyScore={"<$(vScore)"},State={'Florida'}>}DISTINCT Player_ID),'#,##0')

What I want to do instead is replace 'myscore' with a field called 'TuesdayScore' which is set to 1 ie TuesdayScore={1}

Thanks

4 Replies
trdandamudi
Master II
Master II

Can you give a try on the below expression:

NUM(COUNT({<TuesdayScore={1},State={'Florida'}>}DISTINCT Player_ID),'#,##0')

egbert_jones
Contributor II
Contributor II
Author

This doesn't seem to take into consideration the 'vScore' variable

trdandamudi
Master II
Master II

I thought you want to replace MyScore with TuesdayScore. If you want to retain both then give a try with the below expression:

 

NUM(COUNT({<MyScore={"<$(vScore)"},TuesdayScore={1},State={'Florida'}>}DISTINCT Player_ID),'#,##0')

Brett_Bleess
Former Employee
Former Employee

Did the last reply get you what you needed?  If so, be sure to click the Accept as Solution button on that post to give them credit for the help.  If you are still struggling, provide an update with further information, but here are some links that may be somewhat helpful as well:

Help:

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

Design Blog:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

There are quite a few other posts on Set Analysis in the Design Blog area too, so if the one above is not helpful, try searching on the others to see if they help.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.