Forum Discussion
SoulCuber
9 years agoFrequent Visitor
Calculate column with subtotals
I would like to create a column/measure that computes the sum of one column for all distinct combinations of two other columns. The example below shows hours per operator per date. The last colum...
DSimma
Advocate IV
9 years agoYou can use the summarize function to create a new table from this table that is summarized on the first two columns with a sum of whatever other columns you want, or other functions.
ie somthing like table 2=summarize(table1, date, job, "Total Job Hours", Sum(Job Hours)
- SoulCuber9 years agoFrequent Visitor
Thanks a lot DSimma for your suggestion. That does indeed create the desired column, but in a different table. Which is indeed what I have done now. However, I would like to have the column in the original table. I guess I could link the summed column back into the original column by creating a new key column, but that is ugly. I wondered if there would be a formula for it.