Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dhamilton
Contributor
Contributor

COUNTIFS Value appears more than once, and other value only appears once

I am trying to count items if an Account Number appears more than once, and if an Order Number only appears once, does anyone know how to create an expression like this? Thanks!

2 Replies
sagarjagga
Creator
Creator

Hi Dhamilton,

Below expression should work,

Count({<items={"=Count(distinct [Account Number])>1"} >* <items={"=Count(distinct [Order Number])=1"}>}items)

This will return the count of those items who have more than one account number and one order number. is this what you are looking?

Brett_Bleess
Former Employee
Former Employee

If the post helped you with your use case, do not forget to return to the thread and use the Accept as Solution button on that post to mark it as having worked.  This gives the poster credit for the help and lets other Members know what worked, please close the thread if possible, and if you are still working on things, leave us an update with what you still need.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.