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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Challenge to find total and avg time

Dear Experts,

 

Kindly help me to find the total and avg time for each engineer against the tickerts raised in a day.Also need to find the total working hours  in day against the std working of 9 hrs.

 

DateEngineer NameUser NameReported IssuesTime Taken to resolve the issue minutes
25-Nov-20Eng 1Usr 1Issue A20
25-Nov-20Eng 1Usr 2Issue B5
25-Nov-20Eng 1Usr 3Issue C60
26-Nov-20Eng 1Usr 1Issue A5
27-Nov-20Eng 1Usr 2Issue C15
25-Nov-20Eng 2Usr 1Issue A15
25-Nov-20Eng 2Usr 2Issue B20
25-Nov-20Eng 2Usr 3Issue C20
26-Nov-20Eng 2Usr 1Issue A10
27-Nov-20Eng 3Usr 2Issue C10
25-Nov-20Eng 3Usr 1Issue A10
25-Nov-20Eng 3Usr 2Issue B10
25-Nov-20Eng 3Usr 3Issue C5
26-Nov-20Eng 3Usr 1Issue A10
27-Nov-20Eng 3Usr 2Issue C10
25-Nov-20Eng 4Usr 1Issue A45
25-Nov-20Eng 4Usr 2Issue B20
25-Nov-20Eng 4Usr 3Issue C20
26-Nov-20Eng 4Usr 1Issue A10
27-Nov-20Eng 4Usr 2Issue C10
25-Nov-20Eng 5Usr 1Issue A45
25-Nov-20Eng 5Usr 2Issue B20
25-Nov-20Eng 5Usr 3Issue C20
26-Nov-20Eng 5Usr 1Issue A20
27-Nov-20Eng 5Usr 2Issue C20
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Is not

AverageTable[Time Taken to resolve])

 

and

Sum(Table[Time Taken to resolve])

 

should help

 

what is expected output

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous,

 

Try measures as:

Total hours = 
CALCULATE(
    SUM('Table'[Time Taken to resolve the issue minutes])/60,
    FILTER(
        ALL('Table'),
        'Table'[Engineer Name]=MAX('Table'[Engineer Name])
    )
) 
Average hours = 
CALCULATE(
    AVERAGE('Table'[Time Taken to resolve the issue minutes])/60,
    FILTER(
        ALL('Table'),
        'Table'[Engineer Name]=MAX('Table'[Engineer Name]) 
    )
) 

Here is the output:

v-xulin-mstf_0-1614586779350.png

Here is the demo, please try it.

 

Best Regards,

Link

 

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

 

amitchandak
Super User
Super User

@Anonymous , Is not

AverageTable[Time Taken to resolve])

 

and

Sum(Table[Time Taken to resolve])

 

should help

 

what is expected output

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak ,

 

Yes i have done it.However i need this time(mins) to be convereted in hrs.From this hrs i need to understand total hrs of each engineer in month & date against the standard working hrs of 9hrs /day.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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