Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Try
Date(floor(timestamp#(Date,'MM-DD-YYYY hh:mm:ss')),'YYYYMMDD') as YYYYMMDD
Try
Date(floor(timestamp#(Date,'MM-DD-YYYY hh:mm:ss')),'YYYYMMDD') as YYYYMMDD
how about time? i cant floor the time
timestamp(timestamp#(Date,'MM-DD-YYYY hh:mm:ss'),'hh:mm') as TIme,
It will aggregate at time level
Try this for Time
time(frac(timestamp(Date,'hh:mm:ss'))) as Time