cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
Community Support Team
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]))

Capture.PNG  

 

Regards,

Jimmy Tao

View solution in original post

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?

Arentir Regular Visitor
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
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]))

Capture.PNG  

 

Regards,

Jimmy Tao

View solution in original post

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

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!

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?

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

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!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors