SAP Message SALV_EXCEPTION242 - Subtotals cannot be calculated on aggregatable columns

Diagnosis
An error occurred when calling method &2 of class &1.
You attempted to define a subtotal for column &3. However, subtotalscannot be determined for aggregatable columns.