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

x
?
Solved

multiple formats in Cross-tab Crystal reports 2008

Posted on 2013-11-04
5
Medium Priority
?
422 Views
Last Modified: 2014-01-06
I have yet to find the answer to this question so I will throw it out there.

I am working on a cross tab in Crystal the problem is that some of the numbers will be formatted as percents and some of the others will be in whole numbers or dollars. The problem is when I try to format based on the 'data' I want to change it changes all of the formats for all of the fields not just that 'column' The amount of columns is dynamic but I do have a field name so ideally if I can format 'if field name is avg products' leave alone, 'if field name is total loans' make dollar sign  and finally 'if field name penetration rate' format %.

hope this makes sense.
0
Comment
Question by:gilweber3
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 39621852
Have you looked at using the Grid Value Functions?

The CurrentColumnIndex returns the column number of the cell
GetIndexOf("FieldName","ColumnName  to Find")

mlmcc
0
 

Author Comment

by:gilweber3
ID: 39621863
I am assuming what this means is you put in a 'name of the field' it returns the index number( column number) based on that you run something like this:

f (CurrentColumnIndex  = 2) = 0 then
"%" else ""
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 39621888
Something more like

If (CurrentColumnIndex = GetIndexOf("ColumnField","Penetration Rate") then
    CStr(CurrentGridValue,2) & "%"
Else
    CStr(CurrentGridValue)

mlmcc
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

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. …
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

916 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