cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zipoben
Regular Visitor

Matrix Collapsing - How to Show Average of All Values When Collapsed?

Hello All,

 

I am trying to show the average (mean) of the expanded values in the '% Complete' column in this matrix when I collapse it instead of the sum of "Count of Tasks" and their % completion as a total.PBI Help.PNGIn this instance, I would expect an overall %Complete of around 64% instead of the displayd 97%. Is there any way to accomplish this? Thanks!

 

-Z

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @zipoben 

 

[%Complete] is measure? IF[%Complete] is measure, you can try the following methods.

Measure:

 

Measure = IF(HASONEVALUE('Table'[Child]),[%Complete],AVERAGEX('Table',[%Complete]))

 

vzhangti_0-1664503156903.png

IF(HASONEVALUE()) can control the output of Total.
 

Best Regards,

Community Support Team _Charlotte

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

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @zipoben 

 

[%Complete] is measure? IF[%Complete] is measure, you can try the following methods.

Measure:

 

Measure = IF(HASONEVALUE('Table'[Child]),[%Complete],AVERAGEX('Table',[%Complete]))

 

vzhangti_0-1664503156903.png

IF(HASONEVALUE()) can control the output of Total.
 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors