$ 0 0 Hi Abhilash,thx for your reply and your help It seems to be something wrong with the avg and the total. Result: Only AVG as Output: always 1 Only Total as Output: Do you please have another suggestion? THX and BR Rudi