Forum Discussion

titus's avatar
titus
Icon for Helper I rankHelper I
5 years ago
Solved

Average from other subgroup average

Hello,

 
DepartmentWorkerDays at workUnits SoldProductivity
(Units per day)
AJohn3124
ASusan5153
BAngela122
BPeter5204
BChin4123
 
 Productivity
A3,5
B3
 

I have a table with data (Department, worker, days, units sold) and a measure "Productivity" (units sold / days at work). 

(In reality, i have the report with all the sales per day. Each row represent a sale, with product, quantity,... But for this post, i put just this example)

How can i get the productivity of the department, which has to be the average of all the workers productivity ?

For example, I want the department A to do the average of all the productivities from the workers of that department, not the sum of the itens sold and divided by the working days.

 

Thks 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Don't @titus

    You can create a new measure to calculate the average productivity for the department.

    Measure:

    Average of Productivity(Units per day) = AVERAGEX(FILTER(Data,Data[Department]=MAX(Data[Department])),[Productivity(Units per day)])

    The result is as follows.

    1.png

    Best regards

    Rico Zhou

    If this post helps,then consider Accepting it as the solution to help other members find it faster.

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Don't @titus

    You can create a new measure to calculate the average productivity for the department.

    Measure:

    Average of Productivity(Units per day) = AVERAGEX(FILTER(Data,Data[Department]=MAX(Data[Department])),[Productivity(Units per day)])

    The result is as follows.

    1.png

    Best regards

    Rico Zhou

    If this post helps,then consider Accepting it as the solution to help other members find it faster.

    • titus's avatar
      titus
      Icon for Helper I rankHelper I

      Works like a charm Anonymous  🙂