Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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]))
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |