I'm doing a complex Aggr calculation in QlikSense and my problem is that the Total Result is working OK in a Straight Table but the Totals if I use a Pivot Table is wrong. I know there are some posts related to this topic but none of them are using similar formulas... This is the formula I'm using: