Crosstab Conditional Formatting

I am not sure if this is the correct location for this question, so I apologize in advance.
I am using a trial of crystal reports to see if it will work for our ad hoc reporting needs - I am creating cross-tab report with activities across the top and groupings down the left. From the database, I pull each activity, its group and the color I am trying to code the background.
The formula I am trying to use is:
IF {Tasks.Cell Color} = "Green" Then
    crGreen
ELSE
    crWhite
This turns all of the cells green, not just the cells associated with the group and activity.
Any help would be greatly appreciated.
Thanks,
Chris

hi Chris,
in order to access the color field values which change on a grid cell to grid cell basis, you need to add the cell color field to the grid.
if you are trying to color a summary field, then put the color field in the Summarized Fields dialogue and change the Summary type to Maximum. you can later suppress it and then shrink the vertical size to as small as possible.
now you have access to that color value in your cross-tab. if you want to change the summary that you already had in the cross-tab, you can go to the background formula again and change the formula to something like
IF GridValueAt (currentrowindex, currentcolumnindex, currentsummaryindex+1) = "Green"
THEN
   crGreen
ELSE
    crWhite

Similar Messages

  • CrossTab Conditional Format

    Hello All!
    Hoping you can help me out
    I'm trying to figure out if it's possible to set a baseline condition for the beginning (Jan).  Example 75.  Then for each following month the crosstab would read the previous month and highlight the cell red or green depending it the month was lower or higher than the previous month.
    Example Jan would be set to 75 (baseline) and would be red if it didn't meet that.  Then the follow months would be red or green if it was higher or lower than the previous month. So I need it to be dynamic (to be able to read the previous value).
    Name
    Jan
    Feb
    March
    Joe
    50
    90
    95
    Bob
    20
    60
    50
    Cindy
    80
    75
    77
    Is it possible to do this type of conditional formatting in a cross tab?  I really hope you guys can help me out.  Also I'm using CR 2008.
    Thank you!

    Hi Cj,
    Here's what you need to do:
    Right-click the summary field > Format Field > Font tab >  Click the formula button beside 'Color' and use this code:
    If CurrentColumnIndex = 1 then
        if CurrentFieldValue <= 75 then crRed else crGreen
    else
        If CurrentFieldValue > GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) then crGreen else crRed
    -Abhilash

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

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

  • How to set a Conditional Format in a Crosstab

    Hello,
    I think I have a straight forward problem, but after reading the instructions I can't seem to make this work.
    I am using BI 10.1.3.4.1
    I have a crosstab that I have build as an RTF template that looks like the following
    name
    rolename, priv name, priv desc muser
    The report puts a 1, 2 or 3 value in muser. If it is a 1 or 2 I want the cell to be green if it is a 3 I want it to be Yellow
    Here is my conditional format that I am trying to make work for just the 1's
    <?if:MUSER=1?>
    <xsl:attribute
    xdofo:ctx="block" name="background-color">green</xsl:attribute>
    <?end if?>
    It doesnt seem to work. To make matters worse is NULLs out the value in Excel
    What am I doing wrong?

    Hi,
    I too use a cross tab with for-each@column/cell. For me the below code works. It colors the background.
    For NULL values do ensure that you print the MUSER value within the IF block.
    Thanks.

  • Conditional Format a CrossTab

    Hello I have an existing cross-tab report that I need to do a conditional format on.  In my report I have a sum of QTY Required by Day in the Summary section of the cross-tab.  I also have a field call Balance on Hand on each Row.  I would like to change the color for any of daily QTY required that are greater than the Balance on Hand.  This is simple in a Standard Report, but for some reason Iu2019m struggling figure out how to make it work in a cross-tab.  Thanks

    If I understand correctly you have 2 summary values in the crosstab and you want to highlight the first summaryvalue, required, based on whether or not it is greater than the second summary value, on hand. If you were to switch the summary values around so that on hand appeared first then you could right click on it, format field, background and conditionally enter in a formula that assigns the currentfield value to a variable but output no color;
    numbervar a:= currentfieldvalue;
    crnocolor
    Then in the second summary value right click, format field, background and conditionally compare the currentfieldvalue to the variable value;
    numbervar a;
    if currentfieldvalue > a then crred else crblack

  • 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

  • Above Average Conditional Formatting in Pivot Table off Row Total

    I have a pivot table where the months are column labels and the actual issues are Row labels. This is inverted from a normal pivot table where the months are usually the row labels.
    Basically I want the table to look at the value in the Values cells to look at the row Average instead of the column Average. Is there a way to do this?
    I've highlighted all my Value cells (showing the sum of the issue for a specific month) and then applied the Above Average conditional formatting selecting 'All cells showing "Average of #of Tickets" values for "Issue" and "Month".
    This works where the cells' value is greater than the columns average, but I want it to look at the row average instead.
    Is this possible? I thought it be simple, but I can't figure it out. The table will grow every month width wise and possibly adding new issues each month.

    Hi Vetsrini, thanks for the reply. I'm using the crosstab feature of BI Publisher template builder in MS Word to create the pivot table. I have a field called ACTIVITY as the row, and I want to bold the font and set the color as red if the ACTIVITY equals to certain text (such as if ACTIVITY = 'A' then bold & red). Can you please tell me how that can be achieved? I tried using the conditional formatting feature of the template builder, but it only works if I use it in a table, and not in pivot table.
    Thanks a lot.

  • Conditional Formatting in RTF templates

    HI
    I am just going around with designing of rtf templates. I have a question regarding the conditional formatting feature. The question is
    IF i am having different type of customers(corporate,individual,etc..) passed as parameters, Can an particular cell be formatted with different colors for different customers. for example, if the parameter is corporate customer the the color of particular cell should be RED in color, and if parameter is Individual the color of cell Must be GREEN in color.
    Please help me out with this.
    Thanks in advance

    Yes you can conditionally format the individual cells.
    Take a look at the guide (link provided) and search for "Cell Highlighting":
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    Example code: <?if:debit>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?> <?debit?>
    Thanks,
    Bipuser

  • Check for null values in conditional formatting when no rows returned.

    I have a report that is showing facts for different months.
    For some months there is no row in the facts table.
    But in the report, I have to show a * when there is no data.
    If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
    But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
    How we can check that no rews returned for a particular month and then show *?
    thanks

    Hi,
    which obiee version r u using?
    My Blog ref:
    http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
    in obiee10g its working fine.expect obiee11g
    also see the bug reference
    How to replace null as 0 in  obiee11g pivot table view?
    obiee11.1.1.6.0 also have the same issues.
    Thanks
    Deva

  • How do i use conditional formatting to edit the color of other selected other cells?

    I have been playing around with the conditional formatting feature of Numbers, I have figured out how to change font and background color of the cell i am working with.
    However what i am looking to do is apply a background color formatting to another cell (i.e. F2) if conditions are met in (B2).
    the end game is this,
    I want to make a column of check boxes, and using contional formating i want adject cells to change color (I.e. the example above: if (B2) is a check box, then when unchecked the reffered Cell (F2) does nothing, but when check the color of (F2) changes)
    I can make this happen with Logic equations, the give (i.e. F2) some letter or number value, then using conditional formats i can have the color change. but this leaves that particular cell useless to me (i.e. F2) I am not free to enter or edit text in that cell. (i.e. =IF(B2=TRUE,"Paid","Due") ----> then add a conditional statement that chages color when the value is either "Paid" or "Due")
    How do i have F2 change color, when B2 is checked and still retain the ability to enter information (or potential have another formula) in F2? (The Cell is not used up by "Paid" or  "Due" it is editable just like any other cell)
    is there anyway to change cell characteristics like font, color, and background color inside a formula, because in that way i would be able build it manually
    i tried using the formula editor inside the conditional format pane, but the only infor it will allow me to retain is one partictular cell. i cannot add modifiers like "+" or "=" or anything else. what is that space used for then?
    thanks for anyones help

    MC,
    You can do what you want in Numbers. It requires an auxiliary column and it's a bit tedious to set up because conditional formatting by comparison to another cell isn't relative, so each cell has to be programmed individually with no option to Paste or Fill to other cells in a range.
    For explanation purposes, let's say your checkbox is A2, your cell to be conditionally formatted is B2, and your auxiliary cell is  C2. To have the format of B2 determined by the checkbox status in A2, you will:
    1. In C2 write: =IF(A, B, " ") The " " is any string or value that you don't expect to encounter in B normally, and using the space character means you don't have to worry about having it visible if C is in View.
    2. In B2 use Conditional Format: "Equal To" cell C2 and set your text and fill attributes to be used when the box in A is checked.
    That's it. Do that for every cell in the range.
    Jerry

  • How do I apply conditional formatting using SharePoint Designer 2013?

    I'm attempting to apply Conditional Formatting to a list view web part via SharePoint Designer 2013, and I can't seem to find the option to do so.
    I've a horrible feeling I'm just being daft, but here's what I've done so far:
    - Created a new page (I've tried both web part and wiki)
    - Added a list "App part" and saved the page
    - Checked-out and opened the page via Designer
    - Clicked the "Edit file" option
    - Selected the XsltListViewWebPart tag
    So far I can't find any options to add it. If I open the Conditional Formatting pane via the View menu it tells me the following:
    > To use conditional formatting, select an HTML tag, data value, or
    > range of text, and then click Create to specify formatting options.
    I've tried selecting the web part tags in all manner of combinations with no luck. In previous version I would have simply selected the previewed data rows in the now-absent Preview pane.
    Am I missing something?

    Create and edit a Wiki Page
    Click Inset > Data View and Select “Empty Data View”
    Click Inside the <DataSources> tags </DataSources>
    Click Insert > Data Source “Your Data Source Name”
    Hold down Ctrl button and select the Rows in the order you want them to appear from your “Data Source Details” Window.
    After the Rows are selected click on the drop down “Insert Selected Fields as…” at the top of the “Data Source Details” Window. 
    Select “Multiple Item View” option (This will create the xsl where we need to add the conditional formatting to)
    Find the <tr> tag that contains the Row Data.  Insert the following right below the <tr> tag:
    <xsl:attribute name="style">
    <xsl:if test="@FieldName = 'Something'">background-color: #FF0000;</xsl:if>
    </xsl:attribute>
    I hope this helps.  I figured this out by using the old 2010 Designer to figure out the where to place the code and how to do this.

  • Sharepoint Foundation 2013 - Conditional formatting

    Hey all,
    I'm trying to pull of conditional formatting for the outcome of a "Yes or No" column within a Custom List, however all the searching I have done shows that it seems to have been removed in Sharepoint 2013 without using a Jquery (I'm having problems
    getting my head around Sharepoint 2013 at the moment, dont want to add Jqueries to it as well lol).
    Have I missed something stupidly easy? I have http://www.cdpdev.com/Blog/Post/7/Conditional-Formatting-in-SharePoint-2013 but it seems to be using Sharepoint
    2013 with Sharepoint designer 2010 which I dont really want to have to do as the will be in time handed over the my 'manager' who will self manage and using 2 different pieces of software is kinda out of the question.
    Regards
    JB

    Hey @ITechbrij
    it seems the above post doesn't work for Sharepoint 2013 as I'm getting a syntax error but this maybe due to me not being able to find the formula box so put it into the "Column Validate" section as I'm missing the formula box that is shown in the 2010 screenshots.
    If this is not possible what do you suggest? Going with the Sharepoint designer 2010 approach? As I cant find how to do it in 2013 and wouldn't know where the start with a jquery lol.
    JB

  • Report generation toolkit conditional format - how to?

    Hi
    We are using the Report generation toolkit (2010 version), and have a question regarding this tool.
    I see functions for setting the number format, but not a conditional format. Does this not exist?
    http://zone.ni.com/reference/en-XX/help/372120A-01/lvoffice/excel_set_cell_format/
    This page refers to an example which from the name sets a conditional format. However as I understand it, this example is setting a custom number, not a conditional format.

    Hi,
    the simplest way to do this I guess you can provide a template for your Excel sheet, where you can set the conditional format there.
    From LabVIEW you can just send the values into this sheet-template.
    Maybe you can try these if you want
    http://forums.ni.com/t5/LabVIEW/Using-conditional-formatting-in-excel-through-LabVIEW-activeX/td-p/1...
    http://forums.ni.com/t5/LabVIEW/Excel-Colour-properties-modified-via-LabVIEW/m-p/573748?query.id=218...
    Regards,
    Yan.

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • How do I add an account to my already set up iPad?

    I already set up my new iPad Mini without using an account. Then, I found my account but I don't kow how to put it in the iPad. Please help!

  • Clear query when i enter on the request page

    I have a page with some query field and a button ('execute query'). When i return on the page the was dispaly the old query, it is possibile to enter in the page and finf it clear ?? Thank's'.

  • Variable Text not appearing in Report

    Hi All, I have created one BEx Query in which in selection criteria i am giving verson (100) , Year (2008) , Posting Period (10 - 12) i have one key figure is Total Value in GC  . Now my req. is when i run the report , in keyfigures these values like

  • Looking for recommendations for a keyboard/stand for the iPad

    I have the bluetooth stand alone one for Apple TV but my wife wants a keyboard/stand combined and wants tro know where the mouse would be? I know Logitech and Zagg both do the keyboard but what about the mouse? All recommendations welcomed

  • Photobook frustration:(

    Please help me out as soon as you can.  I am feeling soooooo FRUSTRATED!!!   I spent hours working on a photo book for my Dad for Father's day.  It involved scanning many newspaper clippings and old photos to create an iphoto scrapbook of a very impo