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 September 15. Request your voucher.

Reply
dhanekula1996
Helper I
Helper I

Matrix sum at lower level and Average at Higher level

Hello all,

I am Trying to sum the values at lower Hierarchy (Product A = 10) which inturn is the summed value.( 10 = 2+3+5). Total is the sum of values across product A (Total = New +Inprogress+..). I want to show the Average value of that type in higher hierearchy.( 13.33 = (10+20+10) /3).  How show this calculation in Matrix Visualization.

Thanks for your help,

Shashi

 

 

Type\Status NewInprogressPendingCompletedTotal 
10010 13.333333333.333333333013.33333330 
 Product A10001020 
 Product B201002050 
 Product C10001020 
10011 20155035 
 Product D10100020 
 Product E202010050 
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @dhanekula1996 

Please check the below picture and the sample pbix file's link down below.

I suggest having a table structure and data model like below.

All measures are in the sample pbix file.

 

Picture12.png

 

https://www.dropbox.com/s/40f5vyps3bqxayn/dhanekula.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi, @dhanekula1996 

Please check the below picture and the sample pbix file's link down below.

I suggest having a table structure and data model like below.

All measures are in the sample pbix file.

 

Picture12.png

 

https://www.dropbox.com/s/40f5vyps3bqxayn/dhanekula.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Sir, Thank you so much for the response, It is working but in Higher level Hierarchy  currently it is showing the Average Total is 

 Sum of total number of total for each product / ( number of columns * number of rows )  --wrong

 Sum of total number of total for each product / ( number of columns )-- correct

*Blanks are not counted.

gls 3.PNGgls2.PNG

Hi, @dhanekula1996 

Thank you for your feedback.

Please share your sample pbix file's link here, then it will be much helpful not to create any gaps between I use sample A and you use sample B.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you so much for your help sir. I figured the problem and fixed it.

 

amitchandak
Super User
Super User

@dhanekula1996 , assume you have measure [new], you have create and use a measure like

 

new measure = averageX(values(Table[product]), [new])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

My apologies sir, Actually the columns New, Inprogress.. are in values of Status column. 

So shall I create a Individual column for each category (New, Inprogress...) and create a mentioned measure?

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.