Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Average per week

hi,

 

i want to calculate an average salary per week per employee.

NameWeekSalary
A160
B170
C150
D170
A180
B170
C180
A120
B160
C170
D150
A170
B180
C170

 

kind regards

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi Framboosje,

 

To achieve this, you can create a calculate column using DAX formula below:

Result = CALCULATE(AVERAGE(Table1[Salary]), ALLEXCEPT(Table1, Table1[Name], Table1[Week]))

Capture.PNG  

 

Regards,

Jimmy Tao

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi Framboosje,

 

To achieve this, you can create a calculate column using DAX formula below:

Result = CALCULATE(AVERAGE(Table1[Salary]), ALLEXCEPT(Table1, Table1[Name], Table1[Week]))

Capture.PNG  

 

Regards,

Jimmy Tao

Anonymous
Not applicable

You can summarize that info in a new table:

 

AverageperEmployee =
SUMMARIZE (
    'Table',
    'Table'[Name],
    'Table'[Week],
    "Average Salary", AVERAGE ( 'Table'[Salary] )
)

 

Anonymous
Not applicable

Thanks but  can this be done in a calculation instead of a new table?

It looks to me you only need a simple measure:

Average Salary = AVERAGE([Salary])

 

In your table chart, you add Week, Employee and Average Salary. You will see your average per week per employee.

 

Let me know if I missed something

Anonymous
Not applicable

this is not gonna work for me because i need averages of 3 different things per week in one chart 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.