Maybe what we really want is for the region name to appear in the Salesman
column of the subtotal line. How can we achieve this?

The 'X' Breakpoint Control Code and @BPV

QM includes an 'X' breakpoint conrtol code that saves the previous value of
the breakpoint field in a system variable named @BPV. We can make use of this
in a dictionary I-type item that evaluates to the salesman name on a detail
line and the region name saved in @BPV on a subtotal line. We also need to
return appropriate text for the grand total line. The three line types can be
distinguished by checking the breakpoint level in @NB.

The I-type to achieve this for the sales example becomes

if @nb = 0 then salesman else if @nb = 255 then 'Total' else @bpv

If this is saved in the dictionary as SALESMAN.REGION, our query becomes