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: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Time intervals in front end

Hei.

I need some help because I am struggling with this issue for a while.

I do have a data table like:

Screenshot_1.jpg

The expression is like this:

Screenshot_3.jpg

I would like to group by the results according to City. The result should be divided into hours.

My result that I wish to accomplish is like this:

Screenshot_2.jpg

If that's possible would like to get the output in front end.

Could anybody help my out?

Thank you!

1 Solution

Accepted Solutions
sunny_talwar

Does this look right?

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

Does this look right?

Capture.PNG

sunny_talwar

Slight improvement of code here:

LOAD ID,

    Date2,

    Time2,

    Date1,

    Time1,

    City

FROM

[test (2).xlsx]

(ooxml, embedded labels, table is Sheet1);

Time:

LOAD Interval(TimeStamp(MakeDate(Year(Today(1)), Month(Today(1)), Day(Today(1)) + Floor(RecNo()/24)) + MakeTime(Mod(RecNo(), 24))) - Today(1)) as Time

AutoGenerate 30;


Capture.PNG

MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

Looks perfect!

Thank you a lot.

sunny_talwar

No problem at all