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

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

Multi fields in a pie chart

My data is like the following

HospitalNameGW bed TotalGWOccupied
John Hopk400300
FEMC1140

 

I want to create a pie chart (Occupied and Vacant) for hospitals

the calculating of vacant = GW bed Total - GWOccupied

1 Reply
javiersassen
Partner - Contributor III
Partner - Contributor III

You can use the function ValueList to create a synthetic dimension that contains the values Occupied and Vacant:

https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/Syntheti...

 

Then for each of the two values you can use a different formula;)