This could be done via some modification of the datasource
(by making a UNION of the original datasource table twice)
and using the [Table Name] as a placeholder for the Subtotal.
Then the Custom Grand Total calculation would do the rest.
Please find the attached.
Hope it could help.
Custom_GT_v10.2_YF.twbx 2.4 MB