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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


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])

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.