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

Matrix Row total - Average of rows in Matrix

Hi,

i am new in power BI, I have a matrix, with one Measure. My measure is

Index = AVERAGE(Consolidated[Avg_Spend])it is calculating values correctly, but my row totals are wrong.

totals.png

 

I want to take the AVERAGE of 83.20 and 218.87. How can i do that, thanks for your help..

Khan

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Fowmy 

Thanks for your reply, i have managed to solve it by searching the comunity.

I changed my Measure

from this

Index = AVERAGE(Consolidated[Avg_Spend])

 

to this

Index = AVERAGEX(
VALUES (Consolidated[Item]),
CALCULATE(
AVERAGE(Consolidated[Avg_Spend])))
 
and it works fine..
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Fowmy 

Thanks for your reply, i have managed to solve it by searching the comunity.

I changed my Measure

from this

Index = AVERAGE(Consolidated[Avg_Spend])

 

to this

Index = AVERAGEX(
VALUES (Consolidated[Item]),
CALCULATE(
AVERAGE(Consolidated[Avg_Spend])))
 
and it works fine..
 
Fowmy
Super User
Super User

@Anonymous 

Your average is taking the average value at all levels. can you share the expected result with some sample data?



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.