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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kag
New Member

Conditional Calculation for Date Difference

Hi All,

 

I have a set of data that looks like the below

Start DateEnd DateStatusTATSLA [2 Days]
03-04-2022  5:40AM05-04-2022  3:40AMSuccess1 Day 22 hoursCompleted
03-04-2022  5:40AM Customer 1 Day 9 Hours
03-04-2022  5:40AM Reviewer 1 Day 3 Hours

 

I am trying to calculate SLA and TAT here.

TAT is the Duration of days between End date and Start date excluding weekends.

The request should be completed within 2 days of Start Date excluding weekends and the SLA calculation should pause whenever the status says "Customer" and resume when the Status becomes "Reviewer".

 

Can someone help me with this please? I am very new to Power BI, thanks in advance!

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @kag ,

 

For the TAT column, you could refer to this post:

Solved: Re: Difference of dates in days by excluding weeke... - Microsoft Power BI Community

 

 

 

For the SLA [2 Days] column, I still wonder how this number of days and hours is calculated, "completed" is because the Status column is "Success", right?

vstephenmsft_1-1649299761671.png

 

 

Best Regards,

Stephen Tao

 

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors