Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
jcazzato
Contributor
Contributor

Using the Count function to count how many times a answer occurs

Hi everyone,

We're having some trouble with using the count function

Basically we want to count evertime the North or South pump is running in location Roughing Mill - Stand 1. 

The most difficult part of this is other 'Locations' may have the same 'VALUE_FINAL' answer. i.e. NORTH or SOUTH

 

 ChecklistLocationQuestionVALUE_FINALANSWER_COMMENTRole
27/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?NORTH-Mechanical Craft
26/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?SOUTH-Mechanical Craft
25/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?SOUTH-Mechanical Craft
24/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?NORTH-Mechanical Craft
16/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?SOUTH-Mechanical Craft
15/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?SOUTH-Mechanical Craft
12/04/2019Days Lube InspectionsRoughing Mill - Stand 1HNORTH or SOUTH pump in use ?SOUTH-Mechanical Craft

 

Any help will be greatly appretiated 

Thank you,

Jo

1 Reply
JordyWegman
Partner - Master
Partner - Master

Hi Jcazzato,

Create two KPI objects with these measures, one for each:

// First one is for south
Count({$< Location = {'Roughing Mill - Stand 1H'}, VALUE_FINAL = {'SOUTH'}>}Location)

//Second one is for north
Count({$< Location = {'Roughing Mill - Stand 1H'}, VALUE_FINAL = {'NORTH'}>}Location)

Jordy

Climber

Work smarter, not harder