Forum Discussion
Pivot Table with multiple grand total calculations
Hello,
I'm trying to create a pivot table that has multiple total columns. I can get the totals, but it adds a column for Average and MIN (Best finish) to each FIN (finishing position) in the body of the pivot table. I'd like to create a pivot that has (or at least shows) only the 1st FIN under values (it's a count of FIN & only thing I use) and the three total columns.
I'm hoping to get it to look like the second pivot. I'm happy if there's a way just to automatically close those extra columns (for Average & MIN) in the pivot body. At this point I do it manually. I'd really hope to totally get rid of them, it'll make my pivot smaller.
Thank you for any ideas to accomplish this.
7 Replies
- Azure_temir5orgCopper Contributor😎😍
Afraid you can't to show few grand totals without showing the fields. As workaround, creating PivotTable you may add data to data model and create proper measure with combined Grand Total to use instead of initial fields.
Didn't catch how exactly your data is structured, thus on such sample
measure is
NewField := IF ( HASONEFILTER ( Table1[ID] ), MAX ( Table1[B] ), "Sum= " & FORMAT ( SUM ( Table1[V] ), "000" ) & "; Avr= " & FORMAT ( AVERAGEA ( Table1[V] ), "000.0" ) )
- DebiDombyCopper ContributorOne more question... Can you run macros on Pivot tables? That would be the best solution. Once you do it once, my columns never change. 26 is the most I'll have. That would be a great solution.