Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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