Forum Discussion

Joshua_'s avatar
Joshua_
Helper II
4 years ago
Solved

Get days worked between two dates

Hi Guys, I need to add a column that shows me the working day of the month, but starting and ending on a specific date, for example started Jan 10 and ending Jan 25 I tried to create...
  • Joshua_'s avatar
    Joshua_
    4 years ago

    HI parry2k ,

    I created a second table containing the dates of the new table and connected it with my calendar table, then I got the business days (related function) and with the following formula I can do it.

    CALCULATE(
    SUM(CALENDARIO_CAMPANA[DIAS_HABILES]),
    FILTER(
    CALENDARIO_CAMPANA,
    CALENDARIO_CAMPANA[Date]<=EARLIER(CALENDARIO_CAMPANA[Date]) && CALENDARIO_CAMPANA[CAMPANA] = EARLIER(CALENDARIO_CAMPANA[CAMPANA])
    )
    )