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

Count only once (without duplicates)

I have a set of qvds for various years like below:

    

Defect IDCreatedModifiedNumber of Defects
xxxxx11.1.20151.2.2015
xxxxx210.1.201512.1.20153
xxxxx529.1.20153.5.2015
xxxx184.4.20154.4.20151
xxx105 count this28.12.20158.1.20161
xxx105  don’t Count this28.12.20158.1.2016
xxx20313.1.201616.1.20161

Here, Some of the defects may be entered more than once in the table(See Defect ID) because they may be created in 2015 and still open or modified/closed in 2016. Number of defects have to be taken for counting according to the “Created” date.

For example  if issue was created in the earlier year(e,g.2015), then you can skip it in this year’s data(2016).

My dashboard table looks like below.

noofdefects.JPG

How do i re-write the expression to show the count of defects in the above table for each Year month without counting the same defect code in more than once ?

20 Replies
Not applicable
Author

Here it is . . (with your latest expression)