Unique Count Pivot to exclude where<$0

drose1105

New Member
Joined
Mar 27, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi all.

My Pivot table of Distinct Count of Company Names is not working.

I want the Distinct Count to EXCLUDE any company where the New Revenue amounts are <$0 dollars. So, in the "Type" of the pivot table, I selected "Value Filter", Greater than, "New Revenue is greater than 0". However, the distinct count does NOT properly exclude the $0 or the negative ($6k) amounts - that is, instead of retuning a count of 4, it gives me a count of 6

Here is my data set:
Data​
Solution​
Company Name​
Type​
New Revenue​
Enter
Merdona​
X Sell​
0​
Enter
Donald​
X Sell​
(6,000)​
Enter
Bees​
X Sell​
27,000​
Enter
Horray​
X Sell​
45,000​
Enter
Safe​
X Sell​
54,850​
Enter
Camp​
X Sell​
93,6​

Aside from writing an IF formula within my data, is there any way to do this in the Pivot Table?

Here is the full file in Dropbox.com
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I don't understand. When I filter by > 0, the data filters appropriately. (It filters row 4 and 6 out). But, I added a subtotal function for column B and D:

Distinct Count Pivot to exclude less than $0.xlsx
ABCD
1
2Data
3SolutionCompany NameTypeNew Revenue
6EnterBeesX Sell27,000
7EnterHorrayX Sell45,000
8EnterSafeX Sell54,850
9EnterCampX Sell93,660
10Distinct # of Subs4220,510
11
CJM data
Cell Formulas
RangeFormula
B10B10=SUBTOTAL(3,B4:B9)
D10D10=SUBTOTAL(9,D4:D9)
 
Upvote 0
When you applied the filter by >0 in this Pivot table, which row field did you use, Solution or Type? I tried both and still getting a distinct count of 6. My Pivot table is in classic format but also tried in regular format and still no luck.

Also, below is a picture of my pivot table fields using Distinct Count of Company Names. Is this correct?
1680610262231.png
 
Upvote 0
Hi all.

My Pivot table of Distinct Count of Company Names is not working.

I want the Distinct Count to EXCLUDE any company where the New Revenue amounts are <$0 dollars. So, in the "Type" of the pivot table, I selected "Value Filter", Greater than, "New Revenue is greater than 0". However, the distinct count does NOT properly exclude the $0 or the negative ($6k) amounts - that is, instead of retuning a count of 4, it gives me a count of 6

Here is my data set:
Data​
Solution​
Company Name​
Type​
New Revenue​
Enter
Merdona​
X Sell​
0​
Enter
Donald​
X Sell​
(6,000)​
Enter
Bees​
X Sell​
27,000​
Enter
Horray​
X Sell​
45,000​
Enter
Safe​
X Sell​
54,850​
Enter
Camp​
X Sell​
93,6​

Aside from writing an IF formula within my data, is there any way to do this in the Pivot Table?

Here is the full file in Dropbox.com
If you want to filter, put New Revenue in the Filter section. For a small selection like this, it's not a problem, but for a large dataset you should convert the data into a Table, load it into the Data Model and create a Measure for the count.
 
Upvote 0

Forum statistics

Threads
1,215,087
Messages
6,123,046
Members
449,092
Latest member
ikke

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