Link to home
Start Free TrialLog in
Avatar of John-S Pretorius
John-S PretoriusFlag for United States of America

asked on

CrossTab 'In last week' only needs to show 24 Hrs.

I am using 'In Last full week Parameters', and then have my data {datetime} Grouped Hourly. The weekdays are rows and the Hourly 0-24 are columns but I am having trouble to only show 24 * hourly columns - Instead I see 0-24 Hrs for each day as my columns. (lots of columns)
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John-S Pretorius

ASKER

Gosh - That's awesome - Thank you,

This is what I ended up doing : but your way is best :)

if datetimetoseconds({EntriesExits.Time}) < 3600 then '0:00' else if  // 00:00

 (datetimetoseconds({EntriesExits.Time}) >= 3600 and
  datetimetoseconds({EntriesExits.Time}) < 7200 ) then '1:00' else if // 01:00

 (datetimetoseconds({EntriesExits.Time}) >= 7200 and
  datetimetoseconds({EntriesExits.Time}) < 10800 ) then '2:00'else if // 02:00

(datetimetoseconds({EntriesExits.Time}) >= 10800 and
  datetimetoseconds({EntriesExits.Time}) < 14400 ) then '3:00'else if // 03:00
Thank you !
Avatar of Mike McCracken
Mike McCracken

Easier would have been

datetimetoseconds({EntriesExits.Time}) \ 3600

Or

Truncate(datetimetoseconds({EntriesExits.Time}) \ 3600)

mlmcc