Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
shilina_klara
Contributor III
Contributor III

check the date in the period

Help, please, beginner!)Sorry for my English

I have a list of employees with their absence in the form:

BeginningExpiration
Employee 125.04.201725.04.2017
Employee 217.07.201730.07.2017
Employee 301.01.201531.12.2017
Employee 407.10.201608.01.2017
Employee 111.05.201717.05.2017

and there is a reference book with the beginning dates of the week and the names assigned to them, which are used as a sample, for example:

04/17/2017 W16

04/24/2017 W17

05/01/2017 W18

05/05/2017 W19

05/15/2017 W20

and by the choice of the name of the week (W17 for example), I need to count people in the graphs by the type of absence and by the months that this week is included in their period (Beginning-Expiration).

I would be very grateful!

11 Replies
shilina_klara
Contributor III
Contributor III
Author

Hello!

I can not give you the app, so I throw off the Excel file, where I tried to visually show what I need.

Thank you !

MarcoARaymundo
Creator III
Creator III

The kaushik.solanki gave you the tip..Try

CALENDAR:

LOAD * INLINE [

    WeekKey,StartDate,WeekID

    16,17/04/2017,W16

    17,24/04/2017,W17

    18,01/05/2017,W18

    19,05/05/2017,W19

    20,15/05/2017,W20

    21,22/05/2017,W21

    22,29/05/2017,W22

    23,05/06/2017,W23

    24,12/06/2017,W24

];

LOGIN:

LOAD

    //Week(Date(Date#(Begin, 'DD/MM/YYYY')))                        as WeekKey,

    Employee,

    Date(Date#(Begin, 'DD/MM/YYYY')) as Begin,

    Date(Date#(Expiration, 'DD/MM/YYYY')) as Expiration;

LOAD * INLINE [

    Employee,Begin,Expiration

    Employee1,17/04/2017,01/05/2017

    Employee2,17/04/2017,18/04/2017

    Employee3,01/05/2017,31/05/2017

    Employee4,05/05/2017,08/05/2017

    Employee1,15/05/2017,17/05/2017

];

IntervalMatch_Table:

IntervalMatch(StartDate)

LOAD

Begin,

Expiration

RESIDENT LOGIN;