Implemented dynamic sum row in footer