Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Average excluding blank cells

Dear all,

 

We are running an Employee Satisfaction Survey in our company but I am having hard time to find the average scores due to the blank cells in data cells, therefore looking for your valuable input.

 

I have a dataset like this:

 

ManagerQuestion 1Question 2Question 3Question 4Question 5Question 6
Alex452266
Alex6 34 8
Jake567418
Jake 7 6 4
Joe6 5 78
Joe 7    
Natalie4106473
Natalie1  6 6

 

Question 1 and Question 2, for example, belong to the "Leadership index" group. Therefore, in order to find the average score per manager for the "Leadership index", I created the following measure:

 

Leadership index = (AVERAGE(Sheet1[Question 1])+AVERAGE(Sheet1[Question 2])/2)

 

However, it results in incorrect scores as following, I believe because the measure does not exclude the blank cells while calculating the measure:

 

ManagerLeadership index
Alex7.5
Jake8.25
Joe9.5
Natalie7.5

 

 

Do you guys have any ideas on how to exclude the blank values while calcualating the measure so that I get the correct results?

 

Thanks for your support!

 

Ugur Gulluev

  • You just have a precedence issue (order of operations)

     

    Leadership index Correct = (AVERAGE(Table10[Question 1])+AVERAGE(Table10[Question 2]))/2

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    You just have a precedence issue (order of operations)

     

    Leadership index Correct = (AVERAGE(Table10[Question 1])+AVERAGE(Table10[Question 2]))/2