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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Sree_1
Contributor III
Contributor III

Count based on multiple conditions

Hi Everyone,

My problem statement is like, Now my data set consists of columns like 'Task' and 'Task Life cycle' and the life cycle column consists various values like 1-planning, 2-designing, 3-development, 4-deployment, 5-maintenance, 6-decomission. So, now I have display a KPI that displays tasks from 1-planning to 4-deployment as active tasks and 5-maintenance and 6-decomission inactive tasks. Can anyone give the set analysis expressions to display the data in KPIs.

Thanks in advance!!

Labels (3)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Num(Count({<[Task Life cycle]={'planning','designing','development','deployment'}>}DISTINCT Tasks)'###########,###') //active tasks

Num(Count({<[Task Life cycle]={'maintenance','decomission'}>}DISTINCT Tasks)'###########,###') //inactive tasks

?

For more information regarding set analysis, please refer here: Set analysis 

View solution in original post

2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Num(Count({<[Task Life cycle]={'planning','designing','development','deployment'}>}DISTINCT Tasks)'###########,###') //active tasks

Num(Count({<[Task Life cycle]={'maintenance','decomission'}>}DISTINCT Tasks)'###########,###') //inactive tasks

?

For more information regarding set analysis, please refer here: Set analysis 

vinieme12
Champion III
Champion III

Refer this blog to learn more about set analysis

 

https://www.analyticsvidhya.com/blog/2014/01/set-analysis-qlikview/

 

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