cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adithyanv
Microsoft
Microsoft

Need to display average instead of totals in a matrix

Hi Team, 

As you can see i have a matrix visualization here , Having Rows : Area , Columns : Controls , And Values : A measure 

i need to find the average but the average is showing here as wrong as below picture :

adithyanv_0-1679640663432.png

Data given in rows,columns and values :

adithyanv_1-1679640697776.png

 

 My expected outcome is :

adithyanv_2-1679642209862.png

Example for averages : ACA average is calculated as 0/1=0%

                                     Brazil Average is calculated as 100+17/2=59%

 

 

1 ACCEPTED SOLUTION

@adithyanv 
Then use

Exception HAndling % Average Total =
AVERAGEX (
    SUMMARIZE ( 'Table', 'Table'[Area], 'Table'[Control] ),
    [Exception HAndling %]
)

View solution in original post

6 REPLIES 6
tamerj1
Super User
Super User

Hi @adithyanv 
Please try this measure in the values of the matrix

Exception HAndling % Average Total =
AVERAGEX ( VALUES ( 'Table'[Control] ), [Exception HAndling %] )

Hey thanks for the quick reply,

now the row wise average are correct

but column wise is wrong

 

adithyanv_0-1679646828485.png

 

@adithyanv 

Are area and Control from the same table? If different tables, would you please provide details about the relationships?

coming from same table

@adithyanv 
Then use

Exception HAndling % Average Total =
AVERAGEX (
    SUMMARIZE ( 'Table', 'Table'[Area], 'Table'[Control] ),
    [Exception HAndling %]
)

its working now thank you

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors