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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

help with list box conditional expression

I'm trying to create a list-box that will select any clients that we've assisted vs. clients that we haven't, based on the number of contacts we've made with them. Here is what I've tried, to no avail:

=if(sum(aggr(count(distinct Contacts), ClientId)) >0, 'Assisted', 'Not Assisted')

I'm not getting anything displayed in the list-box with this expression. Any thoughts?

Labels (1)
1 Reply
tresB
Champion III
Champion III

May be like this?

=Aggr(if(sum(aggr(count(distinct Contacts), ClientId)) >0, 'Assisted', 'Not Assisted') , ClientId)


Though, I have a doubt if the sum() is at all needed here.


OR, possibly you can simply try:


Aggr( If(Count( DISTINCT Contacts)>0, 'Assisted' , 'Not Assisted'), ClientId )