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: 
pascos88
Creator II
Creator II

Set Expression

Hi Experts,

I need to use a set expression in an if condition.. something like this:

if( isnum(ValueChecked)<>0, count (distinct {<DP = {'OHS /Employees'},CompanyName>} CompanyName)  )

If the condition in true I have to count the distinct company name with this set analysis..

Any Suggestions?

Thanks

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

did you try

count (distinct {<ValueChecked -= {0}, DP = {'OHS /Employees'},CompanyName>} CompanyName)

mikecrengland
Creator III
Creator III

and maybe remove the extra 'CompanyName':

count (distinct {<ValueChecked -= {0}, DP = {'OHS /Employees'},CompanyName>} CompanyName)


like:


count (distinct {<ValueChecked -= {0}, DP = {'OHS /Employees'}>} CompanyName)

dplr-rn
Partner - Master III
Partner - Master III

true. missed that