Forum Discussion
Matrix Table: Average in Row and Sum in Column Header
- 5 years ago
Hi Anonymous,
Create a measure as below;
Measure = IF(ISINSCOPE('Table'[Date]),'Table'[M_SUMOEE],SUMX(VALUES('Table'[Machine]),'Table'[M_SUMOEE]))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous
Please check this link
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
You want Sum and then avg of Sum, in the able link expert has provided the solution for Avg and then sum of Avg. So you can change the logic accordingly.
Please let me know if this helps.
- Anonymous5 years agoNot applicable
Hi mhossain,
I'm not sure how this will solve my problem. How do I get the value only into the Row Header per Group?
Regards
Michael
- mhossain5 years agoSolution Sage
Anonymous
Suggestion was to calculate your Sum in the calculated column, so you have sum value for Day/Night etc level, now you create just one measure with Avergage aggregation, and in matrix table, subtotal will show Avg, and for Day/Night Avg will be individual numbers which is sum in your calculated column. Hope this makes sense.
It could have been easier with sample dummy pbix.
- Anonymous5 years agoNot applicable
The pbix unfortunately contains sensitive data. Is there any way to alter the data in Power BI? Otherwise, I have to alter the data in the datasource and then import it to Power BI.
Regards
Michael