Solved

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

Posted on 2013-06-20
4
462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

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 101

Expert Comment

by:mlmcc
ID: 39264557
Easier would have been

datetimetoseconds({EntriesExits.Time}) \ 3600

Or

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

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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