Average Collect Unique Formula
Hi,
I am looking to pre set a data frame for Tableau Dashboards after form submissions and I need to do an average by a unique Risk Area. First a calculated the average Business Unit score for each Risk Area and now I want to take those average scores for each Business Unit in a Risk Area without duplicated values.
How can I add a part to this formula to only look at the Unique Risk and BU averages and find the average score for the Risk Area?
=IFERROR(AVG(COLLECT([Inherent Risk Score (AVG Sub BU)]:[Inherent Risk Score (AVG Sub BU)], Risk:Risk, =Risk@row)), " ")
Answers
-
Hi @MJ215
If I'm understanding you correctly, you only want the Average of the unique values in the column [Inherent Risk Score (AVG Sub BU)]. If so, we can add the DISTINCT function after the AVG but before the COLLECT, like so:
=IFERROR(AVG(DISTINCT(COLLECT([Inherent Risk Score (AVG Sub BU)]:[Inherent Risk Score (AVG Sub BU)], Risk:Risk, =Risk@row))), " ")
Let me know if this is what you were looking to do!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!