cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
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.

 

Thanks in advance for your help. 

 

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
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.

View solution in original post

Highlighted
Community Support
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])

 812.PNG

 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.

View solution in original post

4 REPLIES 4
Highlighted
Super User IX
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]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
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.

View solution in original post

Highlighted
Helper I
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
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])

 812.PNG

 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.

View solution in original post

Helpful resources

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 Kudoed Authors