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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Lau256
Contributor
Contributor

Sum of unique values

Hi,

I am new to Qliksense- as you can probably tell by my question!

I have a field called Clinic slots available and am wanting to do a sum of these only where the fields Appointment date and clinic code are unique.

Any help would really be appreciated.

Many thanks 🙂

3 Replies
PrashantSangle

post sample data with required result

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Lau256
Contributor
Contributor
Author

Clinic CodeAppointment DateWeek CommencingMonthForward / Historic LookClinic Slots AvailableBooking Units Free.Clinic Slots BookedAttendance CountDNAsOTD Patient CancellationsPatient cancellation prior to Appt dateTotal patient CancellationsHospital Cencellation countOTD Hospital CancellationsHospital Cencellation count under 6 weeksAttendances + DNAs (Past) / Appointments Booked (future)BSU Target Income (Slots Available * Tariff * 95%)Financial Opportunity if booked at 95%Vacant slots?OTD Patient canxellations + ActivityValue of slots OTD pt canxFirst Attendance IndicatorVirtual Appt countTelephone Appt countWebcam appt countTelephone Attendance countWebcam Attendance count Virtual Attendance countFace to Face apppointment countFace to Face Attendance count
APB1AF15/06/202015/06/202030/06/2020Historic Look1401432 1110 105£0.00-£123Clinic Fully Booked3351.9236534Follow up attendance face to face      163
APB1AF15/06/202015/06/202030/06/2020Historic Look1401481      9£0.00-£123Clinic Fully Booked8175.9618267

Follow up telephone or telemedicine consultation

 9 8    
Lau256
Contributor
Contributor
Author

As you can see from the above, there are two entries for the Clinic on that particular day due to the first attendance indicator- however, the Clinic slots available should only be counted once- at 14 not 28