Ordering according to column defined values

OBIEE 11.1.1.7.1
i want to order the pivot table values according to a column values defined in 'ord_by' column.
pls help

Hi Ashish,
I think you have to manually iterate the collection and filter them according to the value of quantity in each line.
Regards, Sudeep..

Similar Messages

  • How to hide/show a column in reports 10g according to the parameter value

    Hi,
    I want to hide a column in the report according to the parameter value, is it possible?
    For example, there is a parameter called P_TYPE. I want to hide a column called 'BALANCE' if the P_TYPE=0.
    This column is not the last one in the table, so if it is hide then that empty space should be occupied by next column.
    Is it possible means please explain me how to do it?
    Thanks in advance,
    SAN

    Create a format trigger (for both the header and the column item) that returns False on you condition.
    Set the horizontal elasticity to Contract (for both the header and the column item).
    Sometimes Contract doesn't work. Try Variable in that case. This has the disadvantage that the field can also expand.

  • Why order by clause maintains column number values instead of column names

    why order by clause maintains column number values instead of column names ?

    we can use oder by 1,2 as column number
    UGNo one said that it can't be used. What's your point?
    To OP: It can be written with the column's 'select list positional number' just because for the support of laziness. :)
    There's no difference between 'ORDER BY name, address' and 'ORDER BY 1,2'.

  • How to get column default value define on table?

    Hi,
    I am trying to get a table column default value with no success. I am using the Oracle Data Provider for .NET 10g Release 2 (10.2.0.2)
    1). OracleConnection.GetSchema( "Columns", New System.String() {"<Owner>", "<Table_Name>"} returns everything BUT default value.
    2). I tried querying oracle directly (sample below) but the default value comes back blank even though the column has one defined.
    Dim oracleConnection As Oracle.DataAccess.Client.OracleConnection = factory.CreateConnection
    Dim oracleCommand As New Oracle.DataAccess.Client.OracleCommand( _
    "SELECT data_default FROM DBA_TAB_COLUMNS WHERE OWNER = 'TEST_SCHEMA' AND UPPER( TABLE_NAME ) = 'TEST' AND UPPER(COLUMN_NAM) = 'TESTCOL'")
    oracleConnection.Open()
    oracleCommand.Connection = oracleConnection
    Dim oracleReader As Oracle.DataAccess.Client.OracleDataReader = oracleCommand.ExecuteReader
    oracleReader.GetValue(0) 'This will return blank rather than default value for the column.
    oracleReader.Read()
    oracleReader.Close()
    oracleConnection.Close()
    Any help would be appreciated.
    Thanks,
    Rob Panosh
    Advanced Software Designs

    Hi Rob,
    I just ran up a quick test and I can't duplicate the behavior you describe.
    I created a simple table as "scott":
    SQL> create table def_test(c varchar2(32) default 'hello, world');
    Table created.In my simple test I used the following C# code:
    NOTE: There is an error in this code if using ODP.NET (see my post below for details on this)
    using System;
    using System.Data;
    using System.Data.OracleClient;
    class Program
      static void Main(string[] args)
        string constr = "user id=scott;" +
                        "password=tiger;" +
                        "data source=orademo;" +
                        "pooling=false;" +
                        "enlist=false";
        OracleConnection con = new OracleConnection(constr);
        con.Open();
        OracleCommand cmd = con.CreateCommand();
        cmd.CommandText = "select   data_default " +
                          "from     all_tab_columns " +
                          "where    owner='SCOTT' " +
                          "and      table_name='DEF_TEST' " +
                          "and      column_name='C'";
        OracleDataReader dr = cmd.ExecuteReader();
        dr.Read();
        string defaultValue = (string) dr.GetValue(0);
        Console.WriteLine("Default value is: {0}", defaultValue);
        dr.Dispose();
        cmd.Dispose();
        con.Dispose();
    }Since the GetValue method returns an "object" I cast the value to a string and got the correct result.
    However, I don't have a 10.2 ODP.NET environment right now so I was using 11.1 for this.
    In your real code I suspect that you assign "oracleReader.GetValue(0)" to something - when you say "blank" do you mean zero length or a space or something else?
    Regards,
    Mark
    Edited by: Mark Williams on Jul 31, 2009 10:02 AM

  • How do I access a value of a variable in SSIS and control the flow accordingly based on its value?

    So I have a Foreach Loop Container that Enumerates a read Excel spreadsheet and this Foreach Loop get its User::SheetName. Can I change my flow accordingly based on the value of the User Variable User:SheetName that is dynamically valued by the Foreach Loop
    Container? So if the User::SheetName is "Enrolled", I want to load that worksheet to a certain SQL Server Table using an Excel Source and OLE DB Destination and if the User::SheetName is "Engaged", I want to load its worksheet contents
    to a different SQL Server Staging Table. What Task can I use to determine the value of User::SheetName or am I going to have to write a C# script to do this?
    Any help and/or suggestions are GREATLY appreciated.
    Thanks!

    Hi ITBobbyP,
    According to your description, you want to read data from excel by using the Foreach Loop container with the appropriate enumerator. If that is the case, please refer to the following steps:
    Inside the ADO NET enumerator, add a data flow task.
    Inside the data flow task, add an Excel source.
    Open the Excel source, and point to the Excel data source set up in the file enumerator.
    Select one of the sheets that shows in the drop down.
    Close the Excel source.
    Select the Excel source.
    In the properties window, copy the name of the sheet you selected. It's in the 'OpenRowset' property.
    Set this as the initial string in your sheet name variable created to gather the sheet name from the ADO NET enumerator.
    Select the Excel source.
    In the properties window, change the 'AccessMode' to OpenRowset from Variable. This will change the property 'OpenRowset' to 'OpenRowsetVariable'.
    Change the 'OpenRowsetVariable' to the variable created to hold the sheet name via the dropdown.
    Open the Excel source. You should see your variable as the sheet name.
    Click the 'Columns' tab to verify you can connect and mess with columns.
    For detail information, please refer to the following document:
    https://technet.microsoft.com/en-us/library/ms345182.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to change the order of the columns in system matrix?

    Hi all,
    Is there any way to change the order of the columns in system matrix through SDK, without doing it from 'Form settings'??

    Hi ,
    is this true for the 'Active' property also , in CPRF table? I want to check whether the Item is active or not becuse, when I m trying to copy the value in item which is not active, I m given error. Is there any way to change or active the 'Active' flag in form settings at run-time?
    Any clue?
    Thanks in advance,......
    Binita

  • Automatic payment: OBBA Define Value date rules

    hi experts,
    Have you ever tried OBBA to define Value date rules? I met a problem with it.
    In OBBA, my configuration is as follows:
    House banK Account ID Transaction R C1 S Dev C2  A
    CIT1               CNY                              3 CN -    1   CN  -
    CN is the Factory Calendar China.
    According to this configuration, I suppose the Value date will take Due date as reference date, minus one day, and if the Value date calculated is Weekend or Public holiday, it will use the last week day as the Value date.
    But I made two tests:
    In the first test, my OBBA configuration is exactly like above one I listed, in my payment proposal, the invoce Due date is 20-Jun, Value date is also 20-Jun, but I think according to the configuration, the Value date should be 20-Jun minus one day=19-Jun which is a weekend, so should be the last week day 18-Jun.
    My first test tell me the Deviation from reference date in days and the Calendar does not work.
    In my 2nd test, I changed the Reference date to 2 (Posting date), but in my payment run, the Posting date is 9-Jun, the invoice Due date is 20-Jun, the Value date is still 20-Jun.
    My 2nd test tell me the Reference date for determining the value date does not work.
    Have you met such problem, it seems the OBBA totally dose not work.
    many thanks!
    best regards
    Sophie

    Hi Sophie,
    I guess it is too late for you already but maybe this helps to other people with similar issues. You also need to assign the transaction created in OBBA to a specific payment method:
    But what is even more important is that you need to tick this box in the payment method company code settings - "payment per due date".
    Regards,
    Ondrej

  • Selecting PM order according to status in report

    hello
    we are writing a report in which we need to select PM orders according to several parameters, one of which is a specific User Status.
    I see that there are many tables containing statuses, like TJ20, TJ30, and plenty of others but I cannot find a reference field to connect the status to the PM order.
    meaning: TJ30T for instance has a field TXT04 which contains the user status but, no field for the PM order to find the actual order status to compare.
    how can I connect a specific order to a table containing user status?
    thanks
    Alisa

    Alisa,
    From AUFK table you need to fetch the value for OBJNR for the order number(AUFNR), and using OBJNR value in JEST table you can fetch the status which are active and Inactive.
    Text and status details are available in TJ02.
    Regards,
    Prasobh

  • How  to retrieve a column field value from an ADF table ?

    All,
    I have a backing bean where I have bounded a field of an ADF table.
    I would like, in the bean, to read the value of that field so that I can use it inside a task flow router.
    The question: how to read a value from a ADF table column field ?
    In the bean I have the getter and setter of the RichInputText ADF table field. But when I type:
    System.out.println("the name is: " + this.getName().getValue());
    or
    System.out.println("the name is: " + this.Name().getValue());
    I get a null pointer exception.
    Thanks in advance,
    Sergio.

    Thanks Marvin, but this is not really what I'm looking for. Or at least, it does not sounds like to be :)
    I need to get the value contained in a row cell of an ADF table.
    Let's say the table (two rows, three cells) contains these values:
    "table_A", "123", "John"
    "table_B", "456", "Peter"
    When I click on the first row, I need the value: "table_A". Once I got that value, I extract the last char, in this case: "A", and then I call a specific task flow from a task flow router (specified in the task flow router Cases property).
    When I click on the second row, the same process applies, only the router now points to another flow view.
    So to summarize, I need to get the value of a row cell in an ADF table. How to do that from within a javaBean in JDeveloper 11g Release 2 ?
    This is what I have in the bean; so far I've bounded the related row cell (herkunft) to the bean. Each time I select a row on the ADF table, the function setHerkunft() runs - I see that from within the JDeveloper console - but when I try to get its value, I get a null value - hence the surrounding if statement.
    package bean;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    +public class taskFlowBean {+
    public RichInputText herkunft;
    public static String taskFlowView = "C";
    +public taskFlowBean() {+
    System.out.println("taskFlowBean constructor call");
    +}+
    +public void setHerkunft(RichInputText herkunft) {+
    System.out.println("set herkunft");
    this.herkunft = herkunft;
    if (this.getHerkunft().getValue() != null )
    System.out.println("herkunft is: " + this.getHerkunft().getValue());
    +//here taskFlowView will set accordingly with the herkunft value.+
    +}+
    +public RichInputText getHerkunft() {+
    System.out.println("get herkunft");
    return herkunft;
    +}+
    +public String getTaskFlowView() {+
    System.out.println("get taskFlowView ! : " this.taskFlowView);+
    return this.taskFlowView;
    +}+
    +}+
    Regards,
    Sergio.

  • Problem While Defining  "VALUE SET"

    Dear All,
    I am finding problems while defining "Value Set".
    I wanted to select "DISTINCT" Column from a particular Table.
    It is not allowing me to select distinct Column.
    Is there any other alternative ??

    Hi Tarak,
    Create a view selecting distinct values and then use this view as a table in your value set.
    Vishal

  • Undo User Defined Value

    I create a user defined value in the production order screen for Product No. by mistake.  How do I reestablish the connection between Product No. and the List of Bill of Material?
    Regards,
    Fred

    Hi Fred,
    You just need to ShiftAtlF2 to bring up design page and change it to without User Defined Value.
    Thanks,
    Gordon

  • Cannot Alpha Order a Single Column of Info - PLEASE HELP

    I'm an expert on Excel and recently switched to a Mac and am now using Numbers. It should be simple to alpha order a single column of words, but after three days I can't get any options to work.
    When I try to sort just the column and select just the column name and just the selected cells it sorts the entire spreadsheet over and over again. Instant alpha is grayed out an unusable from the Format menu.
    PLEASE HELP! How can I get a single column of words to sort in alpha order. Nothing I've tried works and when I follow the help menu instructions it still sorts the entire spreadsheet and not just the selected column.

    NeedHelpNow2011 wrote:
    When I try to sort just the column and select just the column name and just the selected cells it sorts the entire spreadsheet over and over again.
    Hi Need',
    Welcome to Apple Discussion and the Numbers '09 forum.
    Numbers considers all of the date in a row to be a set (in database terms, a record), and sorts accordingly.
    Here are two ways to sort a single column:
    1. Copy the data from the column, Paste into a single-column table (or an otherwise empty table with any number of columns), perform the sort, then copy the newly sorted data and paste it back into the original column.
    2. Grab the column you wish to sort, tear it out of its table to form a new single column table. Sort, then drag it back into position and drop it back into the original table.
    The second method requires some explanation, which you'll find on page 58 of the Numbers '09 User Guide, or in more detail, in this discussion from a few days ago. Scan the thread for this image, check that message and the ones below it.
    On another note, you wrote:
    Instant alpha is grayed out an unusable from the Format menu.
    Instant alpha refers to the alpha channel which may be added to a graphic object to create transparency. It's not connected with sorting text or numbers. More in the Numbers '09 User Guide under "Removing the Background or Unwanted Elements from an Image" in Chapter 9, _Working with Shapes, Graphics, and Other Objects_.
    The numbers '09 User Guide, and its reference companion, the iWork formulas and Functions User Guide, are excellent resources, and well worth downloading and spending a bit of time with. They can be had through the Help menu in Numbers.
    Regards,
    Barry

  • Order by multiple columns and ROWNUM

    Hi -
    I am trying to use rownum in colloboration with order by multiple columns but I guess I am doing something wrong
    and I am always getting a single row per emp_id rather than getting single row for a particular emp_id,role_id,inst_id,exp_date.
    Below is the table ddl and data insertion script.
    ====
    create table tab_details
    (emp_id varchar2(50),
    role_id integer,
    inst_id integer,
    exp_date date,
    chk_ind char(1),
    trans_type char(1),
    trans_date date);
    insert all
    into tab_details values ('JBRAMS',12,4556,'07/15/2011','Y','U','05/21/2011')
    into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011')
    into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','D','05/23/2011')
    into tab_details values ('JBRAMS',12,4556,'07/15/2011','N','U','05/24/2011')
    into tab_details values ('KCASOT',98,9001,'08/03/2011','Y','U','04/11/2011')
    into tab_details values ('KCASOT',98,9001,'08/03/2011','N','U','04/12/2011')
    into tab_details values ('KCASOT',98,9001,'08/03/2011','N','U','04/13/2011')
    into tab_details values ('JBRAMS',43,7875,'06/28/2011','Y','U','03/19/2011')
    into tab_details values ('JBRAMS',43,7875,'06/28/2011','N','U','03/20/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','Y','U','02/13/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/14/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','D','02/15/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','Y','U','02/16/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/17/2011')
    into tab_details values ('BHAYEN',28,4098,'07/01/2011','N','U','02/18/2011')
    select * from dual;
    commit;
    ====
    So for the first four rows inserted above, I need only following row:
    'JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011'
    Basically, I need only the rows with chk_ind='N' and trans_type<>'D' and if there is a row with
    chk_ind='N' and trans_type='U' after trans_type='D" for a emp_id,role_id,inst_id,exp_date then it should be ignored.
    Following are the only rows I am looking for:
    'JBRAMS',12,4556,'07/15/2011','N','U','05/22/2011'
    'KCASOT',98,9001,'08/03/2011','N','U','04/12/2011'
    'JBRAMS',43,7875,'06/28/2011','N','U','03/20/2011'
    'BHAYEN',28,4098,'07/01/2011','N','U','02/14/2011'
    'BHAYEN',28,4098,'07/01/2011','N','U','02/17/2011'
    Please share your thought over this.
    Thanks,
    -Seenu

    Hi, Seenu,
    Seenu001 wrote:
    Hi -
    I am trying to use rownum in colloboration with order by multiple columns but I guess I am doing something wrong
    and I am always getting a single row per emp_id rather than getting single row for a particular emp_id,role_id,inst_id,exp_date.Thanks for posting the CREATE TABLE and INSERT statements. It would help if you posted your query, too: even if it's not qute right, it could help to understand the problem, and modifying it might be more efficient than writing a completely new query.
    What are the multiple columns you are sorting on? Why isn't trans_date enough?
    Here's one way:
    WITH     got_okay     AS
         SELECT     t.*
         ,     CASE
                   WHEN  LAG (chk_ind)    OVER ( PARTITION BY  emp_id
                                     ,           role_id
                                     ,           inst_id
                                     ,           exp_date
                                     ORDER BY      trans_date
                                      ) = 'N'
                   AND   LAG (trans_type) OVER ( PARTITION BY  emp_id
                                     ,           role_id
                                     ,           inst_id
                                     ,           exp_date
                                     ORDER BY      trans_date
                                      ) IN ('D', 'U')
                   THEN  0
                   ELSE  1
              END          AS okay
         FROM     tab_details     t
    SELECT       *     -- or list all columns except d_cnt
    FROM       got_okay
    WHERE       chk_ind     = 'N'
    AND       trans_type     != 'D'
    AND       (     trans_type     != 'U'
           OR     okay          = 1
    ;

  • Sorting table according 2 columns

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have requirement to sort according 2 columns,
    I mean one primary and second secondary.
    The situation now is every click on another column cancel the first sort.
    I'll appreciate any suggestion.
    Thanks,
    Maya.

    Hi Maya,
    Check this links.
    /people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s
    Re: table column sorting
    Re: execute tableSorter
    Regards,
    Mithu

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • How to Create a Back button in Flash

    Hi all, I need to create a back button for my flash app. It doesn't need to be connected with Browser. It just need be able to remember what frame they were viewing, and bring them back. Is there any event I can use for this? I made an variable calle

  • Itunes hangs on disconnect / reconnect of internet connection

    Quite often I do stream internet radio stations using Itunes. I am listening through my BeoCenter2. When I swich of the BeoCenter2, I often forget to stop the stream in Itunes. This would not a problem, but because my internet provider drops the conn

  • Assessment of Cost center to Production orders

    Hi, I would like to run assessment of overhead costs of Production Departament to production orders. However, I get such warning message when creating the cycle: "System error: An invalid transaction was used to check whether or not a business transa

  • Install problem Error with Z drive

    Our IT guys configure our machines with a Z drive as a network share.   Any ideas how to resolve the conflict with PE9 install. Thanks David

  • Dynamic path in km navigation iview

    Hi , We have a km navigation iview where we need to display folder based on the user details in portal. ie if user A logs in the folder path should be xxx/yyy/A if user B logs in path should be xxx/yyyy/B Please let me know if there is anyway to hand