Combine 2 Column Values in One Prompt - - - - Urgent

Hi Experts,
I'm Using Obiee10g.
I have a requirement where i need to create a prompt (based on 2 column values)
Example: Name of Prompt (Search Agency) it has following values
Agency Type1
Agency Type2
Agency Subtype1
Agency Subtype2
Agency Type1, Agency Type2 are Major Types - Which comes from Column: Agency Type
Agency Subtype1, Agency Subtype2 are subtypes - Which comes from Column: Agency Subtype
I took a dummy column from subject area. Converted the Prompt to Sql Results and wrote the following condition.
Select Agency_type from Agency where Agency Type in (Agency Type1, Agency Type2)
union
Select Agency_subtype from Agency Where Agency subtype in (Agency Subtype1, Agency Subtype2)
Now, My Prompt is showing correct values.
And, My Report has following columns: Agency Id, Agency Name, Agency Type, Agency Subtype (Agency Type is prompted or Agency Subtype is prompted)
Now, My Prompt and Report not reflects properly as i need to use multi select for prompts
If, i'm using drop down and storing the values in presentation variable and saying that
Agency Type = pv1 (Presen. variable1) default a
or
Agency Subtype = pv1 (presen. variable1) default a
Then, it works.
But, I need Multi select prompt. And, i cannot use p.v for multi select.
How to acheive the above functionality.
Experts, Please guide me.....

If I'm Using And Condition it fails.
Because,
Say I have Types as - Type1, Type2
Say I have Subtypes as - Subtype1, subtype2, subtype3
Type table
Type1, subtype1
Type1, subtype2
Type2, Subtype3
Now, if select prompt1 ( Prompt1 is prompted -> Type1 is prompted) ----> My report reflects for type1
if I Select prompt2 (Prompt2 is prompted -> Subtype3 is prompted) -----> My Report reflects for subtype3
If i use here And ----> it fails ( Type = Type1 and Subtype = Subtype3)
It should be Or ----> (Type = Type1 or Subtype = Subtype3) ----> this passes only when i select both values. But, my requirement is it should pass for even one selection.
It can be done for drill down and pres. variable. But, my requ. is multiselect.

Similar Messages

  • Clearing Value in one Prompt based on selection in another

    Hello,
    I have 2 prompts in my BEx query designer for same characterstics ( one is single value, characterstic variable and another one is Hierarchy node variable ). During the query execution,  If user selects a value in first prompt and goes to the other prompt and selects a value, i need to clear the selected value in the first prompt. And vice versa as well.....
    Please suggest.

    Jagan,
    Let me explain my isue in detail...
    I have created 2 variables for the same characterstics and both of them are ready for input. One variable is of characterstic type and other is Hierarchy node type.
    Now, when user executes the query he sees two prompts. Lets say user selects a value for one prompt and then goes to second prompt and selects another value for the second prompt, then i need to clear the values that was selected by him for the first prompt. And vice versa....

  • Combine 2 specific column values into one column

    Is there an easy solution to combine column values that is in a group?
    In my report I have 1 column group named Activity_Area which has 5 different values Activity 1, Activity2...Activity5.
    Let's say I want to merge Activity 4 and Activity 5 and call it ActivityX and gives me the output as below
    Activity 1 | Activity 2 | Activity 3 | ActivityX

    Hi Jhonny86,
    According to your description, you create a field in database and it contains five values. Then you want to only display four values in report column group, and the last two values should be replaced by “ActivityX”, right?
    In your scenario, you can create an table like below:
    create table Act(id int,activity varchar(99))
    insert into Act select 1,'Activity 1'
    insert into Act select 2,'Activity 2'
    insert into Act select 3,'Activity 3'
    insert into Act select 4,'Activity 4'
    insert into Act select 5,'Activity 5'
    Then query the table with code like below in query designer, then add the field [Act] into the column group.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Constraining values in Multiselect Prompt-urgent

    Hi Guys,
    I have a problem. I need to constrain the values in a multiselect prompt based on the values of another prompt.
    Now the problem is, the multiselect prompt is constraining the values but when i search for some other value(which should have been constrained) it shows up.
    I tried using presentation variable in the sql query for the prompt. But that also doesnt work.
    Any help please..
    Regards,
    Ronnie

    are you using two different prompts or one prompt with two column selections in it. if it is one prompt then u cannot use pre. variable in the sql query. since the variable will set only after you hit 'go'. create two prompts. one with pre. variable. then use this variable in the second prompt. in your dashboard u need to select a value from the first prompt b4 using ur multiselect prompt.

  • Changing 'All Column Values' in dashboard prompt

    In OBIEE 11g, how to modify the dashboard prompt All label value? I do not want to change value in XML file , because it will impact all dashboard prompt value.
    Is it there better method to implement this problem?
    For example:
    In dashboard prompt-->edit -->options--->tick 'Include "All Column Values" choice in the list', so I can view '(All Column Values)' value in prompt. Customers want to changed this value,such as 'all values'. Is it possible? Thanks.

    Hi,
    Can do it using Union All is prompt SQL and presentation variable in report.
    Refer : http://www.varanasisaichand.com/2010/01/editing-all-choices-in-dashboard.html
    Regards,
    Srikanth

  • How to store all the columns values into one single column

    Hi All,
    this is my file layout,i am receiving the data in below format only
    emp_no,c1,c2,c3,c4,c5
    100 ,1 ,0 ,1 ,0,1
    200 ,1 ,0 ,1 ,0,1
    300 ,1 ,0 ,1 ,0,1
    but i want to store that above data into my table like(from c1 to c5 columns values i want to store in period column)
    emp_no,period
    100 ,1
    100 ,0
    100 ,1
    100 ,0
    100 ,1
    200 ,1
    200 ,0
    200 ,1
    200 ,0
    200 ,1
    300 ,1
    300 ,0
    300 ,1
    300 ,0
    300 ,1
    please help me

    Strange but this is it
    Processing ...
    with original as (
         select 100 as id ,1 as v1,0 as v2,1 as v3,0 as v4,1 as v5
         from dual
         union all
         select 200 ,1 ,0 ,1 ,0,1
         from dual
         union all
         select 300 ,1 ,0 ,1 ,0,1
         from dual
    select id,v1 as res_row
    from original
    union all
    select id,v2
    from original
    union all
         select id,v3
         from original
    union all
         select id,v4
         from original
    union all
         select id,v5
         from original
                      ID                                   RES_ROW
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
    15 row(s) retrievedBye Alessandro

  • Can i get summary column value of one group appears at the last page once

    Hi,
    I am having one group G_Item.I need the summary column(CS_Total_quantity->source as :cp_quantity) value as Total quantity value of the report andprint it on the last page.How can i get that value?Please advise me.Urgent......Waiting for reply.
    Thank You

    try this...
    put a summery column outside the quey.
    & take sum of "CS_Total_quantity".
    set its reset at property to "report". & print object on "last page".
    hope this 'll work for u.
    Capri...

  • Passing value from one prompt to another in different section

    Scenario:
    I have three columns to be used for this particular case
    Month (eg 2011 Jan)
    Month No (eg 201101)
    Previous year Month (eg 201001)
    Now i am using "Month" as a prompt in all my reports.
    But i am fetching the report for a period of 1 year.
    Which means if i choose 2011 Aug then i should get the report for the period 2011 Aug to 2010 Aug.
    I am using intermediate report for this.
    Where i calculate from the original column and fetch the report using "filter based on other reports"
    But now i want to do it using prompts only.
    I want to compare whether it will make the report faster or not.
    The concept is i use "Month"(M) as prompt in all reports.
    But i want to keep "Month No"(MN) and "Previous year Month"(PYM) as prompts too.
    then trigger the value selection of combo1(MN and PYM prompts) with selection of M prompt.
    There should be no go buttons for the combo1 prompt.
    And the combo1 should be hidden so that user is able to see only "M" prompt.
    Please give your opinion for this scenario

    ok, i resolved this issue by passing URL parameters from my calling application to the called application..
    the code I used looks as follows:
    *---- Pass parameters through lt_parms table to URL
      ls_parms-name  = 'OPERATION'.
      ls_parms-value = 'M'.
      APPEND ls_parms to lt_parms.
      ls_parms-name  = 'PROJECT_ID'.
      ls_parms-value = lv_ext_id.
      APPEND ls_parms to lt_parms.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'zps_ppm_idea_sheet'
          in_parameters = lt_parms
        IMPORTING
          out_absolute_url     = str.
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window1 = l_cmp_api->get_window_manager( ).
      result = l_window1->create_external_window(
        URL = STR ).
      result->open( ) .
    I basically transformed my component controller context attributes to URL parameters, called the app in a new browser passing those parameters.
    Then, converted those URL parameters back to component controller context atributes for use on the other side.

  • How to restrict values in one prompt based on value from another prompt

    Hi
           I have a requirement as follows. I have two fields (objects)
    program code
    contract number
    one program code can have several contract numbers.
    I need to provide prompts on Program code and contract number. when user selects one program from the prompt on program code then contract field should only show contract numbers belonging the program user selected.
    Please let me know how to bring this functionality in Webi report.
    Thanks in advance.

    Hi
    if ur requirement is in query level its impossible.(i mean whn u click on programcode then u have to display in contract at query level)
    if you want to display at report level then  
    The two objects Program and contract have a mapping then place a program object in query filter and use operator equal to and select prompt and run the query then it will ask you to select program .whn on choosing it you will  get filtered contract numbers for that program in report level  . There no need to use prompt for contract numbers object .
    Hope this helps u
    Thanks
    sunil
    Edited by: K.sunil on Nov 7, 2011 9:30 AM

  • Query to get combinations of column values

    -- Input Data
    with t as (select 'H' as symbol, 1 as id from dual union all
              select 'H' as symbol, 2 as id from dual union all
              select 'H' as symbol, 3 as id from dual union all
              select 'H' as symbol, 4 as id from dual
    ,s as (select 'L' as symbol, 1 as id from dual union all
              select 'L' as symbol, 2 as id from dual union all
              select 'L' as symbol, 3 as id from dual union all
              select 'L' as symbol, 4 as id from dual
    --select * from t,s
    [pre]
    -- Required output is four columns with the below values. The column headings are the ids from the original query. Therefore I suspect the solution would have some sort of crosstab..
    id1---id2---id3---id4
    HHHH     
    HHHL          
    HHLH     
    HHLL                    
    HLHH     
    HLHL          
    HLLH     
    HLLL     
    LHHH     
    LHHL          
    LHLH     
    LHLL                    
    LLHH     
    LLHL          
    LLLH     
    LLLL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    select REPLACE(sys_connect_by_path(symbol,'-'),'-','' ) "id1---id2---id3---id4"
    from (select*from t union all
    select*from s)
    where connect_by_isleaf = 1
    start with id=1
    connect by prior ID=ID-1
    ORDER BY 1
    I THINK U WANT THIS ........
    select substr(regexp_substr(scbp, '-[^-]*', 1, 1),2) as ID1,
    substr(regexp_substr(scbp, '-[^-]*', 1, 2),2) as ID2,
    substr(regexp_substr(scbp, '-[^-]*', 1, 3),2) as ID3,
    substr(regexp_substr(scbp, '-[^-]*', 1, 4),2) as ID4
    from (
    select sys_connect_by_path(symbol, '-') scbp
    from (select*from t union all
    select*from s)
    where connect_by_isleaf = 1
    start with id=1
    connect by prior ID=ID-1
    Edited by: user12108669 on Nov 12, 2009 9:42 PM
    Edited by: user12108669 on Nov 12, 2009 9:43 PM

  • Combining 2 characteristics values into one

    Dear Experts,
    I have this situation:
    after the 2nd month in the year our sales changed the division settings in ERP. The result is: we have sales data for two mont under one division and for others mont in other division. Plan data for the whole year are like the change would be already in the begining of the year !!
    I would like to display sales data as they should be according to the new situation (just the new division should be displayed. We would like not to load data again (complex delta procedure)!
    Is it possible to sole the issue in BEX query, but the division should be still flexible - no restricted characteristic values (fixed lines definition).
    Thanks, Tom

    As far as I know, there is no easy way to merge two users.
    What I would do :
    - Restore one user account when installing the new machine
    - Copy data from the second user account into the newly created one (Desktop, Documents, music, photos.....) and not Library
    Beware that you will no longer have two distinct Library folder. Taht implies you will lose preferences and potentially other stuffs (Address Book, Calendars, Mails...) from one of the account.
    If you need to get data from such applications, think to exports before launching the installation, then re-import data (calendars, address book...) into the new machine after installing.
    Please carefully plan your migration to avoid data loss.
    Why reward points ?

  • Concatenate various column values into one

    How can I concatenate all values in a column to a single value for VARCHAR2 column datatype, with a delimeter between the values.

    SET LINESIZE 1000
    SET SERVEROUTPUT ON
    DECLARE
    v_name VARCHAR2 (1000) := NULL;
    CURSOR cursor_name
    IS
    SELECT ename
    FROM emp;
    BEGIN
    FOR c_rec IN cursor_name
    LOOP
    v_name := v_name | | ',' | | c_rec.ename;
    END LOOP;
    v_name := SUBSTR (v_name, 2)
    DBMS_OUTPUT.PUT_LINE (v_name);
    END;
    null

  • All column value into one

    SELECT
    CONTROLLER_MODEL_NUMBER_1,
    SERIAL_NUMBER_1,
    CONTROLLER_MODEL_NUMBER_2,
    SERIAL_NUMBER_2,
    CONTROLLER_MODEL_NUMBER_3,
    SERIAL_NUMBER_3,
    CONTROLLER_MODEL_NUMBER_4,
    SERIAL_NUMBER_4,
    CONTROLLER_MODEL_NUMBER_5,
    SERIAL_NUMBER_5
    FROM controller
    I need to get above query as two columns as controller_model and serial_number all the controler_model_number_1 to 5 must come under controller_model similary serial_number as well
    I am currently using union to get into one but this is affecting the performance please suggest me an alternative way
    Thanks
    Sudhir

    Hi,
    Thank you so much this actually worked for me but only issue i found was not able add the cross join please check the below code
    Select
    distinct
    'Parature' "Source",
    NULL "Distibutor",
    reseller_name "Reseller",
    NULL "Reseller City",
    NULL "Reseller State",
    A.Country "Reseller Country",
    DECODE (a.state, 'APAC', 'APAC', 'EMEA', 'EMEA', NULL, 'Unknown', 'US' ) "Reseller Theater",
    NULL "Customer Name",
    NULL "Customer City",
    NULL "Customer State",
    NULL "Customer Country",
    NULL "Customer Theater",
    NULL "Sales Book Date",
    NULL "Ship Date",
    c.sales_order_number "Sales Order Number",
    C.Po_Number "PO Number",
    c.contract_id "Contract ID",
    product_name "Support Name",
    TO_DATE (c.contract_purchase_date) "Start Date",
    TO_DATE (c.contract_expiration_date) "Expire Date",
    NULL "Header Status",
    NULL "Line Status",
    NULL "Line Type",
    NULL "Termination Reason",
    Null "Location_id",
    Null "Product_id",
    DECODE(rn,1,controller_model_number_1,
    2,CONTROLLER_MODEL_NUMBER_2,
    3,CONTROLLER_MODEL_NUMBER_3,
    4,CONTROLLER_MODEL_NUMBER_4
    ) as CONTROLLER_MODEL_NUMBER
    ,DECODE(rn,1,TRIM (UPPER (serial_number_1)),
    2,TRIM (UPPER (serial_number_2)),
    3,TRIM (UPPER (serial_number_3)),
    4,TRIM (UPPER (serial_number_4))
    ) AS SERIAL_NUMBER
    From Edb_Assets C,
    Edb_Accounts A,
    (Select Rownum Rn From Dual Connect By Rownum <= 4)
    where C.Amid = A.Amid(+)
    AND (
    ( controller_model_number_1 != 'NULL'
    AND Serial_Number_1 != 'NULL'
    OR
    ( controller_model_number_2 != 'NULL'
    AND Serial_Number_2 != 'NULL'
    OR
    ( controller_model_number_3 != 'NULL'
    AND Serial_Number_3 != 'NULL'
    OR
    ( controller_model_number_4 != 'NULL'
    AND Serial_Number_4 != 'NULL'
    OR
    ( controller_model_number_5 != 'NULL'
    AND Serial_Number_5 != 'NULL'
    and c.sales_order_number = '1000179'
    order by c.sales_order_number
    The above query works perfect but one extra null row is getting populated because of not adding the cross join . Please help me in adding the cross join
    Thanks
    Sudhir

  • Merging different values into one column

    Hi all,
    If my report has two columns A and B. For one value of A, there are multiple values coming from database for B.
    So, report displays them like this:
    A     B
    1     x
    1     y
    1     z
    Is it possible somehow that i can merge all possible values of B in one row instead of many. i.e. report should look like this:
    A     B
    1     x,y,z
    Please reply with your suggestions.

    Hi,
    It is possible that can merge all B column values in one row.
    Steps:-
    1. First you create an object for B using @aggregate_Aware() function like
    @Aggregate_Aware(TableName.B,TableName.B)+', '
    Object qualification should be measure. Here B is the column name.
    2. In WebI report drag and drop A and B objects
    3. Run the report
    Now you will get the result.
    Edited by: Swarna K on Mar 11, 2011 5:27 AM
    Edited by: Swarna K on Mar 11, 2011 7:20 AM

  • Values of one column in one sheet should reflect in the another column

    Hi,
           We have a workbook where the same column values in one sheet should reflect in the column values of different sheet.
    Can anyone please provide a solution to this.
    Thanks & Regards
    sravan kumar

    Use the simple Excel formula of equal to and give reference to that column or try using a VB Macro.
    Regards,
    Sachin Shetty

Maybe you are looking for

  • Illustrator PNG Export help...

    Hi, Artwork is done at 5x7in, i want to export this as a PNG for print purposes however the more i increase the ppi the bigger the pixel size. I want to export it at a high resolution but keep the pixel size to 500x700. Is this possible? Currently to

  • OS 10.4.8 and sleep

    I have a different problem. With 10.4.8, my computer randomly goes to sleep. Sometimes in the middle of a sentence! It wakes up OK -- some of the time. Other times the sleep is so profound, that I cannot reboot without removing the battery and power

  • Problems with shortcuts

    Strange thing happening to the shortcuts that appers in the menus. Instead of showing the actual shortcut, it displays a question mark instead of the key. Example: for saving, which should be "CTRL + [S]", it appears as "CTRL + [?]". It looks like th

  • Connecting using IPv6?

    A while ago I posted a question about a problem I had using networked Eudora after upgrading to Tiger from Panther on machines on my network. See the quoted text below first... I have since found that the only mac on my network that still works using

  • Plug-Ins Working On Input(Incoming) Single?

    Hey all, just wanted to know if i applied a plug-in,say a compressor to my incoming vocal signal,is that effect a pre effect?..Is the compressor working and getting recorded with the incoming signal or are all the plug-ins an after effect?