cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## Change Matrix Grand total of one measure from sum to average

Hello,
I have the following Matrix

Each row come from a different measure. I need to change the grand total of the third row from SUM to Average, so from 100% to 91%, the measure of the third row is:

```% este Mes =

VAR m = CALCULATE( MAX( Ejemplo[Mes] ); ALLSELECTED() )   //Select the number of the month selected in the slicer

RETURN IF(                                                 // if the % is bigger than 100% just show 100%, if not show the real %

[Realizadas a la Fecha]/FIXED([Metas 2018]* m / 12;0;1)>1;

1;

[Realizadas a la Fecha]/FIXED([Metas 2018]* m / 12;0;1)   // Calculation of the %, using the numbers from the first row of the matrix ([Metas 2018]), the second row ([Realizadas a la Fecha]) and Variable m that is the selected month in the slicer of the page

)```

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support

## Re: Change Matrix Grand total of one measure from sum to average

I make a test based on a simple example

create a measure

`Measure_average = IF(HASONEVALUE(Sheet2[category]),[Measure3],AVERAGEX(Sheet2,[Measure3]))`

Best Regards

Maggie

Community Support

## Re: Change Matrix Grand total of one measure from sum to average

I make a test based on a simple example

create a measure

`Measure_average = IF(HASONEVALUE(Sheet2[category]),[Measure3],AVERAGEX(Sheet2,[Measure3]))`

Best Regards

Maggie

Announcements

#### Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

#### MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

#### ‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors