Forum Discussion

puru85's avatar
puru85
Helper II
2 years ago
Solved

Workday calculation

Hi Experts, I have requirement to calculate workday per month.  The Logic for workday calculation is: Number of days per month minus public holidays, Saturdays, and Wednesdays. If a public hol...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    Hi puru85 
    Modify the formula of column isworkday to :

    Not work day =
     
     IF('MasterCalendar'[Date] IN VALUES('Public Holiday'[Date]) && MasterCalendar[Weekday Number] =4,2,
     IF('MasterCalendar'[Date] IN VALUES('Public Holiday'[Date]) ||  MasterCalendar[Weekday Number] =7 ||  MasterCalendar[Weekday Number] =4,1,0
     ))

    Result :

    modified pbix is attached

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