Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Percentage By Dimension & Set Analysis


I am trying to show a percentage by dimension.  for all patient appointments.  This works using the following :

(

Count(patient_id)) / (Count(TOTAL <appointment_month> patient_id))

The issue I have is that I only want to include any records which have a AppointmentReason = 'Health'

How do I update the expression to include the set analysis also?

Regards

Phil

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Count({<AppointmentReason = {'Health'}>}patient_id) / Count({<AppointmentReason = {'Health'}>}TOTAL <appointment_month> patient_id)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Count({<AppointmentReason = {'Health'}>}patient_id) / Count({<AppointmentReason = {'Health'}>}TOTAL <appointment_month> patient_id)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hi try like this

If Condition

=Count(distinct If(AppointmentReason = 'Health',Patient_Id)) / Count(Total If(MonthName = appointment_month,Patient_Id))

Set Analysis:

Count({<AppointmentReason = {'Health'}>}patient_id) / Count({<AppointmentReason = {'Health'}>}TOTAL <appointment_month> patient_id)

Anonymous
Not applicable
Author

Worked a treat.  Thanks