To express the metrics of the table in units of mass, instead of Amount of substance, simply replace 'mol' with 'g' and 'M' with 'g/dm3'.
To express the metrics in terms of mass rather than amount of substance, replace 'mole' with 'gram' and 'molar concentration' with 'grams per cubic decimeter'.