Forum Discussion

SoulCuber's avatar
SoulCuber
Frequent Visitor
9 years ago
Solved

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...
  • Vvelarde's avatar
    9 years ago

    hello SoulCuber

     

    This give you the solution

     

    Job Hours = CALCULATE(Sum(Table1[Hours]),ALLEXCEPT(Table1,Table1[Date],Table1[Job]))

     

    =)