Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Reports - Adding labels to Crosstab report

Posted on 2012-03-27
9
Medium Priority
?
447 Views
Last Modified: 2012-06-21
Hi,

I have a report with a crosstab on it, as attached below;

Basically, the crosstab is giving the area name, and the number of litres and the number of records for the date specified.

It looks like this at the moment:

                             2012/01/01
AreaName             123
                               221

Now, what I want, is to make it look like this:

                                  2012/01/01
AreaName                 Litres                   123
                                  No of Records      221

Any ideas on how I can add those labels in there?
PikOPS-Fuel-capture-Count-by-sum.rpt
0
Comment
Question by:Jasmin01
  • 4
  • 2
9 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 1000 total points
ID: 37770840
In the crosstab expert click 'Show Labels' in the Customize Style tab.
0
 

Author Comment

by:Jasmin01
ID: 37770883
Thanks.  But the fields are calculations, so, it's giving me a label of @CountFuelID.  Can I customise this label to something else?
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 1000 total points
ID: 37770908
Try this

Right click the label
Click FORMAT FIELD
Click the COMMON TAB
Click the FORMULA button to the right of DISPLAY STRING
Enter the text you want

mlmcc
0
[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

 

Author Comment

by:Jasmin01
ID: 37770988
But there is no option called "Display String" on the common tab.  When I right click on the field, the option is FORMAT TEXT, not Format Field.
0
 

Author Comment

by:Jasmin01
ID: 37771295
Ok, I seemed to get it working but right-clicking and selecting "Edit Text". Now, I need this to be exported to Excel, and look legible, but at the moment, it is creating rather large columns on Excel  See attached.  Can you help?
PikOPS-Fuel-capture-Count-by-sum.rpt
PikOPS-Fuel-capture-Count-by-sum.xls
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 37771658
WHat options did you choose when you exported?

Without saved data we really can't try ideas to see if they will work.

mlmcc
0
 

Author Comment

by:Jasmin01
ID: 37775261
I am exporting with :

Column width - Column width based on objects in the WHOLE REPORT
Show Gridlines

I have attached a report with data.
pikops-fuel-capture-count-by-sum.xls
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

926 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