refs #1816 this should fix calculation in case we are dealing with a datatable\map and a subtable