問題
How to show a different calculation for Subtotals and Grand Totals. For example, showing SUM([Sales]) in cell, but SUM([Profit]) in Sub-totals & SUM([Quantity]) in Grand Totals.
How to show a different calculation for Subtotals and Grand Totals. For example, showing SUM([Sales]) in cell, but SUM([Profit]) in Sub-totals & SUM([Quantity]) in Grand Totals.
Follow along with the attached packaged workbook to review the steps below. The workbook can be found to the right of this text in the "Attachments" section.
IF WINDOW_COUNT(ATTR([Category]))=0 THEN SUM([Quantity]) ELSEIF WINDOW_COUNT(ATTR([Category]))=3 THEN SUM([Profit]) ELSE SUM([Sales]) END