Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
foxwhite
Contributor II
Contributor II

KPI counting with conditionnal

Hi everyone,

I started to learn and to work with Qlik sense but i have an issue to calculate a KPI  including a condition.

So I have this table :

Start taskMiddle taskEnd taskId_task
01/10/201929/10/201922/11/2019125A
08/10/201912/11/201921/11/2019125B
07/10/201922/09/201926/09/2019124A
18/08/201926/09/201930/09/2019127X
17/06/201901/08/201907/08/2019130E
11/01/201906/01/201907/01/2019140B
12/10/201927/10/201904/11/2019120V
05/07/201810/08/201817/08/2018140C
01/06/201926/06/201926/06/2019180R
18/08/201911/09/201917/09/2019150T
01/11/201922/10/201928/10/2019140C
01/12/201919/12/201920/12/2019160Z
01/05/201909/06/201916/06/2019140Z

 

The first column is the date of the started tasks, the second is the date when the task is half completed. The third column is the date of the ending, and finally I have the id's tasks.

So I would like to create different KPI and includind a conditional.

For example I want to calculate the number of half completed tasks witch the duration is less than 30 days.

I tried to use the Aggr function, but I don't know how it's work.

Thank you for you helping.

 

Ps : I am also lookking for tutorial for beginners with explication step by step, if you know where i can find this, i will be very happy to learn about Qlik sense.

1 Solution

Accepted Solutions
sunny_talwar

May be this

Count(DISTINCT {<Id_task = {"=[Middle task] - [Start task] < 30"}>} Id_task)

View solution in original post

1 Reply
sunny_talwar

May be this

Count(DISTINCT {<Id_task = {"=[Middle task] - [Start task] < 30"}>} Id_task)