Conditional format in cross tab

Post Author: RobotSlave
CA Forum: Charts and Graphs
Hello All
Crystal 2008 12.0.0.549
I have a crosstab report in that repeats in each GF1 that displays values for several variables over an eleven month span, for instance a shortened data set might look like this:
                       FEB     MAR      APR       MAY ....
Claims             1233     876         666         888  ....
sold                 987       987         7 7         8 888  ...
etc...
I want to display conditional formatting such that if a value in the claims row is over 800, make the font RED for that column only. When I use a conditional formatting formula in the format editor font dialog, it makes the whole row red, when the values clearly do not all meet the required "800". I have experimented with making certain my value is a number and not a string, and I'm stymied. Does anyone have any input?

Post Author: rsvn
CA Forum: Charts and Graphs
use formula field. Write your condition in that formula field and in select the display string option of the column in the report.Make the display string output as the output of formula field.for eg. @formula -
  Formula Field if e>800 then   conditionelse    condition; Number -
column in field. Display string option (at the bottom of the field format object --general tab) map the output of the formula field

Similar Messages

  • Conditional Format in Cross-Tabs

    Hello,
    i have a problem with conditional formatting in cross-tabs(Word-Template-Builder)
    My Cross-Tab looks like:
    +++++++++++++++++++ColumnHeader1
    +++++++++++++++++++ColumnHeader2
    +++++++++++++++++++ColumnHeader3
    RowHeader 1 | Row Header 2 | Data
    First Problem: If "Row Header 2" has a certain value, the whole row should have a different background-color or borderthickness should be different
    -i tryed it at "Row Header 2" with +<?if@row:...?><?attribute@incontext:background-color;'lightgrey'?><?end if?>+ but this will only effect the background-color of "RowHeader 1" and outside of the cross-tab. Formatting font-style works fine with this solution.
    Second Problem: Similar to first problem. If "ColumnHeader3" has a certain value, the whole column should have a different background-color or borderthickness.
    -i tryed it at "Column Header 3" with +<?if:...?><?attribute@block:background-color;'lightgray'?><?end if?>+ but this will only effect the background-color of "ColumnHeader 3".
    In case i have to do the conditional formatting at cell ("Data"), how can i address the fields "columnHeader3"/"RowHeader 2" in the if-clause?
    Thanking you in anticipation.

    drop me mail to MY id in Profile Location, with template and xml.
    i can help.

  • Conditional Formating Issue - Cross Tab

    Hi all,
    I'm trying to create a cross tab with some conditional formating of background colour..
    eg
    i have a background formula of:
    if {@concat} like "*1" then crGreen else
    if {@concat} like "*2" then crYellow else
    if {@concat} like "*3" then crRed
    my cross tab looks like:
                             Subject
    Name           {max of concat}
    But when previewed its not displaying colours correctly eg:
                              Art        English       Maths
    Joe Blogs           ??1           ??2           ??3
    Art result should be highlighted GREEN
    English result should be highlighted YELLOW
    Maths result should be highlighted RED
    Instead every subject result is GREEN?  Has anyone seen this before?  Have any ideas to resolve ?
    Thanks Again,
    Slash

    ABSOLUTE GENIUS.  Works like a charm!!
    Many Thanks,
    Slash.

  • PeopleSoft XMLP : Conditional Formatting for Cross tab report

    I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
    Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
    any help ot suggestion ?
    Report layout(table) in .rtf format
    H GDESCR*E* Total (Header Row)
    GXLATLONGNAME G999*E* 999*E*
    CTotal G999*E* 999

    <?xml version="1.0" ?>
    - <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="2">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="3">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="4">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="5">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="6">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="7">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="8">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="9">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="10">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    </query>

  • Help with formatting for Cross Tab Report Crystal 2008

    This is probably a simple question.  I have a cross tab report that displays sales by month for a period of 6 months.  These sales columns are formatted to be numbers with no decimals.  In addition to these columns, I have inserted columns that display the percentage up/down in sales over the previous month.  If I try to format the percentage columns, it changes every column to then display "##,##.##%" when I need to keep the sales columns at "##,###" with no decimal or percentage sign.
    1.  Is there a way to change the formatting of some of the columns but not all in a cross tab report?
    2.  If not, can I add a function that would change these in the calculation formula of the calculated member? 
    I tried to add "%" but it wants it to return a number.
    Here is the current code:
    //The calculation formula is used in place of the summaries in Calculated Members.
    // This calculation formula must return a/an Number value.
    If GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex) = 0 then 0 else
    ((GridValueAt (CurrentRowIndex,CurrentColumnIndex-1,CurrentSummaryIndex) -
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) /
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) * 100
    Any help is appreciated. 
    Thank you,
    Tobi

    Carl,
    Thank you for your help.  I did try your method but still couldn't get it to ignore the fact that it wanted a number.  I changed my approach a litte and managed to solve the problem.  Here is the method that I chose which managed to solve the problem.  If this is a poor way to solve it, please let me know as I am always open for new ways.
    Format Field > Number Tab > Customize > Currency  Symbol Tab
    Checked Enable Currency Symbol Fixed, changed  currency symbol to %.  This is the same thing that I did before which changes it for all columns. 
    Beside Enable Currency checkbox, I added this formula:
    // This conditional formatting formula must return one of the following Currency Symbol Constants:
    // crNoCurrencySymbol
    // crFixedCurrencySymbol
    // crFloatingCurrencySymbol
    If GridRowColumnValue("InvoiceLine.TxnDate") = Date(0,0,0) then
        crFixedCurrencySymbol  
    else
        crNoCurrencySymbol
    My added columns have a null date field so they take the currency format.  My other columns do not so they do not take the formatting.
    Thanks again for the help.
    Tobi
    Edited by: Tobi@TABeverage on Dec 2, 2009 3:58 PM

  • Conditional highlighting on cross-tabs

    Does anyone know if it is possible to conditionally highlight a field in cross-tab based on another field in the table? The field we&#39;re using to condition is not in the cross-tab, nor do we want it to be in the cross-tab. We need to highlight a report field based on another field from each record reported. Highlight expert won&#39;t let you highlight the field unless the field is in the cross-tab.

    yes it is possible
    Select the field from Cross Tab which you want to Highlight Right Click Select the Format Field
    Select the Font TabÂ
    Select the formula button next to color
    Then enter the formula
    IF field not in cross tab = somevalue then
    mention the Color Code which you want....
    Thanks
    Rahul

  • Error formatting in Cross tab Object

    Hi  All
    I'm using Crystal XiR2. I have a cross tab in my subreport.
    when I run the report, in preview and try to move from one to next page it is throwing an error "Error formatting Cross tab Object".
    Greatly appreciated for your prompt reply.
    Thanks
    -Kumar

    Hi Kumar
    Please search for the below kbase notes
    1.1212875 - "Error formatting crosstab object" received when previewing a Report
    2.1214209 - Err Msg: "Error formatting crosstab object"
    Please let us know if your issue does not get resolved with these resolutions.
    Hope this helps!!!
    Regards
    Sourashree

  • Data Format in Cross Tab and Parameter window about numeric and date

    Hello,
    I got a problem to show Year 2008 as 2,008.00, it's rediculous...
    My PC and Notebook both show "2008",  but my three co-workers' PCs all show "2,008.00"
    the group field is:      CStr(Year({SJ_Inv;1.TaxDate}))+ '  Sales Analysis'
    How to convert such a numeric into text without decimal?  CStr looks not workable.
    also,
    the numeric var in parameter window, sometimes I don't want it to show up comma and decimal, how to format it?
    And, the datetime var in parameter window from store procedure,  can it be a "Date" without Time for user to entry only?
    I will be very appreciate for your helping.
    ~Michelle

    Hi, Raghavendra,
    The reason to use stored procedure is to save server room -- limited data for output; this is why we declare variable in Store procedure, and got problem there -- datetime but not date.
    On the other hand, if we declare variable in Crystal report, it's allowed date type, but how to defaut the Date-from as 1st day of current month, and Date-to as Today in Crystal Report parameter setup ??  And then how to pass the parameter to store procedure to limit the data output volume?
    (I am also trying to get this done in Store procedure right now..)
    The pros and cons exist in Store procedure and Crystal report, which is better is not definite!
    Best regards,

  • Formatting a cross tab report

    Post Author: gronkette
    CA Forum: General
    I have a simple crosstab report column A + column B = column C (total). Rows 1 - 24 and a total
    1  4276  5553  9829
    2  4132  5383  9514
    3 etc.....
    I would like the maximum value in each column to be highlighted in Yellow.....
    thanks
    I'm using CRXI Rel2

    You can do that in single table itself , as one of our friend mentioned above, still you want to do it in multiple table.
    You can change the line spacing from single line spacing between the table to exact and can give 1pt
    try this. otherwise
    send me your xml data and template to,
    fusionDOTobject AT gmailDOTcom
    i will have glance at it,and see if i can help.

  • Cross tab formatting issue

    Post Author: forumguy
    CA Forum: General
    Hi Guys,
    I am using crystal 10. The cross tab is in the group.
    It was giving me a blank page in the middle of the report. So, unchecked the "Keep together" in the section expert in the group. And the Blank page was gone. But now with "Keep together option" unchecked, it gives error " Error formatting the cross tab" after one particular page.
    Is there any other way to remove that blank page ?
    Appreciate ur comments.
    Thanks

    Create a manual crosstab report

  • Cross Tab Size and Formatting

    Good Day To All,
    I have 3 Cross tab that fit perfectly on one page, but when it was created the user used an incorrect field as its columns.
    When I change the column field to the correct field the Cross-Tab increases in size shifting the last cross tab to another page.
    How can I keep the original size. I've tried To lock position and size but that does not work. I also tried using format painter but that only works on fonts size. I am unable to re-size the cross tab in design mode. Any suggestions would be appreciated.
    Regards,
    David

    hi David,
    unfortunately there are no properties in a cross-tab to keep it the same overall width if the number of column instances changes. the Size and Position dialogues for Width and Horizontal Position (X) also do not apply to cross-tabs.
    the only thing that you can do is to decrease the width of the column cell and if the output no longer fits in the width of the cell then you'll also need to decrease the font size.
    there is another workaround by limiting the number of records returned to a group. please see my blog post here in particular the section "Formatting a Cross-tab to Have N Rows & M Columns".  this is not an easy task either as the data coming in must be a precise match for the number of rows X the number columns that are required. this is explained further in the blog.
    -jamie

  • Conditional Format in crosstab report

    Hello All,
    Is it possible to do a condditional format in cross tab report.It works for a table but not crosstab report.
    Basically my report is like this
    Day1 Day2 Day3 ......Day 31
    Jan 10 20 -1 60
    Feb -1 45 78 -1
    Mar 23 -1 12 12
    Dec -1 23 67 78
    I want to put in red all those negative values or put some text.If insert conditional format,it applies only for the first month,it does not apply for other months.
    Is conditional format not possible in crosstab report?
    Thanks

    Hope the following helps...
    I tested using sample xml
    <ROWSET>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Jan</MONTH>
    <VAL>8</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Jan</MONTH>
    <VAL>128</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Jan</MONTH>
    <VAL>88</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Jan</MONTH>
    <VAL>-8</VAL>
    </ROW>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Feb</MONTH>
    <VAL>12</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Feb</MONTH>
    <VAL>0</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Feb</MONTH>
    <VAL>-88</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Feb</MONTH>
    <VAL>-11</VAL>
    </ROW>
    <ROW>
    <DAY>Day 1</DAY>
    <MONTH>Mar</MONTH>
    <VAL>-20</VAL>
    </ROW>
    <ROW>
    <DAY>Day 2</DAY>
    <MONTH>Mar</MONTH>
    <VAL>12</VAL>
    </ROW>
    <ROW>
    <DAY>Day 3</DAY>
    <MONTH>Mar</MONTH>
    <VAL>99</VAL>
    </ROW>
    <ROW>
    <DAY>Day 4</DAY>
    <MONTH>Mar</MONTH>
    <VAL>32</VAL>
    </ROW>
    </ROWSET>Crosstab structure...
    (1,1)<?horizontal-break-table:1?>
    (1,2)<?for-each-group@column:ROW;./DAY?><?DAY?><?end for-each-group?>
    (2,1)<?for-each-group:ROW;./MONTH?><?variable@incontext:G1;current-group()?><?MONTH?>
    (2,2)<?for-each-group@cell://ROW;./DAY?><?if:($G1[(./DAY=current()/DAY)]/VAL)<0?><?attribute@incontext:background-color;'Red'?><?end if?><?($G1[(./DAY=current()/DAY)]/VAL)?><?end for-each-group?><?end for-each-group?>In the IF statement either you can format the color or put some text..

  • Cross tab in Crystal report

    Hi There
    I need to create 3 cross tabs in one crystal report with different condition, how i can do that?
    for example, in one cross tab, i  only want to show last year's information, in another one, i want to show this year's information
    is there a way i can add some condition with the cross tab?
    thanks

    I think what Ian means is....
    Right now you have you cross tab set this way..
                           2008         2009
    Location1         
    Location2
    Location3
    He wants you to switch rows to cloumns and make the Year your first Group.
    Then you'll have
                     Location1       Location2          Location3
    2008
    2009
    This way all your locations show up in your cross-tab.
    Hope this makes sense....

  • How to design customize Cross tab in Crystal 9

    hi guys,
                i'm having a big problem in designing this format in cross tab, coz it causes a lot of space that i wouldnt need in displaying the report in my application here's i want to show on my report,
    this is just a sample data, but this is supposed the designed, or the output in crystal cross tab
                                        SM                           gl orieta                        buyer            and soon.....   
                             sales     TX    PX      sales      TX     PX          sales   TX    PX
    Mar-1 Mon        1000      1        1       200        2         3            400     4      5
    Mar-2 Tue           200      10      11     300        4         8             220    5      8
    Mar-31 Sun
    Running Total     1200                           500                               620
    Discount              200                            300                               400
    Net sales            2000                           3000                             5000
    Quota                 100000                        1200000                      250000
    TX                        11                                   6                                9   
    PX                         12                                   11                            13
    the upper is the name of the stores which supposed to be dynamic, each store have 3 column which are the sales,TX and PX, on the left side is date which is my parameter is filtering sales by date, under the last date of the month is the running total followed by discount, net sales and soon.. Now my problem is how i'm going to design it in cross tab format in crystal report 9..any suggestion or other way to do it...

    Please re-post if this is still an issue

  • Help with Cross-tab

    Hello everyone...
    Here is some quick background info on my project:
    1) I am attempting to write a Crystal Report (version 10) to automatically capture crime statistics for a previous time period based on a current time period entered into the Crystal Report parameter. The current date range to automatically be captured is the previous seven weeks. For example, if a user enters the date range of June 15, 2008 - August 2, 2008, the Crystal Report will automatically gather data for the two date ranges of April 27, 2008 - June 14, 2008 (the previous date range) and June 15, 2008 - August 2, 2008 (the current date range). The purpose of this is to automatically gather crime statistics for two equal date ranges to compare crime rates.
    2) I have been able to successfully construct a formula to gather the previous date range.
    3) I have constructed a cross-tab but I am having difficulties formatting the cross-tab to display data as I desire.
    With the background of my project now described I will move into the main problem I am experiencing. I am able to display the data for all the necessary weeks in the cross-tab; using the same date range above I am able to show data for the fourteen weeks of April 27, 2008 - August 2, 2008. However, I wish to have a single cross-tab display the grand totals for just the previous date range while having weekly totals and a grand total for the current date range.
    Using the same date ranges above as an example, the date range of April 27, 2008 - June 14, 2008 will show just the grand totals for all seven weeks of that period. Conversely, I would like to have the date range of June 15, 2008 - August 2, 2008 show weekly totals as well as grand totals for all seven weeks of that period.
    I would like to keep all this data in a single cross-tab due to having to put the data in another crime analysis report.
    Any help you can provide is most appreciated...let me know if I can provide further info. Just so you know I am a bit of a beginner when it comes to Crystal Reports.

    Hello, you might try this:
    1) Create a formula field in your details section with this:
    Whileprintingrecords;
    If (table.date >= "start date of your pre-date range" and
    table.date <= "end date of your pre-date range") then 'Pre-Date'
    else
    if (table.date >= "your 1st week start" and table.date <= "your 1st week end") then 'Week 1'
    else (if table.date >= "your 2nd week start" and table.date <= "your 2nd week end") then 'Week 2'
    else .... for the 7 weeks you want a separate column.
    2) create the cross-tab and put the formula field as the column.
    3) I believe if you right-click on the total field to the far right and "Format Field" you can use the "Display String" option to delete the sum of the previous week's from the CurrentFieldValue and use the TOTEXT() function to display it. This will only display the sum of your current 7 weeks.
    You may want to go change the "Group Options" for the column to Sort in "Specified Order" and create named groups for each of your column headings. I can explain how you would do this if you need it.

Maybe you are looking for

  • Desktop Pictures missing in preferences but not in Library...

    When I go to change my desktop picture in system preferences and I click on a folder (like "nature" or "abstract"), the pics in that category do not appear and the preview screen stays blank. I checked and the files are still under Library->Desktop P

  • How to display a report in a container

    Hello All, There are 2 scenarios:- 1) On left side navigation panel, I have a tree control. On double click on a node of a tree, I want to display a "report output" on the right panel. I have created the left panel and right panel by splitting the ma

  • ITunes (AppleTV) TV Show Episode Sort Order

    I have purchased Dr Who Season 6 but it comes in two parts. Part One and Part Two. When these settle into iTunes in the TV series section they combine into one season but the sort (play) order is wrong. When viewing from within iTunes or through Appl

  • How can I combine itunes libraries for a shared music setup?

    I wanted multiple users on my computer to share the same itunes music folder and library. I put an itunes folder (with an itunes music folder and library data file inside the itunes folder) into the computer's shared folder. I set each users preferen

  • BAPI DimAs problem

    You have to excuse my question if this is a simple problem but I'm just getting into BAPIs. I have been tasked with creating an application that will create goods movements in SAP through watching a database table.  That in and of itself isn't that b