Solved

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

Posted on 2013-06-20
4
453 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
Comment Utility
Try this

Create a formula

Hour({YourDateField})

Use that for the columns

mlmcc
0
 

Author Comment

by:John-S Pretorius
Comment Utility
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
Comment Utility
Thank you !
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Easier would have been

datetimetoseconds({EntriesExits.Time}) \ 3600

Or

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

mlmcc
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now