cancel
Showing results for
Did you mean:
Highlighted
Helper I

## HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Please advise how i can create a measure that when aggregated provide an average of the measure values in rows and the sum of measure values in columns.

I have attached the sample data in https://drive.google.com/file/d/1mnCIyomJ1vTUXn5ehtS5P_QkgdvFu9uW/view?usp=sharing

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Hi @jcatindoy ,

You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

Highlighted
Community Support

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Hi @jcatindoy ,

You could put below in new table to understand it(calculate avg value based on Country group), then use sumx function to get sum value

``SUMMARIZE('Table','Table'[Country], "avg",SUM('Table'[Wheel Count])/SUM('Table'[Month Active])``

Then you could use hasonevalue to re-define the grand total value.

Best Regards,
Zoe Zhi

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

4 REPLIES 4
Highlighted
Super User IX

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

@jcatindoy , Did not check the file.

Try like

sumx(summarize(Table,table[Column Col], "_1",[Avg Measure]))

Proud to be a Super User!

Highlighted
Community Support

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Hi @jcatindoy ,

You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

Highlighted
Helper I

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Hi Dax,

This is exactly what I need, thanks a lot.

I am trying to understand how you did it but do you mind explaining to me the concept of the measure so I can understand it easier. Thanks!

Highlighted
Community Support

## Re: HELP: MEASURE for AVE MEASURE ROWS and SUM of MEASURE COLUMNS

Hi @jcatindoy ,

You could put below in new table to understand it(calculate avg value based on Country group), then use sumx function to get sum value

``SUMMARIZE('Table','Table'[Country], "avg",SUM('Table'[Wheel Count])/SUM('Table'[Month Active])``

Then you could use hasonevalue to re-define the grand total value.

Best Regards,
Zoe Zhi

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

Announcements

#### August Community Highlights

Check out a full recap of the month!

#### August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

#### Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors