Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

count function in kpi

Hi all,

Apologies for the noobness of the questions...but...I have loaded the following sample data. I'd like to use a KPI to show how many of the 5 lines of data are underperforming, on target and over performing

data:
load * Inline [
sample, actual, target
sample1,1,3
sample2,3,3
sample3,4,3
sample4,1,5
sample5,3,3

];

the expression I would use is along the lines of

count(actual<target)     for under performing

count(actual=target)     for on target

count(actual>target)     for over performing

what is the correct syntax for these queries please???

thanks,

Pokes

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

3 Replies
petter
Partner - Champion III
Partner - Champion III

2017-03-10 00_13_12-Qlik Sense Desktop.png

PaulVanSiclen
Employee
Employee

nice one Petter, so simple!

Anonymous
Not applicable
Author

Hi Petter,

Worked perfectly, many thanks.

Pokes