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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors