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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
sam_rea_02
Frequent Visitor

How to sum a time in power bi?

Hi All,

 

Need your help guys, below is the data i have.

DATETimeCalls AnsweredAHT Sec
08/06/20238:0010:04:01
08/06/20238:0010:22:27
08/06/20239:0010:14:15
08/06/20239:3010:15:25
08/06/202312:0010:02:27
08/06/202312:3010:02:03

when i put it on pivot table here is the output for the  Sum of AHT

sam_rea_02_0-1688553676534.png

to get the AHT= AHT Sec/Calls Answered. I need to get the correct sum when putting it on power bi. I am struggling to resolve this computation on power bi.  Hope you can help

 

2 ACCEPTED SOLUTIONS
v-jianboli-msft
Community Support
Community Support

Hi @sam_rea_02 ,

 

Please try:

First create a new column:

vjianbolimsft_0-1688706930927.png

Then apply the measure:

Sum of AHT = TIME(HOUR(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])),MINUTE(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])),SECOND(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])))

Final output:

vjianbolimsft_1-1688706967859.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

sam_rea_02
Frequent Visitor

Thanks Jianbo for the help. It is a big help.

View solution in original post

3 REPLIES 3
sam_rea_02
Frequent Visitor

Thanks Jianbo for the help. It is a big help.

v-jianboli-msft
Community Support
Community Support

Hi @sam_rea_02 ,

 

Please try:

First create a new column:

vjianbolimsft_0-1688706930927.png

Then apply the measure:

Sum of AHT = TIME(HOUR(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])),MINUTE(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])),SECOND(SUM('Table'[AHT Sec])/SUM('Table'[Calls Answered])))

Final output:

vjianbolimsft_1-1688706967859.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sam_rea_02
Frequent Visitor

I need an output same as the pivot table when I create a matrix.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.