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
Solved

pivot / cross tab in Crystal

Posted on 2009-05-13
7
473 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

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

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

790 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