Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
hello,
I added this Measure in a Matrix, which calculates the transactions volume by hour:
"table1" has the percentage distribution of transactions by hour, as shown below:
hour % channel
1 1% Channel A
2 2% Channel B
3 8% Channel A
... .... ....
"table2" has the total volume of transactions for the day, by Channel:
day channel transaction_volume
feb 1 Channel A 100
feb 2 Channel B 40
... ....
The Matrix has 'Hours' in the columns and 'Channels' in the rows and for some reasons only either the rows subtotal or columns subtotal is showing correctly, but not both together. This is the Measure that I used in the Matrix to show results:
Hi there.
I'm not sure why you're using AVERAGE... I think this is not what you should do. Have a look at this model and the calculation. I think this might be what you really want...
https://1drv.ms/x/s!ApyQEauTSLtOgYJNmDbSzQj8jbcu-A?e=WgQjNU
Best
D
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
thanks @Anonymous , but unfortunately this won't work as I cannot have fields from different tables in the Summarize function.
@Anonymous...