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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
deerio
Contributor
Contributor

KPI activation based on filters

Hi to all, 

I have a KPI whose expression is an if condition that considers measures (not in the filters) greater than or equal to a given number. The expression returns Yes or No, as possible true or false.

In the KPI there is in the additional modules section, data management a function getSelectedCount([company])=1

In the filter pane I have 3 filters: company, month-year, and employee.

The KPI function is activated only when I select both a company, a month and an employee. If I select either one or two the field stays on the false condition, even though it should be on the true condition.

I need the kpi to give the exact condition even if two fields, company and month-year, are selected.

 

Thank you in advance.

Labels (4)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Change condition to

=if( getSelectedCount([company]) and getSelectedCount([employee]) and getSelectedCount([month]),1,0)

 

Display message,

=if( getSelectedCount([company]) and getSelectedCount([employee]) and getSelectedCount([month]),'','Please Select')

&', ' &if( getSelectedCount([company]),'','company')

&', '&if(getSelectedCount([employee]),'','employee')

&', '&if(getSelectedCount([month]),'','month')

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

Change condition to

=if( getSelectedCount([company]) and getSelectedCount([employee]) and getSelectedCount([month]),1,0)

 

Display message,

=if( getSelectedCount([company]) and getSelectedCount([employee]) and getSelectedCount([month]),'','Please Select')

&', ' &if( getSelectedCount([company]),'','company')

&', '&if(getSelectedCount([employee]),'','employee')

&', '&if(getSelectedCount([month]),'','month')

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.