Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Count for specific values

I have the following table

department       Overall Satisfaction

---------------       ------------------------------

Inpatient            Extremely Satisfied

Inpatient            Satisfied

Outpatient         dissatisfied

Inpatient           dissatisfied

Outpatient         Satisfied

I want to get the following formula ( Extremely satisfied + Satisfied) of inpatient / Count( department = 'Inpatient)   

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Count for specific values

Try:

count({<[Overall Satisfaction']={'Extremely Satisfied','Satisfied'},department={'Inpatient'}>} department) / count({<department={'Inpatient'}>}department)

or maybe you want to count Satisfied or Extremely Satisfied for both departments and then divide by the count of department Inpatient:

count({<[Overall Satisfaction']={'Extremely Satisfied','Satisfied'>} department) / count({<department={'Inpatient'}>}department)


talk is cheap, supply exceeds demand
2 Replies
MVP & Luminary
MVP & Luminary

Re: Count for specific values

Try:

count({<[Overall Satisfaction']={'Extremely Satisfied','Satisfied'},department={'Inpatient'}>} department) / count({<department={'Inpatient'}>}department)

or maybe you want to count Satisfied or Extremely Satisfied for both departments and then divide by the count of department Inpatient:

count({<[Overall Satisfaction']={'Extremely Satisfied','Satisfied'>} department) / count({<department={'Inpatient'}>}department)


talk is cheap, supply exceeds demand
Not applicable

Re: Count for specific values

Thanks dude your a life saver

Community Browser