Forum Discussion

kvandehy's avatar
kvandehy
New Member
9 years ago
Solved

DAX | Average If Value > 0

Please help - I am very new to DAX functions and have not been able to find a solution to my problem.   I have a column of hours worked for each employee and I want to create a measure to calculate...
  • Anonymous's avatar
    Anonymous
    9 years ago

    If you wanted to literally average the values, it would be

     = CALCULATE ( AVERAGE(Employee[Hours]), Employee[Hours] <> 0 )

     

    Though, I can totally imagine other interpretations of "average" :)