In the Pivot Field List window, I add the field to "Value Area", sometimes it show as SUM, but sometimes it show as COUNT.
Can I set the default as I want? Or, can I change multi fields from COUNT to SUM by a batch?
Generally it will default to SUM if there are values in the field but, if I recall correctly, it will default to COUNT if the data in that column is in text, or if you already have that field in the rows section as well.
Regardless, the default is just that, a default. It's easy to change if Excel gets it wrong:
- Right click the field on the table
- Choose Value Field Settings
- In the "Summarize Values By" list, choose which you want. (Sum, Count, Average, etc...)
Ken Puls, FCPA, FCMA, MS MVP
Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!
Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter
If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.
Bookmarks