Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
lmcsedyz
Partner - Contributor III
Partner - Contributor III

invalid Dimension? - if count distict is more then 3

Hi, I have datasource with messages from people to clients, people (candidate) belong to client.

Every candidate has date/time of his reply.

I wish to see if client has enough of candidates. I can save this dimension, but it does not work - ERROR message Invalid dimension

IF((Count (distinct EMAIL)) > 3, '4 and more', if((Count (distinct EMAIL)) < 4,'3 and less'))

If I create new datasource with calculated Count (distinct EMAIL) it works


IF(LIFETIME_emails > 3, '4 and more', if(LIFETIME_emails < 4,'3 and less'))


but with this i cannot work with date dimension or atributes of messages...


Please help



1 Solution

Accepted Solutions
sunny_talwar

You need Aggr() function when using Count, Sum type of functions in your dimension.

Try like this:

Aggr(If(Count(DISTINCT EMAIL) > 3, '4 and more', '3 and less'), Client)

View solution in original post

3 Replies
sunny_talwar

You need Aggr() function when using Count, Sum type of functions in your dimension.

Try like this:

Aggr(If(Count(DISTINCT EMAIL) > 3, '4 and more', '3 and less'), Client)

Anonymous
Not applicable

i agree with Sunny if that does not solve the problem please share us your sample QVF file.

lmcsedyz
Partner - Contributor III
Partner - Contributor III
Author

Thank you very much, Sunny T