Forum Discussion
lucausa75
6 years agoFrequent Visitor
Error on SubTotal and GrandTotal calculation
Dear all, I have a table like this: and I would like to have a grouping like this: As you can the column called "UNIT_QTY" gets the correct values but the subtotal and the total are...
- 6 years ago
Hi,
Please try these measures:
UNIT_QTY = SUMX ( GROUPBY ( 'Table', 'Table'[CHANNEL], 'Table'[SERVICE], 'Table'[MODEL], 'Table'[CODE] ), CALCULATE ( AVERAGE ( 'Table'[QTY] ) ) )AVG PRICE = SUMX ( GROUPBY ( 'Table', 'Table'[CHANNEL], 'Table'[SERVICE], 'Table'[MODEL], 'Table'[CODE] ), CALCULATE ( AVERAGE ( 'Table'[PRICE] ) ) )The result shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto
v-gizhi-msft
Community Support
6 years agoHi,
It is related to the Excel version, please try to update your excel to the latest version.
Best Regards,
Giotto
lucausa75
6 years agoFrequent Visitor
@ v-gizhi-msft
I have Excel 2013; do I have to install 2016 version?
About GROUPBY function I have replaced the function GROUPBY with SUMMARIZE; is it the same?
It has the same effect on my report?
Thanks