The assignment of each column in an export to a role: region, team, person, account as nesting levels; product and date as dimensions; value as the measure; the rest dropped. Checked by the roll-up identity before anything is computed, and reused on every later export of the same shape.
The column that sums to the control total is the value. The finest identifier every row has is the account.
The same product appears under many accounts. Mapped as a level, the roll-up double-counts.
Each column of an export is assigned a role once: the nesting levels, the dimensions, the measure, the date and the identifier. A person confirms it, it is saved against the export's layout, and the same map is applied to every later upload.
A ledger export maps Region, Branch, Rep and Account as levels, Category as a dimension, Invoice Date as the date and Net Value as the measure. Next month's file has the same headers and loads without anyone touching it.
A column renamed in the source system. The map no longer finds it, and the right response is to stop and ask, not to guess.