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

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

IntervalTable() not working

I have a document that i want to track time parcels are received in quarterly bands, this is simple with power pivot but i have to do it in Qlikview. The issue is its not classifying one of the times its simply ignoring it, I have created a pie chart because i want to show it as a pie chart and clearly one of the slices is random i dont know where it came from. I have looked at the code and it seems its not classifying 08:30 for some reason here is the code and i have attached pictures. If there is a better way please advice me.

Performance:

Load * Inline [

MinTime, MaxTime, Performance

07:45, 08:15, Before 08:15

08:16, 08:30, 08:15 - 08:30

08:31, 08:45, 08:31 - 08:45

08:46, 09:00, 08:46 - 09:00

09:01, 12:00, Beyond 09:00

];

Directory;

LOAD OriginCity,

    ArrivalTime

FROM

(ooxml, embedded labels, table is Sheet1);

IntervalBridge:

IntervalMatch(ArrivalTime) LOAD MinTime, MaxTime

Resident Performance;

16 Replies
Anonymous
Not applicable
Author

Hi Swuehi,

Thank you for your reply first thing tanks for clarifying that. My view was not to count non key fields sins they may have null values but not ijn this case since they can not be null so that makes sense. thank you.

Second issue is the solution you gave me earlier in response to my original question did not work. I changed a few arrival times to be bang on the boundary and it gave me wrong chart as before, I changed  the following:

Birmingham to    08:30

Leeds to            08:30

Huddersfield to  08:46

Bolton              09:01

Hitchin              08:16

swuehl
MVP
MVP

Could you upload your current QVW and the input data source file (Excel)?

Anonymous
Not applicable
Author

OK i have attached the two files

Anonymous
Not applicable
Author

Hi SunnyT

I have discovered your solution works well with data loaded Inline. when i load the data from file with Arrival times which are right on the borderline like 08:46, 08:45, 08:16, It fails of which most data will be coming from file not inline. you can try it with the file attached.

swuehl
MVP
MVP

Seems to work applying the time#() interpretation also to the inline table values.

I assumed it's not necessary at this place, but I stand corrected.

swuehl
MVP
MVP

And if you are wondering why I seem to do unnecessary formatting and intepretations, have a look at

Correct Time Arithmetic | Qlikview Cookbook

Anonymous
Not applicable
Author

This has worked with all the possible selections I have marked it as the correct answer thank you and thanx for the link i will go through it