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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to calculate the average of rows in the matrix

Hi,
I have a matrix and I need to calculate the average of rows in the matrix for the past 12 months.
The average for 'Actual Exp' will be different than the 'Actual Min' values, and RAG will be calculated based on the average value of 'Actual Exp'.

I don't know how to get the average for 'Actual Exp' and  'Actual Min' in a matrix.
Thanks, guys.

R_S-13697_1-1614858147059.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

To calculate the separate averages for Actual Exp and Actual Min you can create a table with measures. The formula for the measure is:

Avg_Actual Exp = AVERAGE({Table Name}, {Column Name})

This formula will also consider only the valid values and will omit the text or null values.

For those values which only have null or text values in the rows, the formula is:

Avg_Actual Exp = IF(ISNUMBER(AVERAGEX({Table Name}, {Column Name}), AVERAGEX({Table Name}, {Column Name},"N/A" )

This will give you the "N/A" if the whole row has null values.

You can replicate the same thing for the Actual Min.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

To calculate the separate averages for Actual Exp and Actual Min you can create a table with measures. The formula for the measure is:

Avg_Actual Exp = AVERAGE({Table Name}, {Column Name})

This formula will also consider only the valid values and will omit the text or null values.

For those values which only have null or text values in the rows, the formula is:

Avg_Actual Exp = IF(ISNUMBER(AVERAGEX({Table Name}, {Column Name}), AVERAGEX({Table Name}, {Column Name},"N/A" )

This will give you the "N/A" if the whole row has null values.

You can replicate the same thing for the Actual Min.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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