cancel
Showing results for
Did you mean:
Frequent Visitor

## Help Required calculating duration

Hello Team,

I need your help in the below scenario

i want to calculate the duration column where it shows the number of hours and minutes taken to resolved the call excluding weekends (Created on from Resolved on columns). If you look at the second row it has calculated correctly in Network duration 0.09 minutes but row one is taking 3 days but my network duration is showing 23:00.

Below is the formula, i have used for network duration:

Network Duration = NETWORKDAYS(Data[Created on],Data[Resolved on],1)-1-MOD(Data[Created on],1)+MOD(Data[Resolved on],1)

1 ACCEPTED SOLUTION
Solution Sage

@jainparag i think you forgot second max date in table name.i highlight that you miss out in code.
MM = ABS(DATEDIFF( MAX( 'Data'[Created on]), MAX(Data[Resolved on] ),MINUTE))Data
[Resolved on]

@jainparag If this post helps, then please consider Accept it as the solution and give Kudo to help the other members find it more quickly.
thank you!

3 REPLIES 3
Solution Sage

@jainparag i think you forgot second max date in table name.i highlight that you miss out in code.
MM = ABS(DATEDIFF( MAX( 'Data'[Created on]), MAX(Data[Resolved on] ),MINUTE))Data
[Resolved on]

@jainparag If this post helps, then please consider Accept it as the solution and give Kudo to help the other members find it more quickly.
thank you!

Solution Sage

hi @jainparag you want to two date minute or day?

Frequent Visitor

Thanks Mahesh,

As per you, i am trying the below code:

MM = ABS(DATEDIFF( MAX( 'Data'[Created on]), MAX([Resolved on] ),MINUTE))

Announcements

#### Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

#### Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors