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
Anonymous
Not applicable

Average Handling Time without 0's

I need an average handling time. So I have done a new column with the total-time column divide 86400 and put the format as time.

sophiel_0-1656058078381.png

 

       

sophiel_1-1656058078385.png

Handle Time Minutes = DIVIDE('8x8'[total-time],86400)

 

I then created a new measure to figure out the average but it is including 0’s. How can I filter this to not include when the total time is 0 or the Handle Time Minutes is 0.

Handle Time Average = FORMAT(AVERAGE('8x8'[Handle Time Minutes]),"HH:MM:SS")

 

Is this the best way to do this? As if I put the average time in a matrix then it won't let me conditional format it if it is under KPI.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try this formula.

Handle Time Average =
FORMAT (
    AVERAGEX (
        FILTER ( ALLSELECTED ( '8x8' ), [Handle Time Minutes] <> 0 ),
        '8x8'[Handle Time Minutes]
    ),
    "HH:MM:SS"
)

 

Best Regards,

Jay 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try this formula.

Handle Time Average =
FORMAT (
    AVERAGEX (
        FILTER ( ALLSELECTED ( '8x8' ), [Handle Time Minutes] <> 0 ),
        '8x8'[Handle Time Minutes]
    ),
    "HH:MM:SS"
)

 

Best Regards,

Jay 

Anonymous
Not applicable

@Anonymous , try this measure:

Handle Time Average (Excl zero) =
   FORMAT(
      CALCULATE(
         AVERAGE('8x8'[Handle Time Minutes]),
         '8x8'[Handle Time Minutes] <> 0 
       ),
       "HH:MM:SS"
    )
amitchandak
Super User
Super User

@Anonymous , the Best is to do Avg and then format, what you have done, unless you have some issue

Handle Time Average = FORMAT(AVERAGE('8x8'[Handle Time Minutes]),"HH:MM:SS")

 

in case the format does not work you can manually create

 

var _1 = AVERAGE('8x8'[Handle Time Minutes])

return

Quotient(mod([_1],86400),60) &":" & mod([Total duration ],60) &":00" 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors