Conditionally Format Cross Tab Field

I have a cross tab report that I want to conditionally format text color if row# 5 meets my criteria. Below is the formula I am trying in the Format Field editor.
if {@Type} = "8=POH"
then crred
(I have also tried adding the else statement.....else crblack)
I get no results when I try this. I can change the text color via the formatting toolbar, but this changes all data in all 6-8 rows.
Is there another method to conditionally format the row, or is it just not possible?
Thanks

I just learned this yesterday, so here goes.
In the suppresion formula for the column total, enter the following expression:
numberVar x:=0;
False;
This is going to reset the row count for each column
Then in the suppression formula for the summary field, enter the following expression:
numberVar x := x + 1;
False;
And in the font color conditional formual, use the following expression:
numberVar X;
if (X = 5) and ({@Type} = "8=POH") then crRed else crNoColor;
This should give you a red 5th row if the type condition is met
Fuskie
Who cautions that he does not know what the {@Type} formula contains and that it might need to be modified to be used in this context...

Similar Messages

  • Error formatting Cross-Tab table

    Hello!
    My CR2008 reports include many cross-tab tables and till now, everything went smoothly.
    ...till I got the message "Error formatting Cross-Tab table" while viewing the print preview.
    Technically the error comes up while clicking one of the groups itemized on the left.
    The database hasn't changed. Besides it happened with two different reports associated with two different data bases.
    Any idea ?
    Any help would be appreciated as I've been lost for a while.
    Thib'

    Before I received your answer (thanks a million by the way), I have been installing/un-installing subreports in the main report 'til the 'Error formatting Cross-Tab table' stops.
    The Error stopped occurring when I added a small Group Footer in the subreport : apparently the Error had begun when I had put it to a zero-height.
    Having said that, an hour later and many changes here and there, I have just put a zero-height again and no Error anymore...
    > Check in the main report design tab to see if the width of the subreport fits within the page of the main report.
    > If it doesn't try shrinking the subreport to fit.
    Within 'an hour later and many changes here and there', I did the opposite : I widened a subreport which did not fit in the main report. And the Error isn't raised anymore.
    > What happens if you drill into the subreport?
    You mean if I double-click the subreport to edit it ?
    If that is your question, no Error has ever been raised in the subreport : always in the Preview tab of the Main Report.
    Sorry for describing such an irrational behavior.
    I will categorize my question as answered but if you have any idea, I'd be delighted : I feel like this can happen again and I'd be less under stress to know what detail/ 'parameter' makes CR raise this Error. But your hint about the subreport fitting or not within the main report might be a clue.
    Thank you again
    Thib'

  • Receiving an 'Error formatting cross-tab object' error when paging through preview

    I have a report with two subreports in the group footer.  One of the subreports contains a cross-tab report.  When I preview the report as a whole, occasionally I get an error formatting cross-tab object and then no more pages of the report are displayed.  If instead I choose to export the report to pdf, Crystal Reports crashes.  Any ideas on what might be causing these problems?

    Actually, you can search for them by entering the KBA number in the search box in the top right  corner of this web page. KBA 1214209 comes up fine. KBA 1212875 does not, but it's not really applicable.
    While we are at the search box, see if a search term like 'crystal cross tab' (or something like that) bring up other KBAs.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow us on Twitter

  • Conditional formating for calculated fields

    Hi,
    What i need to do is apply a diferent format for some itens on the reports.
    I have some fields that are calculated in the script logic, so in the excel report it is shown as any other field where you can type the value, but that value gets overiten once the script logic takes place.
    So what i need to do is add a new collum at the dimention for example "CALCULATED" and when it's set to Y the field would be shown in the form with a diferent formula.
    And further on, add automtic comment to that cell, showing how that field is calculated.
    Thanks in advance
    Leandro Brasil

    Hey all,
    the CALC property in BPC refers only to hierarchie nodes. If you wanna highlight calculated nodes, this will be the solution for you. But, if you wanna highlight values in your report, which are calculated by a script logic and which are not necessarily hierarchie nodes, you'll have to add another property different from CALC in your dimension and flag the calculated values.
    If you're done, you can refer to this property in your format range.
    Example:
    Dimension - Property - Value: ACCOUNT - SCRIPTCALC - 1
    Formatrange - Criteria: ACCOUNT.SCRIPTCALC = 1
    Have a nice day!
    Karsten

  • Format Cross tab not working in JDev 10.1.2.2.0.1929 - BIBeans:10122

    We recently upgraded JDev from 10121_1913 to 10.1.2.2.0.1929
    and Bi beans from: 10121 to 10122
    All the features are working fine, however I'm not able to use the "Format Crosstab" button on my Crosstab Presentations.( It works on the Graph presentations)
    When I click the format Crosstab button, nothing comes-up, but I get a null pointer exception in the Dos window.
    Mon Feb 19 16:09:38 CST 2007 In DefaultBuilderDialog::runDialog null
    java.lang.NullPointerException
    at oracle.dss.addins.editor.presentation.GridViewOptionsTool$1.getPreferredSize(GridViewOptionsTool.java:53)
    at java.awt.Window.pack(Window.java:438)
    at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
    at oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog(DefaultBuilder Dialog.java:524)
    at oracle.dss.addins.common.wizard.AbstractBuilderDialog.runDialog(AbstractBuilderDialog.java:275)
    at oracle.dss.datautil.gui.DefaultBuilderDialog.run(DefaultBuilderDialog.java:495)
    at oracle.dss.addins.editor.presentation.GridViewOptionsTool.runTool(GridViewOptionsTool.java:76)
    at oracle.dss.addins.editor.presentation.PresentationToolbarButton.actionPerformed(PresentationToolbarButton.java:69)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
    31)

    Opened SR with oracle. This has been identified as a bug - 5910576
    However if anyone needs a quick fix, you may want to contact oracle & get the 2 class files & update your biaddins.jar

  • Help on conditionally Formatting Field in a Cross Tab

    Hi all,
    I like to conditionally format a number field in a cross tab, ie. on a certain column the number should show 2 decimal places, otherwise no decimal places.  I have tried a formula in the Decimals of the Format Field, If {Command.COL_TITLE}= "G"
    Then
    2
    else
    0.
    Column G is the one that is to display the number in 2 decimal places.  The formula runs, but it never  {Command.COL_TITLE}= "G" is never true, ever.  COL_TITLE is the columns of the Cross Tab.
    Any ideas ?
    Thanks
    Austin

    Austin,
    If you are trying to format a column then try using the GridRowColumn function.
    In the Customize Style tab highlight the column field and check what the alias for formula is. Then format the decimal places for the summarized field with a formula similar to the following;
    If  GridRowColumn("Alias for formula value") = "G" then 2 else 0

  • 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

  • How to perform sorting in a Cross-Tab report?

    Hi,
    Please advice, how sorting can be done in Crosstab report.

    Hi Sriram
    Using the group option you can get the ascending or descending sort order however if your requirement is other than that, you can use a specified order as below:
    To create a specified order for the column or row headings in the crosstab complete the following steps:
    1. Right click the cross tab to select it and from the fly out menu select 'Format Cross-tab'.
    2. In the 'Format Cross-tab' dialog box, select the field that you would like to change the order of. In this example, it is{Customer.Country}.
    3. Click the 'Group Options' button from the right side of the 'Format Cross-tab' dialog box.
    4. Select 'Specified Order' from the drop down list box on the 'Common' tab. This takes you to the 'Specified Order' tab.
    5. From the drop down list box on this tab, select the field values in the order you would like them to appear on the cross-tab.
    You can specify the conditions as per your requirement there.
    Hope this helps!!
    Regards
    Sourashree

  • AR Invoice Conditional Formatting

    Hello
    I've done some customizing of our AR invoice, which includes some conditional formatting on several fields. If it’s a credit note change the colour of a border & font and hide some details. The report works fine if I run the report for one invoice/credit note. Unfortunately, when I run the report for a range of invoices e.g. inv nums 1000 - 1020, (which can contain a mixture of credit notes and invoices), only one field does the conditional formatting.
    The field that keeps the format is a Formula column in the inv header fixed frame (above it are 2 repeating frames) If contents of field = CREDIT NOTE then change font colour.
    The fields that won't do the conditional formatting are in the margin (page footer on the invoice). The field I use for the test is the same as the test used in the header. I’ve had several error messages, the most common being ‘…wrong frequency…’ I’ve tried putting the value in a Summary and Placeholder columns and I’ve tried adding these columns to the query in the data model. In fact I’ve tried that many things I can’t remember what I’ve tried.
    To complicate matters all the fields in the margin are either Placeholder, Summery of Formula columns. None of which holds anything that I can do a test on (They are either address/account or payment details etc).
    Any help would be greatly appreciated as I can’t afford to loose anymore hair.
    Cheers
    Mike

    Hi Mark
    I think its solved. I've extended the header frame as far as I can and placed some of the footer info in the header. I've ran a couple of tests, so far things are looking good. Format is working and feilds stay where I want them. Unfortunately it means me extending other frames to allow me to extend the header frame to the bottom of the page etc as well as moving all the stuff from the margin, but I suppose thats what I get paid for.
    Thanks for your help.
    Mike

  • Apply conditional formatting for a textbox in a matrix that contains an expression

    I have a matrix that contains one row, and one of the columns in this row (a field ) contains an expression. I know this field is "Textbox24" but anyway, I have created a placeholder for this field and in Placeholder Properties I have given the
    label "PD". Note that the Value in this placeholder shows "Expr" because it contains an expression.
    I don't think this is relevant, but just in case, the expression is:
    =Code.GetPercentageDifferenceBetweenCurrentAndPreviousValue()
    where GetPercentageDifferenceBetweenCurrentAndPreviousValue is custom code for the report which returns a decimal value. This works correctly in Preview mode.
    I now want to apply conditional formatting on this field so the colour of the font changes depending on the value of the expression. I clicked on the text box of that field, and in Properties > Color > Expression > I entered
    =IIF(Fields!PD.Value >= 50,"Green","Black")
    When I go to Preview mode I get the error "The Color expression for the text box 'Textbox24' refers to the field 'PD'. Report item expression can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
    data set."
    I have tried a couple of other forms of the sytax for Fields!PD.Value but it doesn't work. Is my problem a syntax problem or a scope problem, and how do I solve it?
    Thank you

    From your description, PD is not a field so you cannot reference it as a field. You can do what you want by referring to the textbox:
    =IIf(ReportItems!Textbox24.Value >= 50."Green","Black")
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Can we apply sorting on Column values in Cross tab??

    Can we apply sorting on Column values in Cross tab??
    Following is the scenario with me.
    I have 2 fields and one formula.
    Fields are HostName and Username.
    Formula is status which categorizes the Authorized and Unauthorized events.
    And in the Summary Field, I am calculating the total number of events.
    In cross tab, Fields are marking the Rows of the cross tab and Formula is making the Columns(Authorized and Unauthorized ) of the cross tab.
    Since in cross tab data is grouped from left to right and sorted by default. I want to remove this default sorting and want to put sorting on the formula for Unauthorized events.
    Is there any way to fulfill this requirement?

    Hi,
    You can assign a number to each Unauthorised field e.g
    Rank   Unauthorised
    1         A
    2         BC
    3         DF
    5         TD
    6         GF
    Then add "Rank" to the crostab Columns before the Unauthorised  field. Then you can control the sorting order on your crosstab.
    Hope this helps
    Regards
    Dotun

  • Format Fields in Cross Tab and Calculated Members

    Hello:
    I have a cross Tab with a calculated member, I need to display one decimal or no decimal in some of the columns so I created a formula in the Display String option like this:
    if GridRowColumnValue ("@TestID_desc")= "ALK mg/L
    then
      Cstr(CurrentFieldValue, "0")
    else
      Cstr(CurrentFieldValue, "0.0")
    But, after I saved the formula the value in the calculated member colums disappears. Any ideas? Thank You in advance!

    right click on calculated field and go to format field and in number tab select customize button and write the condition for decimals.
    regards,
    Raghavendra

  • 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.

  • Cross-Tab Conditional Formatting

    Hello Everyone
    I have a question, I am working with on a cross-tab table version 2008 that requires a dollar symbol in some of the columns, but not all of them. I tried to fix this problem with a conditional formula, but for those columns that are calculated members, it does not work. Any ideas? Your help will be greatly appreciated.

    In Format Field -> Common there is a formula called Display String.  Use this to output the exact string that you want to display in the report.  Perhaps something like (basic syntax):
    if GridRowColumnValue("Group 1") = "Sales" then
      formula = "$" + cstr({CurrentFieldValue, "0.00")
    else
      formula = cstr(CurrentFieldValue, "0")
    end if
    which will show something like $123.45 in the Sales column, or 123 in the Qty column...
    HTH,
    Carl

  • 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>

Maybe you are looking for

  • Palm Treo calendar has stopped syncing with iCal

    I have a Palm Treo 650 and an Intel iMac runing OS X 10.4.11. I've had both for a few years, and I've always been able to sync them with no problems using the iSync conduit when doing a Hot Sync from the Palm. But suddenly I'm finding that, while it

  • Problems transfering iTunes Media folder from one external HDD to another.

    Hey Yinz. I'm running a MBP 13" 2.7Ghz Intel Core i7...OS X 10.6.8.  Recently the NAS that hosted my iTunes Media folder and library failed.  I recovered the drive from the NAS...a WD Caviar (WD2500JS), which was originally written in XFS.  After sub

  • Computer constantly asks for authorization after migration to new mac when trying to sync ipod?

    I've recently migrated to a new MacbookPro running Lion, from a Macbook running Leopard. My iTunes account and computer, though authorized, will not sync to my ipod, saying it will delete 15 or more files purchased through itunes as the computer is n

  • [SOLVED]MPD Update

    I've installed mpd and everything works great as far as I can tell. It runs without error, and such but I am having problems with the update feature. I have mu music library stored on my mac partition. I created a symbolic link to my folder called Mu

  • Jar Class-Path attribute configuration problems

    java version 1.5.0_14 OS: Windows Server 2003 Problem description: Executable jar file needs to access external jar file resources on the same server that executable jar file resides. Scenario: Executable jar file resides in a directory called c:\Jav