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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 507 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!