Hi, I have a pivot table with my source data being salespersonID, SalesDate and ProductID as the rows and count ProductID as the value. I have added another field to the source data with following formula =IF(COUNTIFS($A$2:A2,A2)=1,1,0) showing the distinct SalespersonID and added this field to the Pivot table as value as SUM of...I want to find the number of distinct salespersonID in a certain date range, however I am not getting the right figures. Sorry I am having trouble attaching the example...