• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Network Days Calculation for Power Bi

Hi All,

I have to calculate only working days, excluding Saturday and Sunday. i have created a Calander with shift timings and worked on DAX, but the issues is below mentioned columns are Text format. will some one help on same.

Rec Date= "02/28/2023 9:53 PM"
Comp Date= "02/29/2023 9:53 PM"

Code:
ProcessTime =
var _Start = 'Gobal_Master_Data_EU (3)'[Received_Date]
var _End = 'Gobal_Master_Data_EU (3)'[Completed_Date]
Return SUMX(
    CALCULATETABLE(
        Calendar_Table,
        DATESBETWEEN(Calendar_Table[Date],_Start,_End),
        Calendar_Table[workday]=1
    ),
    MAX(MIN(Calendar_Table[TimeEnd],_End) - MAX(Calendar_Table[TimeStart],_Start),0)*24
)


83640

Thanks
Jawahar
 
Back
Top