Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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