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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
dubya
Regular Visitor

Best way to Sum, not count or first/last duration of each queue time in a PowerBI Matrix Visual?

Hello, 

 

I am attempting to replace Cells B2 and B6 with the sum of the below durations, the Matrix seems to give Count or First/Last options. 

 

 Capture.JPG

 

Thank you!

1 ACCEPTED SOLUTION
v-denglli-msft
Community Support
Community Support

 Hi @dubya ,

You can create a measure to sum the duration of each queue.

Below is the data table.

vdengllimsft_0-1728969713007.png

The measure is as follows.

First Duration = SUM('Table'[Time])

 
The final result is as follows, hopefully it will fulfill your needs.

vdengllimsft_1-1728969827520.png


Please see the attached pbix for reference.

Best Regards,
Dengliang 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

8 REPLIES 8
audreygerred
Super User
Super User

Hello! First, change your column to Time. This is the key to being able to create a measure to sum them. Once you change your column to Time type you can create a measure of Total Time = SUM('YourTable'[Time])





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you for your response, I should have added the duration column is a text type as I am using a formula to derive that time value from a decimal. 

 

Are you able to assist further? 

Hi, yes, you need to change the field to Time type. With text you can only do first, last, count...

In the data pane, go to your Time field and click on it... then go to the Column Tools ribbon at the top and change Text to Time in Data type.

audreygerred_0-1729000794264.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





v-denglli-msft
Community Support
Community Support

 Hi @dubya ,

You can create a measure to sum the duration of each queue.

Below is the data table.

vdengllimsft_0-1728969713007.png

The measure is as follows.

First Duration = SUM('Table'[Time])

 
The final result is as follows, hopefully it will fulfill your needs.

vdengllimsft_1-1728969827520.png


Please see the attached pbix for reference.

Best Regards,
Dengliang Li

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

Thank you for your response, I should have added the duration column is a text type as I am using a formula to derive that time value from a decimal. 

 

Are you able to assist further? 

Hi @dubya ,

May I ask if you have gotten this issue resolved?

 If it is solved, please mark the helpful reply or share your solution and accept it as solution.


If not resolved, please provide sample data. We can better understand the problem and help you. 

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.

 

Best Regards,
Dengliang Li

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

MattAllington
Community Champion
Community Champion

What is the data format of the column?  Sounds like it is text. Change it to time



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thank you for your response, I should have added the duration column is a text type as I am using a formula to derive that time value from a decimal. 

 

Are you able to assist further? 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.