In my last post, Convert Original Date and Time to Valid Work Date and Time , I posted a how to change the date and time of a date-time field to a valid working date and time in Tableau. This was helpful for data that lands before and after work hours. Unfortunately, at that point if you used DATEDIFF() function in Tableau, the formula would still count the weekend days between the start date and end date.
So, doing some reseach I found this post by Ian Baldwin from 2017 How to Calculate Working Days between dates in Tableau. I tried it but it only worked for the first 8 days. After 8 days I would get a Float value instead of an Integer value (2.48005 and so on). Then, I went to Excel and started to run some numbers and analyzed how NETWORKDAYS() in Excel actually works. So what to do next?