Forum Discussion

joansinho's avatar
joansinho
Advocate I
7 years ago
Solved

Harmonic Mean

Hi everyone,   I am trying to use the harmonic mean, but I noticed powerBI does not have that function. I am trying to write it from scratch, but I am running into some troubles. Also, I need to gr...
  • Chihiro's avatar
    Chihiro
    7 years ago

    I think you should be able to do something like...

    n = CountRows('table')

    d = SUMX('table', 1/[Uses])

    Harmean = [n]/[d]

     

    And put it into Matrix visual.

    Note: I think your calculation for A-Business is off, and you are doing avg of avg for A & B sub total.