Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
dax
Community Support
Community Support

Hi @Anonymous , 

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

dax
Community Support
Community Support

Hi @Anonymous , 

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
dax
Community Support
Community Support

Hi @Anonymous , 

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.

Anonymous
Not applicable

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!

dax
Community Support
Community Support

Hi @Anonymous , 

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.

amitchandak
Super User
Super User

@Anonymous , Did not check the file.

Try like

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.