Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Count above/below a Fixed Average

Good evening all!

 

I have a problem i am struggling to solve.

 

I have 2 tables. Table 1 is a list of projects and their total duration. (Sample below)

Master Project
Project IDDuration
Project 13
Project 23
Project 37

Table 2 is a detailed list of user durations in the projects. (Sample Below)

Detail Table
Project IDUserNameDuration
Project 1Jordan1.5
Project 1Justin1.5
Project 2Rory1
Project 2Dustin1
Project 2Ian1
Project 3Sergio7

I need to create 2 visuals from this. 1, the count of projects above the Average duration, and the count below. And 2, the difference each users interaction is against the fixed Project average.  (expected results below)

 

Visual 1

# of ProjectsAverage DurationProjects Above AverageProjects Below Average
34.3312

Visual 2

UsersAverage Project DurationDifference
Jordan4.33-2.83
Justin4.33-2.83
Rory4.33-3.33
Dustin4.33-3.33
Ian4.33-3.33
Sergio4.332.67

 

 

I can get it to show the count when its up against the individual Project IDs, but when i try to do it as a summarized number, it just comes up blank.    Any ideas?

 

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Brilliant!  

       

      You showed me my problem!  I was using countrows as well, however, when using FILTER under Calculate, I never thought to just have the Value of duration... I kept doing SUM!

       

      Thank you so much!