Help with Formula

I need Project Health to be based on the count of children's health, but if there is a similar number between the two statuses, select the most critical one. I'm using this formula, and it's given me a red color when the majority are yellow.
=IF(COUNTIF(PARENT([Health]@row), "Red") > COUNTIF(PARENT([Health]@row), "Yellow") + COUNTIF(PARENT([Health]@row), "Green"), "Red", IF(COUNTIF(PARENT([Health]@row), "Yellow") > COUNTIF(PARENT([Health]@row), "Red") + COUNTIF(PARENT([Health]@row), "Green"), "Yellow", IF(COUNTIF(PARENT([Health]@row), "Green") > COUNTIF(PARENT([Health]@row), "Red") + COUNTIF(PARENT([Health]@row), "Yellow"), "Green", IF(COUNTIF(PARENT([Health]@row), "Yellow") = COUNTIF(PARENT([Health]@row), "Red"), "Red", IF(COUNTIF(PARENT([Health]@row), "Red") = COUNTIF(PARENT([Health]@row), "Green"), "Yellow", IF(COUNTIF(PARENT([Health]@row), "Yellow") = COUNTIF(PARENT([Health]@row), "Green"), "Yellow", ""))))))
Answers
-
Try the CHILDREN function instead of the PARENT function if you are trying to evaluate the child rows.
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