1- count of total houses = 5 2- count of houses with TV = 3
% Houses with TV: 100/[totalhousesswithTV].[countofhouseid]*[totalhouses].[countofhouseid]
% Houses with TV: 100/([totalhousesswithTV].[countofhouseid]*[totalhouses].[countofhouseid])
% Houses with TV: [totalhousesswithTV].[countofhouseid]/[totalhouses].[countofhouseid]*100
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)