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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using Start Date and End Date data in Qlikview

Hi all,

I would like to seek help on how to use data with Start Date and End Date in QlikView.

I have 3 staff: A, B, and C. A and B are seasoned staff, so their target is fixed for the whole month of April at 140, hence start date is 1st April and End Date is 30th April. However, C is new, and has a weekly target to follow as per the start and end dates for respective weeks.

    

Staff NameStart DateEnd DateTarget
A01/04/201630/04/2016140
B01/04/201630/04/2016140
C01/04/201607/04/2016120
C08/04/201614/04/2016125
C15/04/201621/04/2016130
C22/04/201628/04/2016135
C29/04/201630/04/2016140

QlikView captures their actual performance every day that they are working, example as per below. Is there any way i can feed the above target data into Qlikview to tag the respective targets to their daily performance? Ultimately, i want to calculate their % performance by taking the actual performance / target, in percentage, only for days that they are working and have actual performance stats.

The main problem i have is with C's moving weekly target. If i feed the above target into Qlikview, common linkage will be Staff Name.

   

DateStaff NameActual performance
01/04/2016A150
01/04/2016B160
02/04/2016A151
02/04/2016C171
03/04/2016B162
03/04/2016C172
04/04/2016A153
04/04/2016B163
05/04/2016A154
05/04/2016C174
06/04/2016B165
06/04/2016C175
07/04/2016A151
07/04/2016B161
07/04/2016C171
08/04/2016A150
08/04/2016B160
09/04/2016A150
09/04/2016C170
10/04/2016B160
10/04/2016C170
11/04/2016A150
11/04/2016B160
12/04/2016A150
12/04/2016C170
13/04/2016B160
13/04/2016C170
14/04/2016A150
14/04/2016B160
14/04/2016C170

Your advice would be greatly appreciated. Thank You.

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You should use an Intervalmatch. See IntervalMatch

HIC

View solution in original post

3 Replies
hic
Former Employee
Former Employee

You should use an Intervalmatch. See IntervalMatch

HIC

Not applicable
Author

Thanks Henric

I did encounter a popup saying i had a loop, but data set seems to be working for now.

hic
Former Employee
Former Employee

By the way - since you have [Staff Name] in both tables, you probably need a slightly more elaborate script to remove a circular reference. See Slowly Changing Dimensions and IntervalMatch and Slowly Changing Dimensions.

HIC