Solved

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

Posted on 2013-06-20
4
459 Views
Last Modified: 2013-06-20
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)
0
Comment
Question by:John-S Pretorius
  • 2
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 300 total points
ID: 39264433
Try this

Create a formula

Hour({YourDateField})

Use that for the columns

mlmcc
0
 

Author Comment

by:John-S Pretorius
ID: 39264465
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
0
 

Author Closing Comment

by:John-S Pretorius
ID: 39264466
Thank you !
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39264557
Easier would have been

datetimetoseconds({EntriesExits.Time}) \ 3600

Or

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

mlmcc
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question