Solved

pivot / cross tab in Crystal

Posted on 2009-05-13
7
471 Views
Last Modified: 2012-05-06
Hi I have an issue Im not sure is possible to resolve..

Im trying to cross tab a field that crystal wont let me cross tab because its a memo or text field.. it doesnt even give me the option to do it..

So Im wondering if there is a work around  out there...

Heres how my data looks (date and observation values)

   7/31/2007
hgb        23
car       155
tar       44.5
comment - this was a weird day

   6/3/2008
hgb        24
car       156
tar       44.6
comment - this was a weirder day

   8/31/2009
hgb        25
car       157
tar       44.7
comment - this was a crazier day

they want it like this

   7/31/2007                                          6/3/2008                     8/31/2009
hgb        23                                             data  blah                    data blah blah blah
car       155
tar       44.5
comment - this was a weird day

Again crystal wont pivot because its a memo field (the observations) but I was thinking of doing sub reports stacked horizontally across  for each date.. I just dont know how to bucket the dates ascending across the page

is this possible? I would/could limit it to the latest 5 records??

open to suggestions.. will clarify if needed as well of course.
thanks!



0
Comment
Question by:shockacon
  • 4
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 24379815
You coud group on the date field thus using the group header for the date information and put the subreports in the group footer linked on date.

mlmcc
0
 

Author Comment

by:shockacon
ID: 24379967
ok i think I understand where your going with this.. could you expand please?

Im already grouping by date... just put the sub reports in the footer?
will this break it out by each date associated with each record set?
do I do one sub report for each possible date set? it could be one or up to ten...
also do I link each sub together or to the main report(which btw is a subreport in itself)?

sorry for 50 questions here.. and thanks! :)
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24380521
Link the subreport to the main report on the date field
Right click the subreport
Click CHANGE SUBREPORT LINKS
Choose the date field from the upper left box
Choose the datefield from the lower left box
Make sure the SELECT REORDS IN SUBREPORT option is checked

Crystal does not support second level subreports

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:shockacon
ID: 24380622
I already HAVE the data in the report.. its not a question bringing the data in.. its displaying it in a pivot format...

any ideas?
0
 

Author Comment

by:shockacon
ID: 24380624
by date. like in the example above.
0
 
LVL 34

Expert Comment

by:James0628
ID: 24391888
If the problem is simply that you can't use a memo field in your cross-tab, try simply putting the memo field in a formula and see if you can use the formula in your cross-tab.  I've found that when CR would not let me do something with a memo field, like group on it, all I had to do was put the field in a formula and I could use the formula instead.  I don't know if I've done that specifically with a cross-tab, but it works for other things, like grouping.

 James
0
 

Accepted Solution

by:
shockacon earned 0 total points
ID: 24403791
I actually figured this one out.. I used the crosstab and put the value in a selected "mode".. it defaults to count but all you do is change it. works great! thanks to all tho.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

27 Experts available now in Live!

Get 1:1 Help Now