Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculating a Percentage to Capacity

Hi All,

 

I am attempting to calculate the percent to capacity my employees are in terms of reaching their capacity goals. I have a measure that uses a DISTINCTCOUNT to calculate how many jobs they currently have on their plate, but am not able to to get the % of jobs to job capacity they currently sit at.  The Job Capacity metric is its own column, and a single person only has one Job Capacity goal (despite it being listed in every row that they are listed in).  See below for sample table - any thoughts on a simple fix?  The output for the below should have John at 60%, Beth at 100%, and Larry at 25%.

 

NameJob NumberJob Capacity
John13565
John45325
Beth67533
Larry22354
Beth78643
John45445
Beth76673

 

 

Thanks in advance! much appreciated.

  • Anonymous's avatar
    Anonymous
    3 years ago

    Resolved - no further help needed.

     

    Turns out I was trying to pull in a column from another table that was ultimately merged into my main table - so I needed to be using the merged field instead of the original.  Calculation was very simple once that was sorted out:

     

    %toCapacity = DISTINCTCOUNT(Table[Job_Number]) / AVERAGE(Table[Job_Capacity])

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Resolved - no further help needed.

     

    Turns out I was trying to pull in a column from another table that was ultimately merged into my main table - so I needed to be using the merged field instead of the original.  Calculation was very simple once that was sorted out:

     

    %toCapacity = DISTINCTCOUNT(Table[Job_Number]) / AVERAGE(Table[Job_Capacity])
    • Anonymous's avatar
      Anonymous
      Not applicable

      Turns out I was trying to pull in a column from another table that was ultimately merged into my main table - so I needed to be using the merged field instead of the original.

       

      Calculation was very simple once that was sorted out:

       

      %toCapacity = DISTINCTCOUNT(Table[Job_Number]) / AVERAGE(Table[Job_Capacity])