Valor total = SUM('Códigos e valores'[Valor unitário])*SUM(Csv[Quant.])
This works ok for all the rows of the table except for the grand total at the bottom, because the definition can't be quantity * value.
But how to express this in the correct way?