Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
spandy34
Responsive Resident
Responsive Resident

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 Refs 

 

spandy34_0-1646990586284.png

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

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:
vchenwuzmsft_0-1647330943695.png

 

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.

View solution in original post

3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

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:
vchenwuzmsft_0-1647330943695.png

 

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.

Anonymous
Not applicable

Hi, chenwu. I've used your method to apply to my case but it didn't work. Here is what I write. 

Measure =
var _average = calculate(AVERAGE('2023 RM Raw Data'[Amount]),REMOVEFILTERS('Month column'))
return
IF(SELECTEDVALUE('Month column'[Display Value])="Average",_average,SUM('2023 RM Raw Data'[Amount]))
Jiang_Yue_0-1729495792539.png

Why it didn't show the average amount?Is it because my data is bit complex?

Jiang_Yue_1-1729495856121.pngJiang_Yue_2-1729495881515.png

Thank you so much. If you are free, please see my own post problem: Re: Add an average column - Microsoft Fabric Community

 

 

Anonymous
Not applicable

Hi @spandy34 
as a workaround, you can calculate the averages for each fiscal year in a measure and place them in a card visual next to the respective rows.
You can calculate the average Count of Claim Refs per fiscal year by using Calculate() function.  For Example:

Average Count of Claim Refs for 2021-2022 = 
Calculate(Average([Claim Refs]), 'Table'[Fiscal Year] = "2021-2022")

Similarly for fiscal years 2020-2021 and 2019-2020.

Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.