$ 0 0 Hi To get the required sum data ...create a derived table and with the required logic and link to the respective table.