How to calculate the total of a column in a table
问题 In my table below, I've got the measure "Valor Total" as: 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 * price. The problem here is that the field "Quant" is on a table with many-to-one relationship with another table (Table2). This Table2 has a relationship of one-to-many to table "Códigos e valores" where field "Valor Unitário" is located.