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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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