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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis for KPI

Greetings Community,

I am attempting to create a KPI to show me the people that have fully completed there training model.

based on what I have:

Count({<transcript_status_code = {'A'},training_model_date -= null>}aggr(count(transcript_status_code),employee_id,course_code))

/

Count({< training_model_date -= null, course_code -= null>}aggr(count(Employee),Employee,training_model_date,course_code))

I need the KPI to count the Employees that have a 1 in the measure column within the Image I have posted.

any ideas are appreciated!

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this

Count(DISTINCT {<Employee = {"=Count({<transcript_status_code = {'A'},training_model_date -= null>} Aggr(Count(transcript_status_code),employee_id,course_code)) / Count({< training_model_date -= null, course_code -= null>} Aggr(count(Employee),Employee,training_model_date,course_code)) = 1"}>} Employee)

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

May be try this

Count(DISTINCT {<Employee = {"=Count({<transcript_status_code = {'A'},training_model_date -= null>} Aggr(Count(transcript_status_code),employee_id,course_code)) / Count({< training_model_date -= null, course_code -= null>} Aggr(count(Employee),Employee,training_model_date,course_code)) = 1"}>} Employee)

Anonymous
Not applicable
Author

This is close!

I did another measure next to it:

if(Count({<transcript_status_code = {'A'},training_model_date -= null>}aggr(count(transcript_status_code),employee_id,course_code))

/

Count({< training_model_date -= null, course_code -= null>}aggr(count(Employee),Employee,training_model_date,course_code))>= 1,1,0)

and changed the "totals column" to SUM and it retrieved 17 (which is the number im looking for)

Anonymous
Not applicable
Author

Count(DISTINCT {<Employee = {"=(Count({<transcript_status_code = {'A'},training_model_date -= null>} Aggr(Count(transcript_status_code),employee_id,course_code)) / Count({< training_model_date -= null, course_code -= null>} Aggr(count(Employee),Employee,training_model_date,course_code)))=1"}>} Employee)

I added the changes in red and got my answer!

sunny_talwar
MVP
MVP

Yes you are right... I was getting out of work so typed that response in a rush .

Modifying my response for future visitors.