Solved

multiple formats in Cross-tab Crystal reports 2008

Posted on 2013-11-04
5
411 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 100

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 100

Accepted Solution

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

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

mlmcc
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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. …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

11 Experts available now in Live!

Get 1:1 Help Now