Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
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
Support (Former)
Support (Former)

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.