COUNT-OF ( break-group )
|
FOR EACH Customer NO-LOCK BREAK BY Customer.State:
DISPLAY Customer.CustNum Customer.Name Customer.SalesRep Customer.State. ACCUMULATE Customer.State (SUB-COUNT BY Customer.State). IF LAST-OF( Customer.State) THEN DISPLAY 100 * (ACCUM SUB-COUNT BY Customer.State Customer.State) / COUNT-OF(Customer.State) FORMAT "99.9999%" COLUMN-LABEL "% of Total!Customers". END. |