Forum Discussion

steambucky's avatar
steambucky
Helper III
6 years ago
Solved

Getting averages from SPECIFIC rows

Units of a department are getting evaluated on 4 things.  Anywhere there is a 0 means that unit is not yet evaluated. I need to create averages from units that HAVE been evaluated.  This is the ...
  • edhans's avatar
    6 years ago

    You can use AVERAGEX and replace the zeros with blanks in the measure without changing your underlying data. Blanks are not evaluated with the AVERAGEX function.

     

     

     

    Manager Training Avg = 
        AVERAGEX('DataTable',
            IF(
                'DataTable'[Manager Training] > 0,
                'DataTable'[Manager Training],
                BLANK()
                )
        )