Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I seem to be having a problem creating expressions on a fairly complex (to me) set analysis. Here is the basic scenario:
We stock parts (PARTNO) both on site and off site (SITE). Our historical data goes back 3+ years, and is categorized by ONE_YEAR, TWO_YEAR, and THREE_YEAR. A ‘delivery’ time is calculated based on the number of days that it takes for a part to be delivered from the time it was ordered (ORDNO, [ORDER DATE] and [END DATE]) from either ON-SITE or OFF-SITE. This is calculated as 1 day if the part is delivered the same day, 2 days if the part is delivered the day after the order, and so forth – TRR_DAYS shows this number.
What we need QlikView to do is calculate a 90th percentile of the TRR_DAYS for a given PARTNO, round up to the next whole number, and then select either the matching TRR_DAYS or if a matching TRR_DAYS doesn’t exist, the next larger one that does (limited to 99).
The results that we get are all over the map. It comes down to basically 4 problems:
I have included a stripped down QVW named AppToSend.qvw where the bookmark called “25 Items” matches the errors highlighted with red text on the Main tab of the attached Excel document (AnswersForPosting.xls). The Excel spreadsheet also demonstrates how we calculate the correct answer, and what the correct answer should be. I included tabs for the first couple PARTNOs, both ON-SITE and OFF-SITE (correct or incorrect) as well as for every other calculation that is wrong. Any correct calculation over 99 (as shown in Correct OFF and Correct ON columns) can be ignored as we will wrap working code with an IF statement to check for values over 99 and treat accordingly. Incorrect calculations that come up with an answer of 99 or greater need to calculate the correct number.
Truly appreciate any help/ideas you can give me.
Found this posting http://community.qlik.com/thread/68656 which helped immensely - problem solved.
Not that I am impatient, but see lots of views and no comments. Hopefully it is because all you great folks are diligently researching the issue and will have lots of good advice for me soon.
Thanks.
Found this posting http://community.qlik.com/thread/68656 which helped immensely - problem solved.