Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
cm
Contributor II
Contributor II

KPI Filtering

Smart people,

Question about KPI filtering...

KPI data is the following:

Count({<[Incident Type]={"Personnel"} [Incident Number])

Unfiltered, the KPI is returning the correct number.

When I filter on a field different from, and exclusive of, [Incident Type]... the KPI above is still returning a number >0. It should be returning zero.

Essentially I want the KPI to show ONLY count({<[Incident Type]={"Personnel"} [Incident Number]), and to return a zero when I'm filtering on anything but [Incident Type].

Any advice?

 

2 Replies
sunny_talwar


@cm wrote:

Essentially I want the KPI to show ONLY count({<[Incident Type]={"Personnel"} [Incident Number]), and to return a zero when I'm filtering on anything but [Incident Type].


Do you mean that if you select something other than Personnel within Incident Type, you want to see 0? Try this

Count({<[Incident Type] *= {"Personnel"}>} [Incident Number])
Channa
Specialist III
Specialist III

=if([Incident Type]='Personal',count(Incidentnumber),0)

Channa