Forum Discussion

vishnuprashanth's avatar
vishnuprashanth
Icon for Helper III rankHelper III
8 years ago
Solved

calculate average across columns for all the selected data

I have a dataset with 80 columns.  I have filtered the necessary columns and I am trying to calculate the average for across each column for the selected data. DATASET: athlete time (mm:ss...
  • v-juanli-msft's avatar
    8 years ago

    Hi vishnuprashanth

    1. select columns from “Total Energy” to the last one except “athlete” and “time (mm:ss)”

        click Transform->unpivot columns

     

    2. Close and apply, then come back to data model view, create a new table

    Table1 = SUMMARIZE(FILTER(Sheet1,[athlete]="AKLIOUCHE MAGHNES"),[Attribute],[avg],[time (mm:ss)],[Value],"as","z-avgall")

     

     

    3. Union two tables

    Table2 = UNION(Sheet1,Table1)

     

    4. Finally, in Report View, use matrix as below

     

    Here is my pbix

     

    Best Regards

    Maggie