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: 
tastydew
Contributor
Contributor

Expression to filter on two conditions where duplicates contain different results

Hello everyone,

In my data, I have the following scenario:

Req #Status
1428Completed
1365Completed
1428Error
1428Completed
1365Error

 

 

In my analysis, I want to show a count of Req # where there are more than 2 and their Status count of "Completed" is more than 1.. I've attempted using nested If statements, but my results do not show what I am looking for.

 

If (If(Count([Req #])>1,Count([Req #]))>2 and Count(Status='Completed')>1,[Status])

 

So my results should be:

Req #Completed
14282

 

Is there a better way (or rather the correct way) to handle this?

Labels (2)
3 Replies
bharathadde
Creator II
Creator II

Please find the attachment, hope it will help you

tastydew
Contributor
Contributor
Author

Sorry, I dont have access to Qlik Desktop... Only Qlik Sense Hub
bharathadde
Creator II
Creator II

Create a pivot table using below

Dimension 1: Req

Dimension 2: =if(Status='Completed',Status)

Expression : =if(Count(Total <Req> Status = 'Completed')>2 and Status = 'Completed',Count({<Status={'Completed'}>}Total <Req> Status))