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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.