Skip to main content
Marco Solis (Brand ID) 님이 #Data Management에 질문했습니다
Hi All,

 

I'm having a hard time figuring out what's triggering a Syntax Error on this Flow Formula (Number).

 

My goal is to only count weekdays

between the Start and the End dates

  • {!debugVar_EndDate} & {!debugVar_StartDate} are both Date variables

IF(

((5 * (FLOOR(({!debugVar_EndDate} - DATE(1900, 1, 8)) / 7 )) + MIN(5, MOD({!debugVar_EndDate} - DATE(1900, 1, 8), 7)))

-

(5 * (FLOOR(({!debugVar_StartDate} - DATE(1900, 1, 8)) / 7 )) + MIN(5, MOD({!debugVar_StartDate} - DATE(1900, 1, 8), 7 )))) + 1,

8

)

 

 
답변 1개
  1. 2020년 2월 18일 오후 11:02

    Try this:

    (5 * ( FLOOR( ( {!debugVar_EndDate} - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( {!debugVar_EndDate} - DATE( 1900, 1, 8), 7 ) ) )

    -

    (5 * ( FLOOR( ( {!debugVar_StartDate} - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( {!debugVar_StartDate} - DATE( 1900, 1, 8), 7 ) ) )

     

     
0/9000