Forum Discussion
bhorvati
8 years agoFrequent Visitor
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...
- 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
MattAllington
8 years agoCommunity Champion
=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
- bhorvati8 years agoFrequent Visitor
Worked perfect Matt. Thanks so much. I had not even heard of the EARLIER function until just now.