COUNT DISTINCT COLLECT returning 1
The following formula is returning 1
We are looking to count distinct number of customers for each site based on data from another sheet (as a customer may have multiple projects with us)
These are the headers of interest in the sheet with all the raw data. The "Site" column a multi-pick column so we set up a "Site helper" column using the following formula =SUBSTITUTE(Site@row, CHAR(10), ",") to allow unique counting
This is the formula created to count the number of distinct customer per site.
=COUNT(DISTINCT(COLLECT({Customer Name PP}, {PP Site}, CONTAINS("Site 1", {PP Site}))))
Note: {PP Site} references the Site Helper column but have no idea why it names itself {PP Site} instead of {PP Site Helper}
Answers
-
Try this:
=COUNT(DISTINCT(COLLECT({Customer Name PP}, {PP Site}, CONTAINS("Site 1", @cell))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!