Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
yanivbm88
Creator
Creator

Count amount of duplications/COUNTIFS for column

Hello All,

I am trying to find amount of duplications within a database, based on certain columns.

Below is a sample of the data I have:

  • ID, VednorCode, ItemName is the raw data.
  • Duplications is what I am trying to get (In Yellow)

  

IDVendorCodeItemNameDuplications
1H9004280062513
2H9004280062513
3H9004280062513
4H90042800PD-6251-3002
5H90042800PD-6251-3002
6H90042800PD-6252-3001
7H03000773PD-6252-3001
8H03000773PD-6011-3003
9H03000773PD-6011-3003
10H03000773PD-6011-300

3

Duplications should show the total amount of times each combination of VednorCode and ItemName appears.


Duplications amount in each line refers to VendorCode and ItemName in the same line.


Basically, it is the same as if I would use COUNTIFS(B:B,$B2,C:C,$C2) in excel.


Any ideas?

1 Solution

Accepted Solutions
sunny_talwar

May be like this

Count(TOTAL <VendorCode, ItemName> ID)

View solution in original post

6 Replies
Anil_Babu_Samineni

Why 1, 1 for Item code of PD-6252-300 ?? I am assuming, It would be 2, 2

Count(TOTAL <ItemName> ItemName)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be like this

Count(TOTAL <VendorCode, ItemName> ID)

yanivbm88
Creator
Creator
Author

Hi Anil,

It is 1,1 because the VendorCode is different.

I want to count the amount of times each unique combination VednorCode and ItemName  appears.

sunny_talwar

Sample attached

Capture.PNG

Anil_Babu_Samineni

After that, I came to know

Count(TOTAL <VendorCode,ItemName> ItemName)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
yanivbm88
Creator
Creator
Author

Many thanks Sunny and Anil