Forum Discussion

bhorvati's avatar
bhorvati
Frequent Visitor
8 years ago
Solved

Help with Column Calculation

I need to create a calculated column "Total Units" that totals the unit sales by Order Number without reference to row context.   I need the total as a calculated column since I will create a new dim...
  • MattAllington's avatar
    8 years ago

    =calculate(sum(table[units]),filter(table,table[ordernumber]=earlier(table[ordernumber]))

     

    be sure to write only 1 calculated colum, not 2. Get the one above working first, then modify it to return "big" or "small". This is better than having 2 columns