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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors