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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Champion III
Partner - Champion III

Hi Ram,

Try this

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

Regards,

Jagan.

jagan
Partner - Champion III
Partner - Champion III

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])