Multiple values in report column

Hi there,
I have a problem that i hope you can help me with.
I have a value in a tabel cell like P:E which actually means two values: Post, E-mail.
When I make a report how can i make it so that it shows the values Post, E-mail instead of P:E?
Thank you in advance.

Anon.,
You could set something like this as the region report source:
SELECT substr(mycol,1,instr(mycol,':')-1) Post
    ,         substr(mycol,instr(mycol,':')+1)  Email
FROM     mytableAndy

Similar Messages

  • How do you lookup multiple values in different columns based on variable criteria?

    Essentially, I'd like to be able to do a Vlookup but instead of searching for one value only, search for multiple values in separate columns. A smaller version of my current spreadsheet as an example...
    Attack Type ->
    Fire
    Water
    Grass
    Fire
    1/2x
    2x
    1/2x
    Water
    1/2x
    1/2x
    2x
    Grass
    2x
    1/2x
    1/2x
    Fire/Water
    1/4x
    1x
    1x
    Fire/Grass
    1x
    1x
    1/4x
    Grass/Water
    1x
    1/4x
    1x
    The headers are the attack types and the list of types to the left are the receiving Pokemon. Fire does half damage (1/2x) to fire types, Water does double damage (2x) to fire types, etc. I'd like to be able to search for specific damages for each type. For example, I'd like to find a Typing that recieves half (1/2x) damage from Fire-type attacks but also recieves double (2x) from Grass-type attacks. I do want more than just two search criteria though seeing as the actual table is much, much larger.
    I've tried assigning number values to each damage multiplier and then merging all of them together for a specific typing and doing a VLOOKUP based on checkboxes determining what damage multiplier I want in a few specific types, the rest being filled in to the standard of 1x but the result isn't correct most of the time.

    Hi Mitchell,
    VLOOKUP can be set for accept either an 'exact match' or a 'close match'.  Your 17 digit 'number' is actually a 17 character text string (Numbers can handle numbers to a precision of only 15 places). Provided all 17 digits are present, sorting should be the same as for numerical values—the leftmost character is the most significant.
    As a text string, your 'number' is sorted/evaluated alphabetically. A 'close match' accepts the 'largest value that is less than or equal to the search value'.
    If your search term is 000200000 (a 9 character string), several 'wrong' answers will fit the 'close match' criteria, including all of those listed below:
    000200000 (the 'correct' match)
    0000xxxxx (x may be any of the three acceptable values)
    0001xxxxx (x may be any of the three acceptable values)
    The main problem here is that digits in a number (or characters in a text string) have decreasing significance related to their distance from the beginning of the string/number. You want a search in which each character has the same significance as each of the others when compared to the search key. To do that, you need to compare each character in the search string with the character in the same position in the similar string for each type of Pokemon, then take a count of the matches or a sum of the differences.
    Here's one approach:
    Column A contains labels.
    Column B, the 17 digit search term, created in whatever manner you wish, and the similar 17 digit string for each of the characters.
    Columns C through S contains a formula that detines, using subtraction, the difference between each digit of the search term and the corresponding digit of each character's profile.
    Column C uses SUM() to calculate the total of columns C to S for each row.
    T1 uses =MIN(T) to calculate "least different" profile.
    Column A is a Header column; Row 1 is a Header row.
    Formulas:
    C2, and filled right to S2, then down to the last row of data:
    =ABS(MID($B$1,COLUMN()-2,1)-MID($B2,COLUMN()-2,1))
    T1: =MIN(T)
    T2, and filled down column T: =SUM(C2:S2)
    The conditional formatting rule set for all body cells in column T is shown below the table.
    This may be enough to get you started. Formulas can be tweaked to produce results more closely matching what you're looking for, if necessary.
    Regards,
    Barry

  • Few values of report column do not display in report while applying filter

    Post Author: anuragg11
    CA Forum: WebIntelligence Reporting
    There are 6 drill filters applied on the report to filter out the report column data. Few values of the report are not displaying in the report when using drill filter. Same issue is with report filter too. If filters are removed then values are appearing in the report. We are using version BO XI R2 & Java runtime JRE 1.4v. It doesn't look issue is with Java version because only few specific data of the report column are not shown in the report when using filter on the data. Example: One of Report data column contains below values: 24.2, 26.9, 120.1, 230, 274.9, 275.8, 333.2 Report is displaying all these values when there is no filter on any data. But report doesn't display data when applying filter on 274.9 or 120.1 howver filter on other values 24.2, 26.9, 230, 275.8, 333.2 are working fine.

    Hello,
    I think i know what your problem is.
    Although in table view your 2 requests combine perfectly and show separate results in pivot view BI unfortunaterly adds them up.
    One work around would be to go in your criteria add in each request a dummy column. This can be obtained the following way:
    1. click on a column to add it in the criteria (it doesnt matter which one)
    2. go into the edit formula of that column
    3. delete the formula and in its place write 'Dummy Column 1'
    Do the same for the second request by adding a "Dummy Column 2'
    Now the Pivot Table should also show up correctly
    Let me know if it goes well or if you have any further questions,
    Kostis

  • How to represent multiple values in one column

    Hi,
    I need some help in designing a schema for this problem.
    I have :
    - 4 domains
    - In each domain there will be many groups
    - users belong to multiple groups in multiple domains
    Eg.
    user1 might be in groups g1, g2 and g3 in domains d1, d2
    In a text file I represent it like this:
    user1 | d1 | g1,g2,g3
    user2 | d2 | g1, g2
    etc.,
    How do design a schema for this. I don't like the idea of having comma
    separated values in columns.
    Thanks.

    Good instincts. You don't want to have comma-separated values in a column, that violates basic normalization rules.
    You would probably want something like this
    CREATE TABLE usr (
      user_pk
      user_id
    CREATE TABLE grp (
      group_pk
      group_id
    CREATE TABLE domain (
      domain_pk,
      domain_name
    CREATE TABLE domain_group (
      domain_pk,
      group_pk
    CREATE TABLE user_group (
      user_pk,
      group_pk
    )where you create separate tables that map different things to each other. domain_group shows which groups are associated with a particular domain, user_group shows which users are associated with a particular group.
    Justin

  • Passing multiple values to report

    Hi,
    I have a parameter form. One of the field will have at least one value. When it have more than one value, the values will be separate by a comma and pass to the report. Please tell me how separate them and put them in quotation in the report query.
    EX: the values are: PO, DR
    There will be in the where condition as: where code in ('PO', 'DR');
    Thank you in advance.
    ps. I am using 10g
    Edited by: 945599 on Jul 10, 2012 2:04 PM

    Hello,
    Forms does not allow user to select multiple values from a list item!
    The purpose of the LIST ITEM is to provide a list of values for data entry. Since data entry is for a single row of data, the LIST ITEM allows a single value to be selected. Selecting multiple values in the LIST ITEM for a single value item on a single record is not the function of a LIST ITEM.
    So, if you need to select multiple values from a field and pass them through a single parameter to report, i will present you two methods to achieve this!
    First Method is the text item Method:
    Stept 1:
    Create the text item with the values you need to send to reports.
    Step 2:
    Create 2 visual attributes.One visual attribute is for selected values and the other one is for deselected values
    Step 3:
    Create a parameter, in forms parameter layouts which will hold the selected value.This parameter will be used to set the report query clause.
    Step 4:
    Create a trriger for the item which you created at step 1. An example is when-mouse-click trriger.In the body of the trriger,if the item instance is clicked you will modify its visual attribute and the parameter created at step 3 will receive the item instance value.
    Step 5:
    In reports create a user lexical parameter(which is a large text parameter ex 2000).Ex. P_Clause.The value of this parameter is the value recrived for the form parameter you created at step 3. You report query will be like this: select * from table where &P_Clause!
    Second Method is the checkbox Method:
    Stept 1:
    Create a checkbox item near the text item with the values you need to send to reports.
    Step 2:
    Create a parameter, in forms parameter layouts which will hold the selected value.This parameter will be used to set the report query clause.
    Step 3:
    Before you call run_report_object proc, you will need to loop through records and build you parameter with the selected checkbox instances!
    Step 4:
    In reports create a user lexical parameter(which is a large text parameter ex 2000).Ex. P_Clause.The value of this parameter is the value recrived for the form parameter you created at step 3. You report query will be like this: select * from table where &P_Clause!
    Hope this helps.
    Regards,
    Alex

  • Multiple value in one column issue

    Dear proffessionals,
    i'm trying to put more than one value in one column, so i have next problem:
    1. Query select cr_pjid from acc_users where username='ACCBTPS121' give result
    CR_PJID 
    '26','63'2. Query select * from acc_accbtp_nova_view where ed_id=2 and to_char(pj_id) in ('26','63'); return 186 rows.
    3. Query: select * from acc_accbtp_nova_view where ed_id=2 and
                  to_char(pj_id) in (select cr_pjid
                  from acc_users
                  where username='ACCBTPS121'); doesn't return any row... :(
    Could anyone help me ?
    Thx in advance,
    Adnan

    After researching, I think that the best idea is to create another table with multiple rows and different values for one column...
    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425]

  • Select multiple values in report level filters

    Hi All,
    I have report level filters in my webi report and i would like to seect multiple values from each filters?
    is there any work around for this? your help is highly appreciated.
    Thanks,
    Ann

    Edit your Report in WebI. From the left side select the last Input Control Tab.
    Click on New. Click on the field for which you need this Filter and select Next.
    You will see Input Controls avaialble foir Single Values. Scroll Down. There you will see the Checkbox, List Box etc available for Multiple values. Click on one of them and click Next and Finish.

  • Problem in passing multiple values between reports

    Can anyone help me in passing multiple values in prompts between reports in CRYSTAL REPORTS 2008  using opendoc or any method. I am able to pass single value from main report to second report. but not able to pass multiple values. Plz help me . Thanks in advance

    Hi Ramy,
    How you are passing your prompt values ? where you have created these prompts ? i.e. created these prompts in report level or stored procedure or Add command ?
    Thanks,
    Sastry

  • Retrieving multiple values from one column in SELECT statement

    Hi,
    I have a slight dilemma in that I'm trying to pull down all the values from a column from a select statement that includes some JOINS in it.
    If I run the query at the SQL Plus prompt, it pulls back all the values/rows.
    When I run the select (and prepared ) statement in my JSP, it only pulls back one of the 4 values I'm trying to retrieve.
    e.g.
    at the DB level :
    SELECT role_name, CC_ID FROM votetbl a
    INNER JOIN APPROVERS b ON
    a.BUSVP = b.BUSVP AND
    a.BRANCH = b.BRANCH
    WHERE CC_ID = 1688this will return:
    ROLE_NAME CC_ID
    ops 1688
    ops 1688
    comply 1688
    legal 1688
    comply 1688
    When run in my JSP, like so:
    String primID3a = request.getParameter("primID");
    Statement stmtovoter = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    String prepvotSQL = "SELECT role_name, CC_ID FROM votetbl a INNER JOIN APPROVERS b ON a.BUSVP = b.BUSVP AND " +
                         "a.BRANCH = b.BRANCH WHERE CC_ID = ?";
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    out.println("Vote category: "+votecat);I only get ops returned.
    Do I need to run an enumerator? Or reqest.getParameterValues or use a while statement around the results set?
    Any feedback and direction here is welcomed!
    Thanks!

    Actually, I tried looping and still only get 1, but returned several times.
    i.e.
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    while (rest3.next()) {
    out.print("category roles "+votecat);
    }then I get returned the following:
    admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admin
    like so.
    Where as at the DB level I get
    ROLE_NAME CC_ID
    admin 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    risk 1688
    comply 1688
    legal 1688
    legal 1688
    ops 1688
    comply 1688
    Maybe the while should go around the getString(1) designation? But I was thinking I'd tried that and gotten invalid cursor error
    Something is definitely amiss, between the prepared statement in the servlet and the SELECT statement at the DB level.
    I can totally hardcode the statement in the servlet or JSP and it will return one value potentially several times, but only one.
    Other times, it will not return a value at all, even though one resides in the db.
    Yet go to the DB/SQL Plus prompt and it returns perfectly. I can simply copy and paste the SELECT statement from the out.print line I made and it works like a champ in SQL Plus. Any ideas why the same exact thing cannot return the proper values within the servlet/JSP?
    Yeeeeeeesh!!! : (
    Message was edited by:
    bpropes20

  • Display multiple values in a column in ALV

    I need to display plant order number from AFPO and PLAF table in reference to Goods Recepient(WEMPF) field.
    now in final internal table I assign AFPO--> Plant number value to PLNUM column of ALV.
    how do I add value to same column based on WEMPF common value for both table and append value to PLNUM column below value fetched from AFPO table.
    code for getting value from PLAF table.
    SELECT WEMPF PLNUM
    FROM PLAF
    INTO TABLE IST_PLAF
    FOR ALL ENTRIES IN IST_AFPO
    WHERE PLNNO = IST_AFPO-WEMPF
    AND  ......
    Point is for some WEMPF field entried their will be number of entries in AFPO and PLAF table (in PLNUM column)  so how I do displaying entries from both tables in single row??

    Hi Ankitkumar Dineshkumar Gautam,
    SAP would say: "This is a consulting issue". I would say: What's your problem? Look at some samle programs.
    Regards,
    Clemens

  • Passing value from Report Column to Javascript

    Dear Apex wizards,
    I am a bit stuck right now with implementing a modal pop-up/iframe/javascript and this forum is my last hope to fix this issue.
    Anyway, will try to explain what I am trying to accomplish.
    What I need is: I want to have an SQL report, as a very first column I want to have an "ID" numbers from my table and I want this column to have a "Column Link" set in "Column Attributes" proper ties. The trick is, that when I click on the column link (when I run my report on Apex page) I need a JQuery modal window to pop-up where in IFrame will be another page and this page will use an "ID" from my column link URL to display data. So, basically I want to pass an "ID" value from my parent page to my child page which is displayed in iFrame of modal window.
    And here is what I have:
    1. I do have an SQL report:
    select SUBNET_ID,
           long2ip(NETWORK_ADDRESS),
           long2ip(SUBNET_MASK),
           long2ip(END_HOST),
           long2ip(START_HOST),
           MAX_HOSTS,
           long2ip(BROADCAST_IP),
           NETWORK_CLASS,
           NETWORK_SIZE,
           HOST_SIZE
    from   YC_CM_IP_SUBNETS 2. Then, in "Column Attributes" for "SUBNET_ID" a have set a "Column Link" to URL as : javascript:ViewNetworkDetails(#SUBNET_ID#); 3. Now, when I run my page and point my mice on any item in my "SUBNET_ID" column I can see that it is getting a "SUBNET_ID" number from my table and it shows it in the buttom of the browser as :javascript:ViewNetworkDetails(1);, or (2) or whatever "SUBNET_ID" is. So, that is good.
    4. And here I am getting confused, basically I have to pass a value of javascript:ViewNetworkDetails(#SUBNET_ID#);, which seems to work as it gives me correct numbers from my table, to my "ViewNetworkDetails" JavaScript function, so it can paste this value into "f?p=........." iFrame URL. Below is my Jquery Modal form script and Javascript to redirect me to my popup page (the script is in HTML Header):
    <script type="text/javascript">
    function ViewNetworkDetails(){
    var apexSession = $v('pInstance');
    var apexAppId = $v('pFlowId');
    var subnetIDNumber = document.getElementById(#SUBNET_ID#);
    $(function(){
    vRuleBox = '<div id="ViewNetworkDetailsBox" title="View Subnet Details">
    <iframe src="f?p='+apexAppId+':103:'+apexSession+'::NO:103:P103_SUBNET_ID:'+subnetIDNumber+'
    "width="875" height="500" title="View Subnet Details" frameborder="no"></iframe></div>'
    $(document.body).append(vRuleBox);
    $("#ViewNetworkDetailsBox").dialog({
                            buttons:{"Cancel":function(){$(this).dialog("close");}},
                            stack: true,
    modal: true,                            
                            width: 950,                    
    resizable: true,
    autoResize: true,
    draggable: true,
    close : function(){$("#ViewNetworkDetailsBox").remove();
                            location.reload(true); }
    </script> P.S. My assumption is, that there is a problem with this part of my scriptvar subnetIDNumber = document.getElementById(#SUBNET_ID#); where I cannot get my "SUBNET_ID" value from javascript:ViewNetworkDetails(#SUBNET_ID#); into "subnetIDNumber" variable and that is why I cannot pass it to my iFrame URL.
    P.S. P.S. the child page 103 has a "Automated Row Fetch", so it is not a problem. In addition, I did a simple test, where I had a page item "P102_Value" with some value and in my script I had instead var subnetIDNumber = document.getElementById(#SUBNET_ID#); this var subnetIDNumber = $v('P102_Value'); and it worked perfectly fine....but cannot make it working against SQL Select statement :-(
    HEEEEEEEEEEEEEELLLLLPPPP.
    Thanks

    Change your column link to send the subnet_id column's value to the function call (you mentioned it, but I m not sure if you actually did)
    javascript:ViewNetworkDetails(#SUBNET_ID#);<u>You are passing the parameter value to the function, but not defined any parameters in the function definition</u>(this is possible in JS, any extra parameters is ignored)
    So, modify the function to accept the subnet ID parameter(I am actually surprised how you missed this) and assign that parameter to variable.
    <script type="text/javascript">
    function ViewNetworkDetails(pSubnetId){
    var apexSession = $v('pInstance');
    var apexAppId = $v('pFlowId');
    var subnetIDNumber = pSubnetId;
    //rest of the code would be the same

  • Multiple values from same column in diffetent columns in same row??

    Hi all,
    I am wondering how you can display different values from the same column into different columns on same row. For example using a CASE statement I can:
    CASE WHEN CODE IN ('1', '3') THEN COUNT( ID) END as "Y"
    CASE WHEN CODE NOT IN ('1', 'M') THEN COUNT( ID) END as "N"
    Yes this will produce two columns needed but will also produce two separate records and null values for the empty's.
    Any ideas?
    Thanks

    It's not clear what you want.
    Can you post some examples as described in the FAQ: {message:id=9360002}
    As my first guess, I would think you're looking for something like...
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select count(case when deptno in (10,20) then deptno end) as deptno_10_20
      2        ,count(case when deptno > 20 then deptno end) as deptno_30plus
      3  from emp;
    DEPTNO_10_20 DEPTNO_30PLUS
               8             6

  • Store multiple values in a column instead of creating additional rows

    Hi there :)
    Can you guys show me a technique to translate the following result set:
    Bus_ID  Driver_Name   State
      1               Alan          FL
      1               Alan          FL
      1               Dan          WA
      2               Lukas       FL
      2               George     WA
    Into:
    Bus_ID  Driver_Name   State
      1         Alan, Dan          FL, Wa
      2         Lukas, George    FL, WA
    How can this result be achieved?

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. The useless text you posted is not a table! There is no key, and you want to destroy First Normal Form (1NF). Please, please, please read just one book on RDBMS so we will not have to read another posting like
    this. It is painful to see this. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Multiple values into single column

    Hi ,
    Im having the query like as below
    with t as ( select 'Approved' as "Code" from dual union all
    select 'Historically Relevant' from dual union all
    select 'In Progress' from dual union all
    select 'Internal Review' from dual )
    select "Code"  from t  where "Code" in ('Approved,Historically Relevent')
    in this i need the output like below . ie, what are the things i have selected in where clause based on that the output need to come
    'Approved,Historically Relevent'
    Thanks in Advance ...

    Always remember to post your database version as it can make a difference to the answer.
    In 10g you would use sys_connect_by_path to aggregate strings together...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'Approved' as code from dual union all
      2             select 'Historically Relevant' from dual union all
      3             select 'In Progress' from dual union all
      4             select 'Internal Review' from dual )
      5  --
      6  -- end of test data
      7  --
      8  select ltrim(sys_connect_by_path(code,','),',') as codes
      9  from (
    10        select code, rownum r
    11        from t
    12        where code in ('Approved','Historically Relevant')
    13       )
    14  where connect_by_isleaf = 1
    15  connect by r = prior r + 1
    16* start with r = 1
    SQL> /
    CODES
    Approved,Historically Relevant
    In 11gR2 onwards you can use the new LISTAGG function
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'Approved' as code from dual union all
      2             select 'Historically Relevant' from dual union all
      3             select 'In Progress' from dual union all
      4             select 'Internal Review' from dual )
      5  --
      6  -- end of test data
      7  --
      8  select listagg(code,',') within group (order by rownum) as codes
      9  from t
    10* where code in ('Approved','Historically Relevant')
    SQL> /
    CODES
    Approved,Historically Relevant

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

Maybe you are looking for