Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to pass week date in graph

hi,

I have to calculate Inactive user weekly where i have to pass either some static dates or dynamic date how to do that? as well as how to find inactive user?

sample.

   

User NameUser TypeLast Logon Date
SMDAGENT_P91B25.09.2015
SAPSUPPORTS18.09.2014
AAHNAJA26.10.2015
AAKASHGA14.10.2015
AAKASHG2A21.10.2015
AAKRITIPA19.10.2015
AAKRITIVA23.10.2015
AALOKPRADEEYA16.10.2015
AAMERSA24.10.2015
AAMIRUDDINKA19.10.2015
AAMRAAA23.10.2015

static weekly date

   

WeekDate_Range_FromDate_Range_To
Week 109-09-201515/09/2015
Week 216/09/201523/09/2015
Week 324/09/201529/09/2015
Week 430/09/201510-06-2015
Week 510-07-2015

10-12-2015

how to give this static date in week.

4 Replies
sunny_talwar

May be use interval match to assign a week to each row in your first table above

fernando_tonial
Employee
Employee

Hi Priti,

You can try the function intervalmatch()

i.e.

Data:

LOAD * INLINE [

    User Name, User Type, Last Logon Date

    SMDAGENT_P91, B, 25/09/2015

    SAPSUPPORT, S, 18/09/2014

    AAHNAJ, A, 26/10/2015

    AAKASHG, A, 14/10/2015

    AAKASHG2, A, 21/10/2015

    AAKRITIP, A, 19/10/2015

    AAKRITIV, A, 23/10/2015

    AALOKPRADEEY, A, 16/10/2015

    AAMERS, A, 24/10/2015

    AAMIRUDDINK, A, 19/10/2015

    AAMRAA, A, 23/10/2015

];

Join (Data)

IntervalMatch ([Last Logon Date]) LOAD * INLINE [

    Date_Range_From, Date_Range_To

    09/09/2015, 15/09/2015

    16/09/2015, 23/09/2015

    24/09/2015, 29/09/2015

    30/09/2015, 10/06/2015

    10/07/2015, 10/12/2015

];

Left Join (Data)

LOAD * INLINE [

    Week, Date_Range_From, Date_Range_To

    Week 1, 09/09/2015, 15/09/2015

    Week 2, 16/09/2015, 23/09/2015

    Week 3, 24/09/2015, 29/09/2015

    Week 4, 30/09/2015, 10/06/2015

    Week 5, 10/07/2015, 10/12/2015

];

Don't worry, be Qlik.

Tonial.

Don't Worry, be Qlik.
boorgura
Specialist
Specialist

You can use intervalmatch() function here.

Static_range:

LOAD * Inline [

week, from_date, to_date

.....

...

...

];

FactData:

LOAD LastLogonDate,

............

..........

.

.............;

intervatmatch(LastLogonDate) LOAD from_date, to_date from Static_range;



--------------------------------------

Edit: Oopss! 2 replies by the time I composed my reply!

Not applicable
Author

sorry for not making myself clear but i want for example:- if 100 user are total user out of which 50 are loged in that week the 50% will be inactive user how to populate that chart