Thank you Sunil!
But I do not understand your syntax.
Did you mean like this?
if(sum(Happy_client)>0,1) as Good_time,Good time Good timeGood time
group by Time ,Client_ID;
Sounds good, but I would like to use no "if", because this makes everything very slow. So I use an "OR":
But how is the function for Products called?
Question moved here: