Forum Discussion

yakovlol's avatar
yakovlol
Icon for Resolver I rankResolver I
3 years ago
Solved

Calculate Average without Zero values based on measure

Hello Team, Could you please help me with creating a measure? I need to Calculate the Average for (No group) ignoring zeros. The values for the second column are based on another measure [Count Mon...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi yakovlol ,

     

    I suggest you to create a new [Average CountMonths] table based on original one.

    New Average CountMonths = 
    AVERAGEX(FILTER(VALUES(Table1[id]),[Average CountMonths]<>0),[Average CountMonths])+0

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.