Forum Discussion

spandy34's avatar
spandy34
Responsive Resident
4 years ago
Solved

Matrix Average Column

I would like to add a Monthly Average as a column at the end of this table and I was wondering if anyone could help please?   The columns are Calender Months and the values are the Count of Claim R...
  • v-chenwuz-msft's avatar
    4 years ago

    Hi spandy34 ,

     

    Matrix table is not support to add a column by custom. The only way to add a column is add a new row under Calender Months, which value is "average".

    Then measure:

    Measure =
    var _average = calculate(AVERAGE('Table'[values]),REMOVEFILTERS('Months column'))
    return
    IF(SELECTEDVALUE('Months column'[month])="average",_average,SUM('Table'[values]))
    Result:

     

    The same problem has been solved in this post you can refer.

    Solved: Re: Dax to get YoY change - Microsoft Power BI Community

     

    Pbix in the end you can refer.

    Best Regards

    Community Support Team _ chenwu zhu

     

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