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
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 466 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!