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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with expression

Hi,

Could you help me with an expression:

Count(Min(aggr(Sum(N_Month), MYear, Client))>Variable2 and (count(total<Client> distinct MYear)=count(total distinct MYear)) DISTINCT Client)

I want to calculate count of my clients.

Thanks,

2 Replies
Anonymous
Not applicable
Author

That's my original expression in Dimension

=aggr(if(Min(aggr(Sum(N_Month), MYear, Client))>Variable2 and (count(total<Client> distinct MYear)=count(total distinct MYear)), Client, null()), Client)

I want to keep conditional and count Clients in expression.

Regards,

whiteline
Master II
Master II

Have you tried the same approach as with avg() in http://community.qlik.com/message/261380#261380 ?

Count({$<Client={"=Min(aggr(Sum(N_Month), MYear, Client))>$(Variable2) and (count(total<Client> distinct MYear)=count(total distinct MYear))"}>} DISTINCT Client)