Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter DatesBetween

Hey guys, I've apparently not found a similar post and kind of been banging my head against the wall about this.   What am I trying to accomplish? find out how many days a worker has been absent...
  • tex628's avatar
    6 years ago

    Hello,

    Generally when I have date intervals of any kind I always try to expand them:
    Starting table

    Add a column for the duration:
    [End]-[Start]

    Then add a list of dates dependant on the start end and duration:

    List.Dates([Start],[Duration]+1,#duration(1, 0, 0, 0))

     

    Expand the list and you have a row for each day of each interval:


    By taking this approach you should always get the exact number of days as each row can be individually counted! 

    Hope this helps!

    Br,
    J