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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
inglexjc
Helper V
Helper V

Average Time is adding to together instead of showing average for time frame.

I have a report that get's added to daily from our phones reports. The data comes in as an excel spreadsheet for the day before.  The data then goes into our Power BI dashboard.  The report shows the Average Queue Time for EACH call type.  When I go day by day the average shows correctly.  But if I want to know the average queue time for dates 9/3/2024 to 9/30/2024 the dashboard shows Average of 6:01:01 when the actual average for that time frame is 00:01:01

 

inglexjc_0-1728410276779.png

The data comes in as a decimal number and I've tried changing Summarization from "Sum" to "Average" and "Don't Summarize" but none of that fixes the Average showing.

inglexjc_1-1728410431873.png

I also need to keep the format in the dispaly as "HH:MM:SS".

1 ACCEPTED SOLUTION

lbendlin_0-1728571922985.png

 

lbendlin_1-1728572119343.png

 

This will fail if the average queue time ever goes over 24 hours.

 

View solution in original post

16 REPLIES 16
inglexjc
Helper V
Helper V

It looks like the Average is not working only for month of Sept.  October is working correctly.  Not sure what the issue is with Sept but I'm moving on since October is working corectly.

Thank you.

az38
Community Champion
Community Champion

hi @inglexjc 

I assume in this Top Ribbon you change default behaviour and not configured at the visual level 

Try to change it in Fields of Build Pane


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Since the card is using a measure to get the correct formating there is not an option to change the configuration:

inglexjc_0-1728575140156.png

 

Is the measure averaging? Show the DAX .

Yes.  

Average Queue Time = FORMAT(AVERAGE(Query4[Avg Queue Time]), "HH:MM:SS")

 

inglexjc_0-1728575656255.png

And after I changed it to what you advised "hh:nn:ss":

Average Queue Time = FORMAT(AVERAGE(Query4[Avg Queue Time]), "hh:nn:ss")
inglexjc_2-1728575735111.png

 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

@lbendlin 

The data comes in each day and builds up into a folder so Power BI accounts for each day:

inglexjc_0-1728492934778.png

In the screen shot originally you will see that the aveage queue time is showing as 6:01:01 and it should be 01:01.

Not what I see

lbendlin_0-1728567418522.png

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrAyACIzpVgdMNvYygiJbWgOYxtZGRjC2AZWhnC2oZWRqVJsLAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Avg Queue Time" = _t]),
    #"Changed Type" = List.Average(Table.TransformColumnTypes(Source,{{"Avg Queue Time", type duration}})[Avg Queue Time])
in
    #"Changed Type"

 

ok let me give you ALL the data that I'm using in my example.  Average should be  0:01:00 but PowerBI Card is showing Average Queue Time as 4:01:00.  It's adding 4 hours.

inglexjc_0-1728568991604.png

 

CSQ NameCalls PresentedCalls HandledCalls AbandonedPercent HandledAverage Handle TimeAverage Queue TimeMax Queue TimeAverage Abandoned TimeAvg Abandoned Per DayDate
HS_ChildSupport5852689.660:04:400:01:330:39:230:01:2739/4/2024
HS_ChildSupport4237588.10:04:260:00:330:04:230:00:362.59/5/2024
HS_ChildSupport67571085.070:04:090:01:180:07:590:01:2659/6/2024
HS_ChildSupport606001000:04:260:00:240:06:010:00:0009/9/2024
HS_ChildSupport535301000:04:560:00:230:02:550:00:0009/11/2024
HS_ChildSupport6462296.880:03:290:01:000:06:090:03:3619/12/2024
HS_ChildSupport5247590.380:04:420:01:090:07:010:02:082.59/13/2024
HS_ChildSupport6360395.240:04:200:00:470:09:060:02:051.59/16/2024
HS_ChildSupport4544197.780:04:200:00:430:06:070:00:500.59/17/2024
HS_ChildSupport4437784.090:05:180:00:510:06:510:00:543.59/18/2024
HS_ChildSupport4241197.620:04:110:01:030:08:160:01:390.59/19/2024
HS_ChildSupport3329487.880:05:180:01:310:07:010:02:3329/20/2024
HS_ChildSupport6356788.890:04:480:00:530:11:090:02:153.59/23/2024
HS_ChildSupport7869988.460:04:470:00:570:07:290:01:364.59/24/2024
HS_ChildSupport5550590.910:04:420:00:420:07:490:01:372.59/25/2024
HS_ChildSupport5754394.740:04:240:01:520:23:450:11:211.59/26/2024
HS_ChildSupport383801000:04:370:00:350:07:250:00:0009/27/2024
HS_ChildSupport6258493.550:04:330:01:410:10:450:01:1329/30/2024

lbendlin_0-1728571922985.png

 

lbendlin_1-1728572119343.png

 

This will fail if the average queue time ever goes over 24 hours.

 

I notice in your attachment power bi desktop that the data format for Avg Queue Time you are able to change format to "hh:nn:ss".  I don't have this option.  For my card I was already using the format measure to "HH:MM:SS" and that's how I'm able to get the correct format but it's not coming up with the right number. I also tried "hh:nn:ss" and I get the same result.

inglexjc_0-1728573253745.png

inglexjc_1-1728573425632.png

 

MM is for months, not for minutes.

I did try "hh:nn:ss" and it's still not right:

inglexjc_0-1728573759086.png

 

Are you averaging or summing?

The data comes in with the column averge queue time.  It automatically shows summaricaiton as SUM: 

inglexjc_0-1728574131605.png

 

 

When I change that to AVERAGE nothing changes:

inglexjc_1-1728574178493.png

 

 

I've also tried Don't summarize and nothing changes:

inglexjc_2-1728574226028.png

 

@lbendlin 

 

Here is the excel data that comes in based on the previous day calls:

                          
CSQ NameService Level (sec)Calls PresentedCalls HandledPercent HandledAvg Handle TimeMax Handle TimeCalls AbandonedPercent AbandonedAvg Abandoned TimeMax Abandoned TimeCalls DequeuedPercent DequeuedAvg Dequeued TimeMax Dequeued TimeAvg Speed of AnswerCalls Handled < Service LevelCalls Abandoned < Service LevelAvg Abandoned Per DayMax Abandoned Per DayCalls Handled by OtherAvg Queue TimeMax Queue Time   
HS_AAA516161000:02:140:13:04000:00:000:00:00000:00:000:00:000:00:061200000:00:060:00:25   
HS_AP_Support_Eng5715678.870:05:180:15:551521.130:02:180:07:53000:00:000:00:000:03:441727.51500:03:260:23:58   
HS_Adult_Protection551200:18:180:18:184800:01:280:05:52000:00:000:00:000:10:33032400:03:170:10:33   
HS_CCAP5262284.620:04:170:09:51415.380:07:530:14:46000:00:000:00:000:00:57002400:02:010:14:46   
HS_CMA_Eng511111000:03:000:11:47000:00:000:00:00000:00:000:00:000:00:11100000:00:110:00:30   
HS_ChildSupport5665989.390:05:320:12:04710.610:02:470:06:30000:00:000:00:000:01:15403.5700:01:250:06:30   

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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