Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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