Hi. I have this query:--Total Admissions \ Cinema SELECT Cinema_DisplayName, Sum(Admissions) AS Admissions, Sum(CoolAdmissions) AS CoolAdmissions -- Admissions * 100.0 / Sum(Admissions) over () as percentageFROM ZZ_vwpProgressBoardGROUP BY Cinema_DisplayNameORDER BY MAX(Cinema_Order)
however if it try it like below it will expand the admissions and cooladmissions rows. something that i want to avoid. --Total Admissions \ Cinema SELECT Cinema_DisplayName, Sum(Admissions) AS Admissions, Sum(CoolAdmissions) AS CoolAdmissions, Sum(Admissions+CoolAdmissions) * 100.0 / Sum(Admissions) over () as percentageFROM ZZ_vwpProgressBoardGROUP BY Cinema_DisplayName,Admissions,CoolAdmissionsORDER BY MAX(Cinema_Order)