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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!