Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
pratham39
Contributor III
Contributor III

Set Analysis

In ID = 1A there are two DOA Values,

that's why count (where difference of DOE-DOA less than 0)  is coming 2 ,  

Actually there should be 1 because that is only 1 ID which is 1A but due to two different dates ,

count is coming 2,

In KPI also I want to achieve same result that count should be 1.

Anyone can help?

 

Thanks

q1.png

 

q2.png

 

q3.png

 

Labels (2)
3 Replies
BrunPierre
Partner - Master
Partner - Master

Perhaps as below

FirstSortedValue(Aggr(Count(ID),ID,DOE,DOA), -DOA)

pratham39
Contributor III
Contributor III
Author

Hi Sir,

First of all thanks for your response,

i want to display Count 1  when DOE - DOA <0 for ID = 1A, overall KPI Value should be 3 bcz there are 3 ID's

Please help

q4.png

 

Thanks 

BrunPierre
Partner - Master
Partner - Master

=Count(Aggr(FirstSortedValue(ID,-DOA),ID,DOA,DOE))