Forum Discussion
Anonymous
4 years agoNot applicable
GROUPBY + ALLEXCEPT functions
Hello, I have this table from which I want to get the average qty per order. 1) I have this measure to help me achieve it. Measure = Var Group_1= GROUPBY( 'Table', 'Table'[Month], ...
- 4 years ago
I think something simpler might work. Is this what you're after?
Measure = VAR Group_1 = GROUPBY ( 'Table', 'Table'[Order], "Sum", SUMX ( CURRENTGROUP (), 'Table'[Qté] ) ) RETURN AVERAGEX ( Group_1, [Sum] )
v-henryk-mstf
4 years agoCommunity Support
Hi Anonymous ,
I tested the solution provided by AlexisOlson and was able to get the correct result.
If the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.