Is it possible to do conditional Summation in e Text templates

Hi,
We are having the following requirement.
The XML being generated has data for all the counties. But we need to find the sum of FIT_GROSS_WAGES only when the county_name is in a specific list of values, which we can hardcode in the template.
some thing like
if county_name in ('Perry', 'Bucks')
then
sum_FIT_GROSS_WAGES = sum_FIT_GROSS_WAGES + FIT_GROSS_WAGES
end.
We tried with
SUM(DECODE(,’Perry’,INTEGER_PART(TO_NUMBER(FIT_GROSS_WAGES)*100), ’Bucks’, INTEGER_PART(TO_NUMBER(FIT_GROSS_WAGES)*100), 0))
But its not working
We have copied the template and sample xml to
http://www-apps.us.oracle.com:1100/~svannian/Template_change/
Can some one clarify if its possible to achieve this in an e-text template?
Thanks.

Hi vetsrini,
the issue is if i use the following command
SUM(DECODE(EMPLOYEE/CITY/COUNTY_NAME,’Perry’, TO_NUMBER(NVL(EMPLOYEE/RW/FIT_GROSS_WAGES,0)),1))
it always goes to the else condition and picks 1 even for employee records whose county name is Perry.
Replacing a value like
SUM(DECODE(EMPLOYEE/CITY/COUNTY_NAME,’Perry’, 2 ,1))
then the 2 will be picked up for Perry County employees and 1 picked up for the rest.
The issue is that in the first command i cannot use TO_NUMBER(NVL(EMPLOYEE/RW/FIT_GROSS_WAGES,0)).

Similar Messages

  • .   Is it possible to create condition record in both CRM as well as in R/3

    hi,
    .   Is it possible to create condition record in both CRM as well as in R/3?  Explain in more details.
    Regards,
    babu

    Hi Babu,
    No. You cannot create condition records in CRM when back end is R/3.
    Condition records should be created in R/3 and replicated to CRM.
    You cannot extend condition records in CRM.
    Reward the Points.
    Thanks,
    Srini.

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • If Condition in Smartform - window text- without program lines

    Hi,
       I have faced one problem in smartforms. In smartforms i have a window (main.) It has five lines. For Fifth line only i need to check one condition. if it is true then print the Line otherwise i need one Blank line to print.
    How i write if condition in smartforms window - text. 
    Mahesh.

    Hi Mahesh,
    You need to create and alternative node and put your text into that.  An alternative will check a condition, and process one of two nodes depending if it is true or false.  Based on your condition, on true you can have your current text element and on false a text element containing a blank line.
    Regards,
    Nick

  • Is it possible to make a newline in SelectBooleanCheckbox text?

    Is it possible to make a newline in the text in an af:SelectBooleanCheckbox component?
    I have tried br in tags (cant write the syntax here :)) which don´t seem to work.

    Hi,
    what is it that you are trying to achieve ?
    Frank

  • Is it possible to add new columns with format "Text" once a table is linked to a form

    Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
    Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
    Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.

    Hi Knochenhort,
    I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
    When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
    I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
    It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
    To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
    Hope that helps!

  • Read field of TextInmput text and to execute referring condition to the informed text

    Post Read field of TextInmput text and to execute referring condition to the informed text, AS3.0 To depend the inserted text for the user, flash will be read by the compiler to player, and a connective if goes to define for which picture will be directed or which page web will be linkada with the URLRequest function, or the function gotoAndPlay () for the pictures of timeline. Ultiliza object of field of dinãmico text or textInput? input I find. ---------------------------------------------------------
    OBJECTS: Object of text entrance: textoEntrada
    button for verification: button link
    All the code is stored in picture 1. we have the function:
    Code:
    stop ();
    function loads (event: MouseEvent): void {
    to var textoEntrada: String;
    if (textoEntrada == " sim"){
          to var link: URLRequest = new URLRequest (" HTTP: \ \ google.com");
          navigateToURL (link);
          } else { gotoAndPlay (2); \ \ the picture where 2ª option is located in timeline }
    to botaolink.addEventListener (MouseEvent: CLICK, loads);
    THIS CODE AND DID NOT FUNCTION!

    made the sujeridas modifications, but it appears the following error: Scene 1, Layer ' Layer 2' , Picture 1, Line 18 1086: Error of syntax: waiting semicolon before port. My objective is when clicar in the button will be verified what he was inserted in the text field, if to contain the word “yes program” it goes to open a URL senão goes for frame 2 of the line of the time.
    where " textE" it is the object of entrance text that this in palco, as well as the button is located in palco, with a name of occurrence of " boto".
    the two elements had been attributed to the name of occurrence through the menu properties of the flash.
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    function port(event:MouseEvent):void{
                    var textE:String;
                    if(textE.text == "yes"){
                                   trace("primary portfolio to Author");
                                   var indic:URLRequest = new URLRequest ("http://google.com");
                                   navigateToURL(indic);
                    }else{
                                   trace("second page to author");
                                   gotoAndPlay(2);
              boto.addEventListener(MouseEvent.CLICK)port;
    stop();

  • Is it possible to put a drop shadow on text added to an image?

    Is it possible to put a drop shadow on text added to an image using Photoshop Elements 10?

    Yes.
    Open the Effects palette. In the drop-down. go to "Drop Shadows." You will find several listed. After you have applied, double click on the f on the text layer in the layers palette. This will bring up the Style Settings. Here you can fine-tune the shadow..
    Note that in the drop-down referenced above, there are also Bevels which may enhance your presentation.

  • Is it possible to have a permanent signature for texts?

    I s it possible to have a permenent message for text messages? I just got an iphone and can't figure it out. My old LG Chocolate had this feature.

    The iPhone doesn't have this feature.  Only available for email.
    If you haven't found this yet, iPhone iOS4 User Guide

  • Is it possible to install eBiz12.1.3(64bit) vm template on virtual box(lap)

    hi
    Is it possible to install eBiz12.1.3(64bit) vm template on virtual box in my laptop 64bit.?
    or Can it be only installed on Oracle VM(not virtual Box), in this case, can i install Oracle VM on my laptop and import the oracle vm template for 12.1.3?
    Thanks
    Edited by: 832257 on Feb 4, 2012 2:33 AM

    Pl see my reply in your other post - Oracle VM server and Manager on laptop?
    Srini

  • Is it possible to hide certain parts of html text from the internal bc sit search

    Is it possible to hide certain parts of html text from the internal bc site search, for example on each page I have the following text:
    We use cookies to ensure we give you the best experience on our website.
    If you continue to use our website we assume that you are happy to receive these cookies. Find out more. close
    The above snippet of text shows on each result snippet, I really would like to hide this as not relevant to keyword search

    Hmm, that is a good question. The one thing that immediately comes to mind would be to use javascript to output the text ("We use cookies to ensure we give you the best experience on our website. If you continue to use our website we assume that you are happy to receive these cookies. Find out more. close"
    ) on the pages.

  • Possible to do conditional ands?

    I don't know if this is possible or not. so I thought I should ask the experts.
    I have a function and I need to create a query that has conditional ands.
    what I'm looking for is something like this:
    the function has a few in variables. one of them is p_view
    in my where clause I was hoping to do something like this:
    where a.course_id = b.course=id
    if p_view = 1 then
    and a.supervisor = p_super
    elseif view = 2 then
    and a.emplid = p_emplid
    else
    and a.emplid = b.emplid
    end if;
    and a.role = b.role;
    now this is not real code, I've tried a decode and that did not work, then tried case, that did not work. so I'm not sure if its possible or not.
    can this be done or is there some other way to do this I don't know about?

    Hi,
    I've tried a decode and that did not work, then tried case, that did not work.Why not? How did you try?
    When asking questions, be as specific, clear and concisive as possible, so we can help you as best as possible.
    'It didn't work' isn't adding anything to that.
    now this is not real codeDon't post unreal/syntactically wrong code, it only distracts and confuses, raises more questions.
    Post real code or a clear description of the requirement.
    can this be done or is there some other way to do this I don't know about?Hm...my guess is that it can be done, and I wouldn't rule out getting it done using case yet.
    If possible, please provide the real query and explain why 'it didn't work'.
    We need to know the requirement here.
    All I can think of with your given input is this wild shot in the dark, however it might give you an idea:
    where a.course_id = b.course_id
    and ( case
            when p_view = 1 and a.supervisor = p_super then 1
            when p_view = 2 and a.emplid = p_emplid then 1
          end
        )  = 1
    and a.emplid = b.emplid --not sure about this here at all
    and a.role = b.role;Remember to use the tag before and after your examples.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Possible to do conditional formatting in pivot table?

    Hello,
    I would like to do color row or column values based on certain conditions in my pivot table. I noticed the field tags in the pivot are not your standard <?value1?> but rather they are structured like <?./H?> or <?./M1?>
    Is it possible to do this? As an example, if a row = '001' i want the entire row green, or if a single measure value in a cell = '0' i would like to color it red.

    Check the blog http://blogs.oracle.com/xmlpublisher/2010/03/new_skool_crosstabbing.html for explanation on those fields and try to format them accordingly.

  • Not Possible to determine condition type- supplementry condition STO sch ag

    Dear All ,
    While creating the stock transfer scheduling agreement in the transaction ME37, Stock transfer pricing schema is getting is picked up. where the standard condition type :P101 is being used for picking the Material valuation price of the supplying plant.
    Now for adding the delivery cost or any other conditions , while we are trying to enter  other conditions in the Item Conditions in ME37, system is giving an error message "NOT POSSIBLE TO DETERMINE THE CONDITION TYPE".
    As NO Access sequence is attached to the condition type : P101, and at the same time, Supplementry pricing procedure is assigned to the condition type : P101.
    When we assign the access sequence(e.g 0002) to the conditon type P101 , then system allows us to give the supplementry conditons while creating the scheduling agreement , BUT at the same time material valuation price from supplying plant  is not getting picked up in either scheduling agreement or stock transfer order.
    Requirement is that BOTH material valuation price as well as system allows us to give the supplementry conditions in the scheduling agreeement.
    Thanks & Regards
    Nitin Chhabra

    .

  • Is it possible to do conditional formatting in pivot table

    I have created a duplicate layer of no of transactions which displays % of transactions.I need to highlight % above 50 in diff color.Is it possible in pivot table?

    Hi,
    Try this
    In the criteria create one more column with formula as
    100.0 * "Sales Facts"."Amount Sold" / REPORT_SUM("SH"."Sales Facts"."Amount Sold" BY ) ....this gives you the same result as percentage in Pivot table.
    Replace Amount Sold by your measure column % of transactions.
    Now set the conditional formatting in Criteria tab using this column. i.e if *100.0 * "Sales Facts"."Amount Sold" / REPORT_SUM("SH"."Sales Facts"."Amount Sold" BY ) > 50* then RED or whatever you want.
    Hope this works.
    Thanks

Maybe you are looking for