Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
veeayyell
New Member

calculate total average per hour

Hey!

 

I have a goal of showing average completed chats by hour interval and am needing help with some type of average formula that will not only work for each row, but the overall column total. My current formula yields the correct average figures for all rows and avg total of each day of week, EXCEPT the overall total for AM/PM. 

Ideally for the A.M. portion, it should be averaging together (20+21+18)/3, which is 20. Right now it's showing overall average of 10.

 

Current formula

Avg Chat Per Hour = AVERAGEX('Chat Queue',
DISTINCTCOUNT('Chat Queue'[Chat Name Request])/
(COUNT(CalendarTable[Day of Week])*DISTINCTCOUNT('Chat Queue'[Hour Timekey])))
 
veeayyell_1-1694206690298.png

 

Thank you in advance for the help 

1 REPLY 1
tamerj1
Super User
Super User

Hi @veeayyell 

please try

Avg Chat Per Hour =
AVERAGEX (
VALUES ( 'Chat Queue'[Time] ),
CALCULATE (
AVERAGEX (
'Chat Queue',
DISTINCTCOUNT ( 'Chat Queue'[Chat Name Request] )
/ (
COUNT ( CalendarTable[Day of Week] )
* DISTINCTCOUNT ( 'Chat Queue'[Hour Timekey] )
)
)
)
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.