Variable conditional formatting?

I've set a rule in a cell and now want it to work on a column against a variable cell how do I do this?
Selling price
Price by time Average
£5.00
£3.50
£5.00
£3.50
The background of the cell changes red more, green less, but how do I now copy this down the column and change thecell that it referances?

/numbers does not have this functionality directly built in.  You can get a similar result by making a separate table that performs the shading and is placed BEHIND your existing table.  The existing table should be adjusted so it has not fill.
The new table (Let's call it a shader table) has calculations that are used as the conditional format information.
In this case... the shader table contains the formula:
A1=Data :: A2-Data :: B2
Here is  how it looks once the shader table is placed behind the transparent data table:

Similar Messages

  • How to reset a count variable in a conditional format trigger

    I am using a conditional format trigger to eliminate sections of a report where there is no data. The trigger is automatically generated by reports (shown below). the condition is :com_count = '0' therefore no record, no display of section - if :com_count>0 then data present and display record.
    It works fine eliminating the sections - until actual data is found - and count is set to 1 and it displays the record. The problem is that once :com_count >0, then the section displays throughout the rest of the report whether there is actually data or not.
    It seems that :com_count needs to be reset to 0, but when I try to do that, it throws an error stating that :com_count is a read only variable.
    I am new to PL/SQL so can anyone suggest how I can reset the :com_count to 0 each time the trigger fires with :com_count = 1?
    Any help would be appreciated. Thanks,
    Glenn
    The conditional format trigger is:
    function M_G_COM_RANK_GRPFRFormatTrigge return boolean is
    begin
    -- Automatically Generated from Report Builder.
    if (:COM_COUNT = '0')
    then
    return (FALSE);
    end if;
    return (TRUE);
    end;
    The count
    It works perfectly

    wher is your COM_COUNT defined?
    If should be defined in the datamodel in the "mastergroup" of the "detailgroup" of which you want to count the records.
    If you do so, there is a property of the item "Reset at" ( which is by default set to "Report") and you then can change it to the name of the mastergroup. So every time a new record is "active" in the mstergroup, the count-item will be reset to 0.
    hope this helps

  • Using Session Variable with Conditional Formatting Filter

    Hi,
    I'm trying to add a condition to my report in order to flag all opportunities that have a close date that is in the past. The way I'm trying to do this is by adding a condition to say when close date is less than current_date, flag the column with an image.
    Issue I'm having is that the filter window within conditional format tab appears to not have the session variable option as you do when you create a filter on a column the normal way. A colleague told me to use an SQL expression, but again this option seems to be unavailable too within the conditional format tab.
    Can anybody assist please?
    Thanks

    Create a new column and write a CASE WHEN condition like case when close date < current_date then 'Y' ELSE 'N' END.
    Then on your actual date column, you can do conditional analysis based on the newly created column for values having Y then the image.
    finally, you can hide the newly created column.

  • Storing a conditional formatting formula in a variable

    I have a conditional formatting formula that exceeds the 393 character limit for Word fields. I've placed the formula directly into the template table, and it works correctly. But now, of course, there are several hundred characters of formatting information in that cell, along with the data field. Not pretty.
    Is there a way to store that long formula into a variable, and then refer to that variable as the conditional format? I'm getting stuck on the right-arrow tags (>). I can't figure out how to include those in the string and store them in the variable.
    Here's a simplified example of what I'm trying to do:
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?><?attribute@incontext:color;'red'?><?end if?>")?>
    The inclusion of the right-arrow tags (>) in the string causes a failure when attempting to Preview. If I replace all of the right-arrow tags with something else, like the number 8 ...
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?8<?attribute@incontext:color;'red'?8<?end if?8")?>
    ... the string is stored in the variable, and I can refer to it in the template table by using <?xdoxslt:get_variable($_XDOCTX,'myvar')?>. It's useless, of course, but it works correctly. The string is stored in the variable, and the contents of the variable appear in the template.
    So how can I imbed the right-arrow tags in this text string? Use an escape character? Imbed the ASCII code? I'd do either of those in a heartbeat if I could figure out the right syntax.

    Related information is available at:
    Where to put xsl:variable definition

  • How to get session variable value in conditional formatting

    I am trying to format my column according to value of a session variable. Normally when comparing to a static value I select value from add button and write the value. What I want is to be able to do this using a session variable. I select variable presentation and as the variable expression I tried MYDAY, NQ_SESSION.MYDAY, VALUEOF(NQ_SESSION.MYDAY), VALUEOF(MYDAY) but nothing works. By the way it is a date value, I don't know it makes any difference
    Any help would be appriciated

    I am surprised that it is not possible to select a session variable when you want to use conditional formatting. Apparently you can only base conditional formatting on presentation variable or values within a column.
    As a workaround you can create an extra column in your request and use a CASE WHEN statement, where you compare the value of the date with the session variable. Then you can base your conditional formatting on that column.
    Regards,
    Stijn
    Message was edited by:
    Stijn Gabriels

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • 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

  • OBIEE 11g: Gauge (Bulb) Conditional Formatting

    Hi everyone,
    Is there a way to conditionally format a bulb gauge based on a dimension value = presentation variable?
    I conditionally formatted the column in question and then put it as the "row" of the gauge but the gauge didn't inherit the formatting.
    Does anyone know how I could do this?
    To be honest, what I'm really trying to do have a set of stop light metrics (green/yellow/red) across the top of the report. Each one gives you quick insight into how they are performing, and then you can click on them to refresh all the metrics on the existing dashboard to that particular metric.
    For example:
    Metric 1 Metric 2 Metric 3 Metric 4
    Green Yellow Red Green
    (other graphs and details about metric 1 as default, but when users click on the other metrics, all reports refresh to show details about the other metrics).
    I'm envisioning something more like a glorified column selector. The goal is that you can see everything at a high level and then view specifics if you think the situation warrants that. The bulb gauges are pretty to look at and give the right feel but I'm not getting the right functionality out of them.
    Does anyone know how to accomplish this?
    Thanks!
    -=Joe

    Not clear!!
    Value A/B*100  5%
    is for any new column or as Summary?

  • Different take on conditional formats - parameterizing the color?

    Hi - I'm trying to do conditional formatting, but all the examples & help I've found shows a sample that hardcodes the actual color used. I have a requirement where I need to pass in the color in as part of my XML input.
    The logic used to determine what color to display a number is very complex, and has changed a couple of times already. As such, I'm trying to keep all that logic in a SQL view, rather than reproducing the logic a hundred times over in the XSLT of a handful of reports.
    My datamodel is set up something like this:
    <PROC>
       <APPN>APA</APPN>
       <REQUEST>10,000</REQUEST>
       <SAC>9,500</SAC>
       <SAC_COLOR>red</SAC>
       <HAC>10,000</HAC>
       <HAC_COLOR>black</HAC_COLOR>
    </PROC>
    <PROC>
       <APPN>MSLS</APPN>
       <REQUEST>12,000</REQUEST>
       <SAC>12,500</SAC>
       <SAC_COLOR>green</SAC>
       <HAC>10,000</HAC>
       <HAC_COLOR>black</HAC_COLOR>
    </PROC>
    . . . This bit of XML would generate two rows in a report, with the first row having the "SAC" value colored red, the second row having "SAC" as green.
    So I've tried using something like:
       <?for-each:PROC?>
          <?APPN?>
          <?attribute@incontext:color;SAC_COLOR?><?SAC?>
          <?attribute@incontext:color;HAC_COLOR?><?HAC?>
       <?end for-each?>But that throws errors when it tries to parse it. I've tried a number of different formats of this, as well as the lower-level format:
       <?for-each:PROC?>
             <?APPN?>
             <xsl:attribute name="color"><?SAC_COLOR?></xsl:attribute><?SAC?>
             <xsl:attribute name="color"><?HAC_COLOR?></xsl:attribute><?HAC?>
       <?end for-each?>but haven't had any luck finding something that works.
    I know I could put in a set of if statements or a choose block, but again, that'd mean reproducing the same logic many many times over.... maintenance nightmare.
    Any ideas?
    Thanks in advance,
    -- Andy

    Got closer to an answer, I think. Tried using an XSL variable, and rewrote the logic as below. I used the xsl:attribute because it allowed me to specify the color as the content of an XML tag, rather than an attribute..
    <?for-each:PROC?>
       <?xdoxslt:set_variable($_XDOCTX, ‘colSac’, SAC_COLOR)?>
       <?APPN?>
       <xsl:attribute name=”color”><?xdoxslt:get_variable($_XDOCTX, ‘colSac’)?></xsl:attribute><?SAC?>
    <?end for-each?>and this almost works - I get the correct value from my data substituted in for the get_variable, but the xsl:attribute open/close is rendered as text. So my output for the SAC field ends up reading:
    <xsl:attribute name=”color”>red</xsl:attribute>9,500So I guess I'm using the xsl:attribute tag incorrectly? I've googled that, have found a few examples that show the same sort of notation... am I missing something obvious here?
    Edited by: Tanjental on Jul 16, 2012 8:22 AM

  • Oracle BI Answers Conditional Formatting

    Hi,
    Im using Oracle BI Answers and I am trying to set the colour conditioning function on the following graph:
    On the X axis I have company branches, on the Y axis I have sales figures. The two values that I have projected on the graph are sales figures for the current month (first bar - bar A) against sales figures of the same month last year (second bar - Bar B). My requirement is to condition the colours on Bar A so that for each branch if Bar A is equal to Bar B, the colour for Bar A should be amber, if Bar A is greater then Bar B for each branch the colour should be red and if the Bar A is less than Bar B, the colour should be green. The colour on Bar B is always grey. I tried using the "Format Chart Data" setting on the Chart, and when I try setting the condition for Bar A, the only options I am given are the numbers on the Y axis; I cant seem to set a condition for Bar A against another variable - Bar B for each of the divisions on the same chart.
    Any ideas how I can resolve that? Thank you in advance.

    Thank you very much for your suggestion. I am having difficulties with the fact that the helper column has different values for each branch/division, and the column A cannot be conditioned against the helper column as it is not a constant value, but several different values. Also, if I hide the helper column, its values would not be shown in the conditional formatting option.
    Do you have any ideas?
    Thank you in advance.

  • Conditional format in OBI Publisher Template Builder for Word

    Hi,
    I'm creating a template in MSWord's Publisher. I inserted a table and I tried to add conditional formatting to some of the cells. Nothing special: just standard red color when the value is below 0.
    In several places I've seen that I should go to the cell and do 'Insert>Conditional Format'. Unfortunately I get the following message then:
    The conditional format is not inside a table and can therefore not be applied to a table row
    I tried to google it, but I didn't find anything.
    So I tried to do it with explicit xsl code. In the User's Guide I found an example and after my adjustments it looks like this:
    <?if:_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__<0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?>
    <?_-__ROUND__FACTS_SUMMARY_V_._ACTUAL_COST_PREV_MON___0__?>
    I put the above xsl code in 'Properties>Advenced' for a table cell.
    And when I try to preview it as HTML I get the error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 45, Column 100>: XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context.
    at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    I exported my XSL-FO Style Sheet and here you have the lines 41-48:
    <fo:flow flow-name="region-body">
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" start-indent="5.4pt" text-align="start" padding-bottom="10.0pt" end-indent="5.4pt" padding-top="0.0pt" height="0.0pt" font-size="11.0pt" font-family="Calibri"/>
    <fo:block xdofo:line-spacing="multiple:13.8pt" orphans="2" widows="2" linefeed-treatment="preserve" text-align="start" padding-bottom="0.25pt" end-indent="5.4pt" padding-top="0.25pt">
    <fo:table start-indent="0.0pt" style-id="ts16" style-name="Table Grid" xdofo:table-summary="Template Table 1" xdofo:row-header-count="0">
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    <fo:table-column column-width="45.5pt"/>
    <fo:table-column column-width="57.2pt"/>
    I can't see here anything related to my piece of code.
    Do you have any suggestions what do I do wrong?
    And, what's more important, what should I do, to make this conditional formatting run?
    I'm using Template Builder v. 10.1.3.4.
    I'm new to BI and not an expert in XSL, so please forgive me if the info in my post is incomplete. Let me know about it and I'll try to fill the gaps.
    Thanks in advance.
    Cheers,
    WhatTheHell

    Hi,
    Here is what I have used in the past. insert a formula and copy one of these into the formula (and of course change the field names to your report field name).
    Changing Background Color Based on a Condition:
    <?choose:?><?when:GETROWNUM mod 2=0?><xsl:attribute xdofo:ctx="block" name="background-color">rgb(231,230,229)</xsl:attribute><?end when?><?end choose?>
    OR
    <?choose:?><?when:ROWNUM mod 2=0?>
    <xsl:attribute xdofo:ctx="block" name="background-color">rgb(241,235,207)</xsl:attribute>
    <?end when?>
    <?end choose?>
    OR
    Change font color for entire row based on a condition
    <?if@row:STAT='B'?><?attribute@incontext:color;'red'?><?end if?>
    Hope this helps,
    Steve

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

  • 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

  • Graph Quadrant Colour/Conditional Formatting

    Hi Experts,
    I have scatter graphs representing the % growth YoY (Y axis) and MoM (X axis.)
    Due to the variable percentages, the axis are not fixed and the scales on various graphs are different.
    There is a requirement to colour the quadrants of the graphs with the top right being green, top left amber, bottom right orange and bottom left red.
    Alternatively, the points can be coloured/changed based on which quadrant they are in.
    Can anybody help?
    Kind Regards,

    Thanks for the help but this does not give the desired effect.
    The entire quadrants need to be coloured or the points within that quadrant coloured.
    This is because the points on the graph vary to an extent that one graph may show ve X, ve Y, another, -ve X, -ve Y.
    Should there be a way to conditionally format the points such as they are a particular shape/colour depending on whcih quadrant they are in, is there a way to label the points on the graph with the same labels in the legend, thus ensuring that there can be no confusion over what each point represents?
    Any ideas/help would be greatly appreciated.
    Kind Regards,

  • 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

Maybe you are looking for

  • [Solved] Lua with Conky gives unwanted background color

    Hi, I've Googled and ransacked the forum looking for an answer. I have Conky with lua on KDE4 and I cannot run both together without creating an unwanted background. After getting sidetracked with KDE4 transparency considerations, I discovered that i

  • Logical expressions, Infix - Prefix

    Is there a method that takes an infix expression and returns a prefix? Example Input A=>B Output =>(A,B). Many thanks

  • PSE 11 Date, time & star option under photo in organizer missing

    I was watching a tutorial about PSE 11 and then noticed that under my photo in the organizer I do not see the date, time, & star option.  Do I have to turn something on to see them.  Also I do not see a place under the photos to put a caption.  I'm u

  • Win2000pro terminates applicatio​n

    My LabVIEW5x application (exe or not) is closed by win2000pro because it creates several temp files in the temp directory. Windows suggests that these temp files are "NOT A VALID WINDOWS IMAGE". The temp files are created by CINS or dlls, ie. SQL too

  • Sports Tracker and Angry Birds?

    Does Sports Tracker and Angry Birds work on the E6? I cant find them in the OviStore. And I can not see the album art cover in musicplayer? Do u think it will work or do I have to wait for the big update? Rogmansfones