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
EloiseJane
Frequent Visitor

date/time difference

Hi all

 

I am trying to work out the working day/time difference to establish the case length. ideally discounting non work days/hours.

 

This are the 2 fields i have, and a date table.

EloiseJane_2-1673950404388.png

Any help will be great.

Thanks

 

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

Hi @EloiseJane ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1674115514885.png

(2) We can create a calculated column.

Working Days = NETWORKDAYS('Table'[Created Date], 'Table'[Resolved Date], 1)

(3) Then the result is as follows.

vtangjiemsft_1-1674115550944.png

Please refer to the following documents for more information.

Calculating Work Days in Power BI with DAX NETWORKDAYS Function (mssqltips.com)

Working Days Calculator in Power BI (mssqltips.com)

Calculate Workdays Between Two Dates in Power BI (enterprisedna.co)

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @EloiseJane ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1674115514885.png

(2) We can create a calculated column.

Working Days = NETWORKDAYS('Table'[Created Date], 'Table'[Resolved Date], 1)

(3) Then the result is as follows.

vtangjiemsft_1-1674115550944.png

Please refer to the following documents for more information.

Calculating Work Days in Power BI with DAX NETWORKDAYS Function (mssqltips.com)

Working Days Calculator in Power BI (mssqltips.com)

Calculate Workdays Between Two Dates in Power BI (enterprisedna.co)

 

Best Regards,

Neeko Tang

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

tamerj1
Super User
Super User

Hi @EloiseJane 
What are the working hours? What are the non work days? Do you have a holiday table? Please share the same sample data as copy/paste.

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