Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% Totals in a Pivot

Hi I have a qliview app that calculates total costs and margins in a pivot table.

All of the rows calculate correctly but the total percentage doesn't weight based on the row values so I end up with

Budget Net SalesBudget MarginBudget Margin %
74,25025,71934.50%
35,75012,43734.79%
38,50013,28234.50%


The total margin should not be 34.50% butu should be 25,719/74,250 ie 34.63%

The total mode is set to expression total, if I set to sum of rows I get just that the sum of rows and not the correct percentage, is there another setting somewhere I am missing?

Thanks

Matt

1 Reply
Not applicable
Author

I find you have to do the Whole Calculation again

ie Sum(BudgetMargin / Sum(BudgetSales)