Hi Prasanna,
I am using following formula
if GridRowColumnValue("Command.ItemGroup") = "TotalDiscount" then totext(sum({Command.DiscountAmt}))
else totext(sum({Command.TotalPrice},{Command.ItemGroup}))
But it is showing following error :There must be group that matches this group
Thanks and Regards
DEV