Forum Discussion

novotnajk's avatar
novotnajk
Resolver I
5 years ago
Solved

Average Score Excluding Zero

Yet another request (Sorry PBI Forum!)   See table below.  I'm trying to find out the average quality score that excludes zeros (because they bring down the average). Any help?  Ignore the # of Me...
  • Ashish_Mathur's avatar
    5 years ago

    Hi,

    Assuming Quality score is a measure, try this measure

    =if(hasonevalue(data[provider name]),[quality score],calculate([quality score],filter(values(data[provider name]),[quality score]>0)))

    Hope this helps.

     

  • novotnajk's avatar
    novotnajk
    5 years ago

    That worked!  Thanks!