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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
busralisan
Contributor
Contributor

Count multiple condition

Hello,

I need mutliple condition in count function like this:

count({<[QueueItemStatus]={'3'} or [ProcessingExceptionType]=1,Group=P(QueueCreationDate)>} [QueueItemId])

But this "or" is not correct? How can I use or in count dunction?

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

as below

 

count({<

QueueItemId  =p({< [QueueItemStatus]={3} >+<[ProcessingExceptionType]={1}>} QueueItemId)

,otherCondition1

,otherCondition2

>} [QueueItemId])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
AronC
Partner - Creator II
Partner - Creator II

Try

count({(<[QueueItemStatus]={'3'} >+<[ProcessingExceptionType]=1>)*<Group=P(QueueCreationDate)>} [QueueItemId])

It doesn't say from you expression in what order you would like to perform your operations. Just change the parenthesis to whatever suit your needs. In this expression there is first a union (to replace your "or-statement" between status and type and then everything is in an intersection with date. 

vinieme12
Champion III
Champion III

as below

 

count({<

QueueItemId  =p({< [QueueItemStatus]={3} >+<[ProcessingExceptionType]={1}>} QueueItemId)

,otherCondition1

,otherCondition2

>} [QueueItemId])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
busralisan
Contributor
Contributor
Author

Thank you so much!