Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Adding an average column to a matrix

Hi All, I have the following matrix

Row: Group name (A, B, C, D)

 

Columns: Company Name ( Apple, Google, Tesla). HERE I want to add an average column.

 

Values: Any numbers

 

GroupAppleGoogleTeslaAVERAGE
A123 
B232 
C343 
D451 

 

I want to add an average column that looks at te average for the companies selected. How can I do this?

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      What would the measure and av measure be?

      • amitchandak's avatar
        amitchandak
        Super User

        Anonymous ,

        measure = sum(Table[Value])

         

        Avg Measure = Average(Table[Value])

        or

        Avg Measure = Divide(sum(Table[Value]), distinctcount(Table[Company]))