cancel
Showing results for
Did you mean:
Anonymous
Not applicable

## Average per week

hi,

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

 Name Week Salary A 1 60 B 1 70 C 1 50 D 1 70 A 1 80 B 1 70 C 1 80 A 1 20 B 1 60 C 1 70 D 1 50 A 1 70 B 1 80 C 1 70

kind regards

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Average per week

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]))`

Regards,

Jimmy Tao

5 REPLIES 5
Anonymous
Not applicable

## Re: Average per week

You can summarize that info in a new table:

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

Anonymous
Not applicable

## Re: Average per week

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

Regular Visitor

## Re: Average per week

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

## Re: Average per week

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

Community Support Team

## Re: Average per week

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]))`

Regards,

Jimmy Tao

Announcements

#### Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!