Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Weighted average - help needed

Hello everyone,   I am learning PowerBI and am trying to calculate an average value.   I have the population size for a series of cities, across a number of years, and the population age   C...
  • AlexisOlson's avatar
    4 years ago

    Weighted average can be computed like this:

    AvgAge =
    DIVIDE (
        SUMX ( Table1, Table1[Age] * Table1[Size] ),
        SUMX ( Table1, Table1[Size] )
    )