Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sjhussain
Partner - Creator II
Partner - Creator II

Pivot Table is not showing Total Sum for each Date

Hello,

Am having problem showing sum of each date in Pivot Table.  I have a log date which is YYYYMMDDHHmmss and have converted it into MM/DD/YYYY hh:mm:ss and MM/DD/YYYY.  In the pivot table i want to show sum of each column (moving in sec., idle in sec., Eng ON in Sec. etc) for each Date (MM/DD/YYYY).  For some reason when I display it in the Pivot table it show single Date multiple times.

log_datetime_date.jpg

So in my case it should show the following:

1/18/2015 - sum of moving  / sum of idle etc.

1/21/2015 - sum of moving  / sum of idle etc.

1/22/2015 - sum of moving  / sum of idle etc.

1/26/2015 - sum of moving  / sum of idle etc.

etc. etc

Properties of the Pivot Table is as follows:

log_datetime_date_properties_dimension.jpg

Will appreciate if someone can assist.

Thanks a lot.

1 Solution

Accepted Solutions
sjhussain
Partner - Creator II
Partner - Creator II
Author

I found the solution in the following discussion:

____________________________________________________________________

QV don't group the dimension date in pivot table

  

Hi,

formatting your DateTime field is not enough. You need to take out the time portion of the field otherwise Qlikview will still group the Pivot Table by the individual distinct times within the given date. You can remove the timestamp and only keep the date by using the floor function.

Floor([Your DateTimeField])

________________________________________________________________________

I changed the Date to Date(Floor(log_dateindata_dt))

log_datetime_date_solution.jpg

Now it is working perfect.

View solution in original post

1 Reply
sjhussain
Partner - Creator II
Partner - Creator II
Author

I found the solution in the following discussion:

____________________________________________________________________

QV don't group the dimension date in pivot table

  

Hi,

formatting your DateTime field is not enough. You need to take out the time portion of the field otherwise Qlikview will still group the Pivot Table by the individual distinct times within the given date. You can remove the timestamp and only keep the date by using the floor function.

Floor([Your DateTimeField])

________________________________________________________________________

I changed the Date to Date(Floor(log_dateindata_dt))

log_datetime_date_solution.jpg

Now it is working perfect.