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.
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
Solved! Go to Solution.
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.
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])
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.
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!
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])
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.
@Anonymous , Did not check the file.
Try like
sumx(summarize(Table,table[Column Col], "_1",[Avg Measure]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |