Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis with alternate state

=count({< [Order type] = {'Indent'}, [Sales]={"=0"}*Season1  ,[Customer Name]={"=max(aggr(sum([Sales]),[Customer Name]))"} *Season1 >} distinct [Customer Name])

Hi, I have the above expression where i want to get the count of customers that haven't done sales, but based on the alternate state 'Season1'. Somehow this always gives 0 as the result although i have customers with 0 sales.

Can someone help please?

Thanks,

Ram

3 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Ram,

Try this

=count({< [Order type] = {'Indent'}, [Sales]={"=0"} , [Customer Name]=[Season1]::[Customer Name] >} distinct [Customer Name])

Regards,

Jagan.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Checkt this also, hope it helps you.

http://community.qlik.com/message/209604#209604

Regards,

Jagan.

er_mohit
Master II
Master II

try this way

=count({Season1 }{< [Order type] = {'Indent'}, [Sales]={"=0"} ,[Customer Name]={"=max(aggr(sum([Sales]),[Customer Name]))"} >} distinct [Customer Name])