Am от sql server background надеюсь, что sum () over () будет существовать в Hana, попробуйте следующее решение
create table #temp(groupid int,value int)
insert into #temp values(1,1)
insert into #temp values(1,1)
insert into #temp values(1,1)
insert into #temp values(2,2)
insert into #temp values(2,2)
select
a.*,sum(x) over()/2 as Total
from (
select groupid,count(value) as x
from #temp
group by rollup (groupid)
)a