Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
wbatarfi
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

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;)