Forum Discussion
Measure Subtotals in Matrix not working for both Rows and Columns
hi Anonymous ,
The Total calculation does precisely what you asked it to do, namely calculate the average for the day.
What you actually want to see, if I am not mistaken, is the sum of the hourly averages. In order to calculate this you need to calculate the hourly values again and then sum them into the required total.
Something like (depends also in the relations present):
SUMX(
summarize('table2',
table2[Channel],
table1[Hour],
"Monthly AVG",monthlyAverages
),
[Monthly AVG])
replace sumx(AverageTotal,[Monthly AVG]) with the above code snippet
Jan
if this is a solution for you, don't forget to mark it as such. thanks
- Anonymous6 years agoNot applicable
thanks Anonymous , but unfortunately this won't work as I cannot have fields from different tables in the Summarize function.
Anonymous...
- Anonymous6 years agoNot applicableAnonymous, please download the Excel file and open the PowerPivot model. You'll then see how it's structured and the measure you want.
Best
D