Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Get the median based on certain column

Hello im trying to compute median of the market value (MV) for each of site based on municipality which the site is located, and if there is no record of MV for the particular municipality, get the m...
  • lbendlin's avatar
    lbendlin
    4 years ago
    Median = COALESCE(medianx(TDList,TDList[MV]),CALCULATE(medianx(TDList,TDList[MV]),REMOVEFILTERS(LGUlist[Municipality])))
  • Anonymous's avatar
    Anonymous
    4 years ago

    ok thanks will check the measure will get back to you if i encounter any issues. anyway many thanks for your time