Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate the difference between two dates and two hours excluding days/WE

Hi Microsoft community,

 

I am a beginner with Power BI (I usually use Excel only)

 

I need to calculate 2 things :

- The number of hours between 2 dates and times, excluding WE and holidays.

- The number of days between 2 dates, excluding WE and holidays

The format of the two dates are like this : 

Date d'envoi

    Date approbation

28/02/2020 15:36:38

    02/03/2020 10:56:55

02/03/2020 11:12:45

    02/03/2020 11:18:32

I need to do [Date approbation]-[Date d'envoi] excluding WE/holidays

I already have a table with the list of all the WE and holidays . 

 

Keep in mind that I am a beginner so if you have a simple solution, it will be great. I like to understand the solution and not only copy it.

 

Thank you very much !

 

Best regards,

Alex

 

2 Replies