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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
rvijayanth
Creator
Creator

Need help with counts in straight table

Sample data:

Patient IDCityState
101ABCState 1
101XYZState 2
103XYZState 2
103BCDState 1
104BCDState 1
105BCDState 1
106ABCState 1
107XYZState 2
108ABCState 1
109ABCState 1
110ABCState 1
108ABCState 1
106ABCState 1
105XYZState 2
103XYZState 2
101ABCState 1
109ABCState 1
106XYZState 2
102ABCState 1
105BCDState 1

 

Above shown data is patient ID for three cities:

Cities ABC and BCD belonging to State 1 and city XYZ belonging to State 2. 

ABC city has 10, BCD has 4 and XYZ has 6 patients.

So State 1 has a total of 14 patients and State 2 has total of 6 patients. 

I want ONE straight table like shown below for comparison:

CityTotal Patients in CityStateTotal patients in State corresponding to cityTotal patients in other cities of State
ABC10State 1144
BCD4State 11410
XYZ6State 260

 

I need help with "Total patients in State corresponding to each city" and "Total patients in other cities of State"

Labels (3)
12 Replies
Anil_Babu_Samineni

I agree with you !! 

But, Requester must like the option which we gave and That's where community got updated using that facility to put many answers together from Lithium portal 🙂 Happy now ..!

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
OmarBenSalem

I always give right answers but requesters rarely like anything. Not everyone is aware of such an option maybe?
Anyway, thank u for ur contribution 🙂
rvijayanth
Creator
Creator
Author

Thanks for your reply. It helped me  a lot.