Count distinct with criterion
Hello,
I'm trying to count the number of projects we have that are in the Draft state. I can't seem to get the correct combination of COUNT, DISTINCT and IF together into a formula to yield the results that I want. Has anyone been able to achieve this? Here is a screenshot of the columns that I'm trying to reference:
Best Answer
-
You want to try a COUNT/DISTINT/COLLECT
=COUNT(DISTINCT(COLLECT([Project ID]:[Project ID], [Opportunity State Name]:[Opportunity State Name], @cell = "Draft")))
Answers
-
You want to try a COUNT/DISTINT/COLLECT
=COUNT(DISTINCT(COLLECT([Project ID]:[Project ID], [Opportunity State Name]:[Opportunity State Name], @cell = "Draft")))
-
@Paul Newcome the COLLECT function escaped my consciousness. Genius! Thank you.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!