Using Count in Pivot Table when Summarizing

Andy0311

Board Regular
Joined
Oct 16, 2019
Messages
118
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,
I've created this pivot table to summarize the number of distinct dates a teacher was online. Teachers are in the rows. Dates are columns.
1598454221849.png

In the Grand Total column I want to show the number of dates the teachers were online. For example, in the first row in the grand total equals 2 for total lessons graded on 8/24. I would like, instead, the cell to calculate the number of days, which in the case of row one, would be 1. Out of the two possible days available to work, 8/11 and 8/24, Robert worked only on the 24th. What I don't understand how to do is change the summary box so that it will count the distinct days. In the value field settings I've tried both Count and Count Numbers and both give me the same result of 2 in my example of row 1. Any help would be greatly appreciated at this point. Thank you.
1598454773807.png
 

Attachments

  • 1598455205291.png
    1598455205291.png
    50.4 KB · Views: 1

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
while creating Pivot Table use add to Data Model then you'll get count distinct possibility

add2datamodel.png

distcount.png
 
Last edited:
Upvote 0
I can't click the box Add this data to the Data Model. It is greyed out. Thanks for helping me.
 
Upvote 0
start from the beginning
usually it works with Excel Table or range
you've 365 / 2016 so Data Model is supported
 
Upvote 0
Thank you for helping me. I figured out why the selection was greyed out. After I saved the file in 365 I could select it. Great help. Thanks. A
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top