this formula appears to work but it looks to be stopping after the first @cell

Assistance is required please - all projects are cancelled, so it should report 0, it reports 2, like they are not cancelled
=IFERROR(IF(ISBLANK([Primary Column]@row), "", (COUNT(DISTINCT(COLLECT({2025 PMO Tracker V2 |Series}, {2025 PMO Tracker V2| PMO}, [Primary Column]@row, {2025 PMO Tracker V2| NPD-EXT}, "NPD-Category Expansion", {2025 PMO Tracker V2| PMO Status}, OR(@cell <>"Pending", @cell <> "Cancelled", @cell <> "Pending"), {2025 PMO Tracker v2 | YEAR}, $[Primary Column]$1))))), "error")
Best Answer
-
I changed the "OR" to an "AND" and it worked, backwards logic on my behalf, thank all .
Answers
-
Without digging into it too deeply, the first thing I see is:
OR(@cell <> "Pending", @cell <> "Cancelled", @cell <> "Pending")
Pending is listed two times, should the last one be something, such as "Completed"?
-
Thank you. That was an example only; my apologies; I replaced the second pending with "on hold," so the formula is the same, I just transposed incorrectly into the request.
=IFERROR(IF(ISBLANK([Primary Column]@row), "", (COUNT(DISTINCT(COLLECT({2025 PMO Tracker V2 |Series}, {2025 PMO Tracker V2| PMO}, [Primary Column]@row, {2025 PMO Tracker V2| NPD-EXT}, "NPD-Category Expansion", {2025 PMO Tracker V2| PMO Status}, OR(@cell <>"Pending", @cell <> "Cancelled", @cell <> "On Hold"), {2025 PMO Tracker v2 | YEAR}, $[Primary Column]$1))))), "error")
-
I changed the "OR" to an "AND" and it worked, backwards logic on my behalf, thank all .
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!