Agree with Ajax; your data does not look normalized and shows a spreadsheet mindset. Not only that, you should NOT store calculated values in a table, ESPECIALLY grand totals. Without benefit of a complete understanding, the impression I get is that 48145 should have 4 rows in some table under a field that categorizes the values (no idea what that is since I have no concept of what the data means). 3 rows should have the value set to B and 1 set to E. A totals query would report that for 48145, the counts for B and E are 3 and 1, and the grand total is 4.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.