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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sbeaty
Contributor II
Contributor II

Comparing two fields - counting condition

Hello there. In need of some help here, pretty new to Qlik and would appreciate any help! Thank you in advance 😊

I am trying to figure out how I can compare these two fields to calculate where we are lacking servicers in each zip code.

For example,

Field A: Has a count of all claims by zip code

Field B: Has a count of all servicers by zip code

I want to get a count of when there's a claim in a zip code where we don't have a servicer in that zip code to repair. 

What would that expression be?

Labels (2)
1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

How about this...

Count (distinct {<[Field A] = {">0"} , [Field B] = {"=0"} >} [zip code])

View solution in original post

1 Reply
stevejoyce
Specialist II
Specialist II

How about this...

Count (distinct {<[Field A] = {">0"} , [Field B] = {"=0"} >} [zip code])