Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Nemo1
Creator II
Creator II

Help with KPI that counts duplicates

Hello everyone,

I have the following problem. 

I have a table that looks like this:

Store City Vendor
A NYC JA
A KANSAS JA
A CHEYENNE JA
A LONDON JA
A ROME JA
B NYC NEIN
B LIMA NEIN
B TOKIO NEIN

 

and i need a kpi that counts how many stores have vendors. 

I am getting 5 for those with vendor and 3 for those with no vendors.. when i should be getting 1 and 1...

 

how would u code that?

 

thanks!!

 

 

 
 
3 Replies
Clement15
Creator
Creator

Hello, this should work

Clement15_0-1710410852894.png

 

qv_testing
Specialist II
Specialist II

@Clement15 , he has provided that would work for sample data - let say if you have many of them store's 

I feel this solution not correct.

what exactly are you looking for ?

Dataintellinalytics

How 3 for Non Vendors does NEIN mean No vendor ?

Please share correct mock data for both with and without vendor scenario for few more stores.