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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors