A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The grand total is the distinct count of the unique IDs across the whole dataset. It appears that you have the same ID appearing under more than one row field, and also appearing as both Male and Female in the Mayurbhanj group since the grand total is not the sum of the subtotals.