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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Taking count in hourly basis

HI

i need to generate a table as i have shown in the image i need to break down the hours of the day from 00.00 hr - 24.00 how can i do this.. help in this would be really appreciated..Untitled1.png

i need to show the particular counts according to each hour plz some one help me out in this .

thank you in advance

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Something like =time(class(aggr(frac(YourTimeField),YourTimeField),1/24))  as your dimension should give you those hourly buckets I believe.

View solution in original post

4 Replies
Not applicable
Author

Is there anyway you could share your qvw? It is difficult to help without understanding your underlying data and how you are implementing this in your solution.

Not applicable
Author

Something like =time(class(aggr(frac(YourTimeField),YourTimeField),1/24))  as your dimension should give you those hourly buckets I believe.

eduardo_sommer
Partner - Specialist
Partner - Specialist

If you create a field from the original datetime using the hour function, as in

     Hour(DateTime) as Hour

this field will have a number from 0 to 23.

Create an inline table as in

HourTable:

Load Hour,

     Hour&':00 - ' & Hour+1 & ':00' as HourInterval

inline [

Hour

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

];

Now you have the data associated with the Hour Interval you need.

Eduardo

Not applicable
Author

Christian this actually worked but isn't there any of displayin the hours as 00.00- 01.00 , 01.00-02.00 etc ?? as its shown in the above table ??