Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
n1ef5ng1
Creator
Creator

why is the timestamp not aggregrate

Please see attached.

I have changed the timstamp in script to this

Date(timestamp#(Date,'MM-DD-YYYY hh:mm:ss'),'YYYYMMDD') as YYYYMMDD,

but when i try to create a pivot table with the calculation expression such as sum of sales etc.

the output is individual unique ID of identical YYYYMMDD where it is suppose to be aggregate

is there any step that i have missed.

thanks

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

Try

Date(floor(timestamp#(Date,'MM-DD-YYYY hh:mm:ss')),'YYYYMMDD') as YYYYMMDD

View solution in original post

4 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try

Date(floor(timestamp#(Date,'MM-DD-YYYY hh:mm:ss')),'YYYYMMDD') as YYYYMMDD

n1ef5ng1
Creator
Creator
Author

how about time? i cant floor the time

   timestamp(timestamp#(Date,'MM-DD-YYYY hh:mm:ss'),'hh:mm') as TIme,

shraddha_g
Partner - Master III
Partner - Master III

It will aggregate at time level

stabben23
Partner - Master
Partner - Master

Try this for Time

time(frac(timestamp(Date,'hh:mm:ss')))  as Time