Apply multiple condition combination

Hi
I have a table in database and a mapping file with 5 condition columns and 1 output column
I need to check if the record in database meet any of the specified condition mentioned in the 5 columns of the mapping table, then the value in output column should be assigned to that record as a new column in destination table
The conditional columns in the mapping file may or may not contain value and new condition records may be added regularly
I need some help to determine if there is any way in which record from source table is checked if it meets the required condition and accordingly assign the output column value from mapping file
Just to explain it in better manner:
Source Mapping File
ColA ColB Col C ColA ColB ColC Output
54 63 76 54 63 Category 1
25 78 45 Category 2
In this way if ColA, ColB, Col C of source matches with ColA ColB ColC of mapping file, the output value should be picked up
Edited by: user8628169 on Jun 28, 2010 1:23 PM

resolved by myself

Similar Messages

  • Applying SUBTOTAL to multiple condition SUMPRODUCT

    Hi
    I have created the following formula which works:
    =SUMPRODUCT(--($AG$10:$AG$1999<>0),$U$10:$U$1999/SUMIF($AG$10:$AG$1999,"<>"&0,$U$10:$U$1999),$X$10:X$1999)
    Column AG is a "type" filter where I've assigned 0 values to data I need to ignore when doing my sumproduct, U is my values column so the values I want to sumproduct with column X which is my return column. So this works fine to ignore my blank
    types and sumproduct the remaining values and returns to give me a total.
    However I'd like to extend this so that when I put a filter on my data the forumla holds.
    I've previously used the following for subtotals
    =SUMPRODUCT(X9:X1999,SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$1999)-ROW($U$9),,1))/$U$7)
    but this doesn't account for the fact that I need to strip out the types that are blank which I do in the above via: --($AG$10:$AG$1999<>0)
    Is there anyway to combine these two forumlae???
    I'm trying to build the spreadsheet to be robust enough for new data to be pasted into cells A9:AG1999 each month and the required metrics pop out at the top so that others can use without having to update pivots etc. I need it dummy proofed so all they
    do is paste in new data and the forumulae do the rest!
    Any help would be greatly appreciated :O)  Happy to provide more detail if the above isn't clear!

    Try:
    =SUMPRODUCT(X$9:X$5129,SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$5129)-ROW($U$9),,1))/SUMPRODUCT(SUBTOTAL(109,OFFSET($U$9,ROW($U$9:$U$5129)-ROW($U$9),,1)),--($AG$9:$AG$5129<>0)),--($AG$9:$AG$5129<>0))
    Solved by NVBC in the OzGrid Excel forum: tipost titled "Apply SUBTOTAL to multiple condition SUMPRODUCT inc SUMIF"

  • Is it possible to apply a condition on a single column?

    Morning All,
    Is it possible to apply a condition on a single column? My aim is to create a report that has multiple PTD columns, each based on a different Version ID.
    I've tried creating a calculation using the case statement shown below, however I get a blank column with nothing in: CASE WHEN VERSION_ID = ‘10’ THEN BALANCES.PTD END
    I know this can be done through a DB view/custom folder, however I’m looking for a solution that can be created in Desktop / Plus.
    Cheers,
    Lance

    OK. Hope this explains the problem well.
    This is the Crosstab Report without Annual Budget Column which looks great, all figures correct.
    http://vodashare.com/show.php/2929_Pic1.jpg
    After Adding Annual Budget column,
    http://vodashare.com/show.php/2930_Pic2.jpg
    This is the Table version of the above report with Annual Budget column
    http://vodashare.com/show.php/2931_Pic3.jpg
    Calculation Used for Annual Budget is
    SUM(( CASE WHEN ( ( Actual Flag = 'B' ) AND ( Status <> 'C' ) )
    THEN ( NVL(Period To Date Cr,0)-NVL(Period To Date Dr,0) )
    ELSE 0 END ))
    OVER(PARTITION BY Account,"Period Year" )
    According to the conditions ( Actual Flag = 'B' ) AND ( Status <> 'C' ), amount is calculated adding the (Cr – Dr) amount when these conditions are satisfied. But, How can I make sure the value is displayed only for rows that these conditions are satisfied?
    As you can see, it also displays the columns where Actual Flag != 'B' and Status = ‘C’
    Also, I wonder why the Crosstab worksheet with Annual Budget doesn’t display some of the amounts (Ex: for Account 301010, no Annual Budget is displayed where as in Tabular worksheet it is $5721017.50) and for the amounts displayed, why are they displayed at different levels of Sub Accounts?
    Note: I do get a warning when I Add the Annual Budget to worksheet.
    'You are combining a detail data point with an aggregate data point This may give you unexpected results'. But I am not using any detail items as data points.(not considering Status and Actual Flag, got same message even after removing those)
    Please let me know if you find a solution for your requirement Lance, that would help me.

  • Multiple condition for payment terms

    Hi,
    I wanted to create new payment terms with multiple combination say for example
    95% Payment in Advance & Remining 5% in Net 360 days.  How to configure with multiple conditions.

    Hi
    You may have to use instalment payment terms.
    Regards

  • Table Rows with Multiple Conditions Not Showing Up in RH

    Hi everyone,
    I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
    One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
    For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
    Unconditional
    Unconditional
    Condition A and Condition B applied
    Condition A and Condition B applied
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
    Unconditional
    Unconditional
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
    Has anyone else seen this issue? Any help would be much appreciated.
    Thanks
    DaveB

    It just seems that the items I select as align to top in the
    property inspector should force the items to the top of their
    cells, unless I'm missing something.

  • Help, how to apply multiple style to a component

    In HTML we can write class="styleA styleB" to apply multiple
    style, but it's not allowed in flex3.
    So is there a way to walk around? like
    .styleB{
    //include styleA
    }

    You have to combine all songs into one file by using software, for example Audacity.
    PS: I owe this knowledge to a post by Victoria Bampton.

  • Apply multiple effects at once in imovie hd?

    i have applied multiple effects to a clip ("adjust color," "soft focus" "brightness and contrast" etc).
    the effects in combination create a distinctive look which i would like to apply to a whole movie. but it takes a long time to apply each effect.
    is there a way to copy or save a group of effects as a set, and then apply them all at once in order to save time?

    how MUCH faster is FC for rendering effects?
    Not any faster at all.
    The difference is that you can apply them all within a few seconds and then have lunch (or whatever) while FCE renders ALL of them in sequence without further user interaction.

  • Highligting rows based on multiple conditions

    Hi,
    I have to show a report with exceptions highlighted in RED color. Exceptions are based on some conditions:
    If I have four columns in an answer request, two of which say "Level" and "Status".
    based on the "Level" and "Status" column conditions I have to highlight entire row which satisfies any of the condition.
    Ex: If I have Level=3,4,5 and Status= Y,N then for
    Level=3 or Status=N is one exception.
    Level=4,5 or Status=Y is another exception.
    Based on this two column conditions I have to highlight entire row in the report.
    Can we do this in OBIEE. Highlighting rows based on multiple conditions?
    Thanks in advance!

    Thanks for the reply.
    I have tried that already. I can highlight one specific field but not entire row.
    If I keep on applying the conditional format for the other columns too then I can't apply the conditions.
    Anyways, I have created a dummy column with the conditions in it and then applied that to the other fields and used conditional format to highlight the color.

  • If Statement Multiple Conditions

    Using LiveCycle, FormCalc or JavaScript.
    I am trying to create an if statement with multiple conditions.
    a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field. 
    If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
    I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
    Help would be much Appreciated!
    Thank you in advance.

    Tried a few variations of this and still seem not
    to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
    Any more detailed advive?

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • Multiple conditions for the same button.

    Is there any way you can have multiple condition (same type of the condition).
    I have button that I would like to hide it at different stages.
    For example I would like to have a button (Submit) which will be visible when
    Status = Draft
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_STATUS
    Draft
    and when also when userRole = author
    Condition Type Value of Item in Expression 1 = Expression 2
    P9_X_USER_ROLE
    Author
    Robert

    Hi,
    It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
    If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
    Andy

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • How to get Multiple Key Combinations

    Hi,
    I am trying to get the event for multiple key combinations, ie some thing like "*Ctrl + I + M*" or "*Alt + A + S + D*".
    For two key combinations ( like Ctrl+I or Ctrl+M) i am able to get, but for more than two keys combinations, can someone give an idea how to get it.
    I tried with both KeyCodeCombination and KeyCharacterCombination.
    Below is a quick example to check for the key combination demo.
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.input.KeyCharacterCombination;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyCodeCombination;
    import javafx.scene.input.KeyCombination;
    import javafx.scene.input.KeyEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    public class KeyCombinationDemo extends Application {
         Stage stage;
         Scene scene;
         StackPane root;
         public static void main(String[] args) {
              Application.launch(args);
         @Override
         public void start(Stage stage) throws Exception {
              this.stage = stage;
              root = new StackPane();
              root.getChildren().add(new Label("Enter any Key"));
              this.scene = new Scene(root, Color.LINEN);
              stage.setTitle(this.getClass().getSimpleName());
              stage.setWidth(600);
             stage.setHeight(600);
             stage.setScene(this.scene);
             stage.show();
              final KeyCombination keyComb1=new KeyCodeCombination(KeyCode.I,KeyCombination.CONTROL_DOWN);
              final KeyCharacterCombination keyComb2 = new KeyCharacterCombination("M",KeyCombination.CONTROL_DOWN);
              this.scene.addEventHandler(KeyEvent.KEY_RELEASED, new EventHandler<KeyEvent>() {
                   @Override
                   public void handle(KeyEvent event) {
                        if(keyComb1.match(event)){
                             System.out.println("Ctrl+I pressed");
                        }else if(keyComb2.match(event)){
                             System.out.println("Ctrl+M pressed");
    }Thanks in Advance.
    Regards,
    Sai Pradeep Dandem.

    Hi John,
    Thanks for the prompt response.
    I tried the way you suggested and it worked well !! Thanks :)
    But, still i am expecting a direct way to handle this. :p
    Anyway here is code which i modified accordingly
    final String keyCombination1 = "_ALT_E_O";
    final String keyCombination2 = "_ALT_E_P";
    final String keyCombination3 = "_CONTROL_H";
    final StringBuilder key = new StringBuilder();
    this.scene.addEventHandler(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
         @Override
         public void handle(KeyEvent event) {
              String codeStr = event.getCode().toString();
              if(!key.toString().endsWith("_"+codeStr)){
                   key.append("_"+codeStr);
    this.scene.addEventHandler(KeyEvent.KEY_RELEASED, new EventHandler<KeyEvent>() {
         @Override
         public void handle(KeyEvent event) {
              if(key.length()>0){
                   if(key.toString().equals(keyCombination1)){
                        System.out.println("Key Combination 1 pressed");
                   }else if(key.toString().equals(keyCombination2)){
                        System.out.println("Key Combination 2 pressed");
                   }else if(key.toString().equals(keyCombination3)){
                        System.out.println("Key Combination 3 pressed");
                   key.setLength(0);
    });Thanks & Regards,
    Sai Pradeep Dandem

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

Maybe you are looking for

  • Updating Standard comm type in vendor master idoc- CREMAS03

    Hi all, We have requirement of processing inbound vendor master data.We are using CREAMS03 idoc type as our system is 4.6C. While updating venor master in general data we are not able to update the field Standard communication type. Can anybody help

  • 20D Raw files not valid in Bridge CS4?

    Hey there, I'd appreciate some help with this because I am going out of my mind trying to figure this out. I am running Bridge/Photoshop Extended CS4 on Windows XP.  I have updated to Raw 5.5. I manually replaced the  "Camera Raw.8bi" (preserving old

  • Export or transport all the RFC destination from one system to another syst

    Hi Is there any method to Export or transport all the RFC destination from one system to another system

  • How to setting PM order to create PR ?

    Dear experts : When I create a PM order with many operations items , and the items need to be done external. How to config for below cases when PM order save ? 1. Each item create it's own PR. 2. All items create one PR. By the way , if it is possibl

  • Make Cost center in grey mode after releasing order

    Dear Guru, At the time of creating order [IW31] I have made Cost center as Mandatory under Location Tab. My requirement is after releasing order the Cost center has to be in Grey Mode Is there any Configuration settings available or any alternativea