Distinct Values in Multiselect Prompts

Hello All,
I have the following Constrained Multi-select Prompts....
Partner, Country Group, Country
Though the list of Partners is unique, the list of Country Group and Country repeats.
If I try to use SQL to populate the prompt, I can no longer constrain it.
Has anybody found a solution to this?
Thanks!!

OK, try a different approach then. Why not a prompt for "Partner" then use either a column selector for "Country Group" and "Country" or a drill down (or navigation) to the next report which filters on Country Ggroup and then on Country?
One prompt, the rest is either a select (column selector) or a drill...
HTH,
David

Similar Messages

  • Sorting a column does not result in distinct values on Dashboard prompts

    Hi,
    We have a period column, the records of which are 'JAN-02' , "FEB-02"...."DEC-09". We need sort this column in descending order in Dashboard Prompts. We have another column "Date", which has been used to sort the period column. To achieve this in descending order, we have converted Show Results from “All Values” to “SQL Results” in dashboard prmpts, then entered the below sql.
    SELECT "CODE COMBINATIONS"."LINE AC PERIOD" FROM INVOICE_PAYMENTS
    order by "CODE COMBINATIONS"."LINE AC DATE" desc
    The above sql resulted in non-distinct values as below. Using distinct in the above sql throws syntax error.
    Period
    JAN-09
    JAN-09
    JAN-09
    FEB-09
    FEB-09
    How do we get distinct values and in descending order??
    Thanks and appreciate any ideas
    Surya

    Go to advanced tab and check "Use distinct clause" that will fire a distinct to the query.
    In the rpd month logical column , there is an option called sort order in the general properties and you need to specify the date column if you need to sort it based on the date column and in the Answers you can simply enable Descending sort order on the same column. That should take care of it
    Hope it helps
    Thanks
    Prash

  • 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.

  • Selected Values not displaying in Multiselect Prompt

    Hi all,
    We are having reports with Multiselect Prompts. When we select values , we are unable to see the corresponding values. Is their any rule like Multiselect Prompt won't work if there are Null values in it..

    Hi,
    There is no case that if your column contains NULL values multi select prompt wont work.
    It should work irrespective of values in column.
    Just check that you have selected Control as Multi select for Prompt column.

  • Multiselect prompt display values in title

    Hello,
    I have a prompt which is multiselect. Is there a way I can display the values selected in the title of the report?
    thanks,
    deep

    Hi,
    here an abstact from the support:
    Applies to:
    Answers, Interactive Dashboard - Version: 10.1.3.4.0 [1900] to 10.1.3.4.1 [1900] - Release: 10g to 10g
    Information in this document applies to any platform.
    Goal
    How to set up a Presentation Variable in a Multi Select dashboard prompt in OBIEE 10g?
    Solution
    You cannot set a Presentation Variable in a Multi Select dashboard prompt in OBIEE 10g. This is expected behavior. OBIEE 10g is working as designed. A Presentation variable can assume a single value. Because of that, presentation variables are not available when using multi select prompts.
    OBIEE 11g will introduce the ability to set Presentation Variables when using multi select prompts. In 10g you can try as a workaround using more than 1 prompt.
    So basically you can't set a presenation variable from a Multiselect Prompt, that's because you can't show the values selected in any views.
    I don't know if there is somr way to do this with javascript.
    Regards,
    Gianluca

  • Multiple values are selected in a multiselect prompt then we can get indivi

    Hi Experts,
    Can it be possible in OBIEE that if multiple values are selected in a multiselect prompt then we can get individual graph for each selected values?
    For eg if in a multiselect prompt,values such as bangalore,pune,hyderbad etc are selected then the result in a report diosplays 3 graphs one for each state.
    Waiting for any work arounds on this.
    Regards
    Ashish

    hi Ashish,
    Pull the cities in Section's section of pivot table and construct the graph ,use is prompted filter on the city
    It should work
    thanks,
    Saichand.v

  • Multiselect Prompt issue in OBIEE Apps 795

    Hi All,
    We are using OBIEE 10.1.3.4.1 along with OBIEE Apps 7.9.5.
    We are facing an issue regarding the sort order of the Multiselect prompt. When we select More values(More than 256) in the multiselect prompt by pressing on the more button in the application the order of the values in the prompts is lost and they get displayed randomly.
    I tried putting the sort order column in the rpd also the sql in the prompt the back end query is generated as required but the values doesnt display as Order By whereas they are displayed in random.
    Please help on this issue? Or is it a product Bug?
    Thanks:

    Hello,
    I have the same problem in 10.1.3.4.1.
    I create multi select on dayshort. In "Sow" I put SELECT Time.DAYSHORT FROM "XX-example" order by Time.DAYID asc. After this see records form 1 to 256 with correct order. I pick more and I see records from 1 to 512 in bad order.
    Any ideas?
    Regards,
    Luko

  • SQL not working in Multiselect prompt

    Hi all,
    I have restricted the results in Multiselect Prompt by giving the sql query.It is working fine but when i try to search for particular record in Multiselect it is not filtering the results by applying the query instead it is using the base query with no restrictions.
    Please help.

    I understand and I don't understand... So you have a dashboard prompt set to multi-select, yes? You have changed "Show" to "SQL Results" and added your "active products" filter, yes? Now with the prompt and report in the dashboard, you click on the ellipsis of the prompt and for example, you change "Match" to "begins with," type "A" and click on "Go" which then displays all the values that begin with "A," yes?
    Now you select those "A" products and click on the left arrow to bring them to the left pane, yes? Then you click "Ok" which closes the window and click on "OK" one more time to run the prompt, yes?
    Now you are saying that the report filters "all the products that start with 'A' both active and inactive, yes? And this is what I don't understand. The report should be filtered by the specific "A" starting products you selected in the prompts, not "all 'A' starting values" regardless of whether they are active or inactive. If you have "Is Prompted" on the appropriate column, you should get only those values from the prompt, nothing more.
    How are you getting "all values that start with 'A'"? Please explain.

  • Setting Presentation Variable with Multiselect Prompt

    I want to know if there is a way to set presentation variables from a multiselect prompt. I want to store all the values that the user has selected from the prompt.
    Mrinalini.

    I have a report in which I use Oracle analytic functions. But I have to show only subset of all records because of analytic functions. In case of ListBox I use a presentation variable in a FILTER(expr1 USING expr2). How may I do this in case of multiselect prompt? It doesn't support presentation values.

  • Multiselect prompt

    Hi, is it possible to configure the multiselect to make that field one that could be populated either by directly typing a value into the field or via the multi select? Or allow typing a string of values with a delimiter - for instance in SSN typing something like 012345678, 234554324, 888556666 to search on multiple values?
    thx,
    parag

    In the multiselect prompt, there is a search field. You can choose the search criteria from the drop down and key in the search key words. eg. you can search for all values starting with the letter A by typing A and then clicking in Go.
    Hope this helps

  • How to get distinct values from a list and display in a ListView webpart.

    Hi,
    I have a requirement in which I need to pull unique/distinct values from a custom list and then display it via a listview webpart. Can any one suggest how this can be done.
    If possible please share the CAMEL query to fetch distinct values from a custom list.
    Thanks,
    Ankit

    Hi Ankit,
    Is there any particular reason that the values need to be shown in a list view web part?  Are you going to use that web part for filtering via web part connections?
    I ask because the enterprise site collection features include the SharePoint List Filter web part, which may accomplish what you're looking for.
    If you just need to display the values in a grid view, you might have more luck with the JavaScript Client Object Model.  Try putting the following in a text file:
    <style>
    .CustomTableClass{display:table;table-layout:fixed}
    .CustomRowClass{display:table-row;}
    </style>
    <div id="distinct_values_div" class="CustomTableClass">
    <img src="/_layouts/loading.gif" />
    </div>
    <script language="JavaScript" type="text/JavaScript">
    var siteUrl = '/sitecollection/web'; //use the actual subsite URL here
    var listName = 'mylist'; // use the actual list name here
    var field = "Title" // use the actual field you want to display here
    var divToUpdate = document.getElementById("distinct_values_div");
    var rowClass = "CustomRowClass";
    ExecuteOrDelayUntilScriptLoaded(function(){
    var clientContext = new SP.ClientContext(siteUrl);
    var web = clientContext.get_web();
    var lists = web.get_lists();
    var list = lists.getByTitle(listName);
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query></Query><RowLimit>500</RowLimit></View>');
    this.collListItem = list.getItems(camlQuery);
    clientContext.load(collListItem,"Include ("+field+")");
    clientContext.executeQueryAsync(
    Function.createDelegate(this, this.onQuerySucceeded),
    Function.createDelegate(this, this.onQueryFailed));
    },"sp.js");
    function onQueryFailed(sender, args){
    divToUpdate.innerHTML = 'Unable to retrieve values: '+args.get_message());
    function onQuerySucceeded(sender, args){
    var allValues = [];
    var listItemEnumerator = collListItem.getEnumerator();
    divToUpdate.innerHTML = "";
    while(listItemEnumerator.moveNext()){
    var listItem = listItemEnumerator.get_current();
    if(!containsString(allValues,listItem.get_item(field)){
    var value = listItem.get_item(field);
    allValues.push(value);
    var newDiv = document.createElement("div");
    newDiv.className = rowClass;
    newDiv.innerHTML = value;
    divToUpdate.appendChild(newDiv);
    function containsString(strArray, text){
    var contains = false;
    for (var i=0; i<strArray.length; i++){
    if(strArray[i]==text){contains = true; break;}
    return contains;
    </script>
    Upload the text file to a library on the site, then add a content editor web part to a page where you want the distinct values to appear. In the content editor web part's properties, edit the Content Link so that it links directly to the text file.  This
    will cause the JavaScript to run on the page.

  • Get distinct values from a coma seperated string variable

    Hi ,
    I am getting an comma seperated string as in parameter, now i want to get the distinct values from that string and will use those values to pass it to a query.
    any help

    try this:
    sorry about the messiness - it's just quickly copied from some badly formatted code....
    TYPE T_FieldArray IS TABLE OF varchar2(255) INDEX BY BINARY_INTEGER;
    function SPLIT_CSV_FIELDS (
    p_Input_Str in varchar2,
    p_Delimiter in varchar2,
    p_Quote_Char in varchar2)
    return t_fieldarray is
    v_FieldArray T_FieldArray;
    v_input_str varchar2(4000);
    v_field_str varchar2(255);
    v_pos number;
    e number := 0;
    v_delim_str varchar2(3);
    cur_pos number;
    begin
    loop
    -- find each delimiter char in string
    v_pos := INSTR(v_input_str, p_Delimiter);
    -- each time delimiter char is found
    if v_pos > 0 then
    -- current field value is current string to position prior to delimiter char
    v_field_str := UPPER(SUBSTR(v_input_str, 1, v_pos - 1));
    -- remove quote char from end of field (if any)
    v_field_str := TRIM(TRANSLATE(v_field_str, NVL(p_Quote_Char, p_Delimiter), ' '));
    -- increment element number
    e := e + 1;
    -- get remainder of input string to check
    v_input_str := SUBSTR(v_input_str, v_pos + 1, LENGTH(v_input_str) - v_pos);
    v_FieldArray(e) := v_field_str;
    else
    -- increment element number
    e := e + 1;
    -- last field value is what's left of input string less quote char (if any)
    v_field_str := TRIM(TRANSLATE(UPPER(v_input_str), NVL(p_Quote_Char, p_Delimiter), ' '));
    v_FieldArray(e) := v_field_str;
    exit;
    end if;
    end loop;
    return v_FieldArray;
    end;

  • "How to get distinct values of sharepoint column using SSRS"

    Hi,
        I have integrated sharepoint list data to SQL Server reporting services. I am using the below to query sharepoint list data using sql reporting services.
    <Query>
       <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
       <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
          <Parameters>
             <Parameter Name="listName">
                <DefaultValue>{GUID of list}</DefaultValue>
             </Parameter>
             <Parameter Name="viewName">
                <DefaultValue>{GUID of listview}</DefaultValue>
             </Parameter>
             <Parameter Name="rowLimit">
                <DefaultValue>9999</DefaultValue>
             </Parameter>           
          </Parameters>
       </Method>  
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    By using this query, I am getting a dataset which includes all the columns of sharepoint list. Among these columns, I wanted to display only 2 columns (i.e Region and Sales type) using chart. I have created a Region parameter but when I click preview, the drop down box is giving me all the repeatative values of region like RG1,RG1,RG1,RG2,RG2,RG2,RG2,RG3.......... I wanted to display only distinct values of Region parameter so that whenever end user select region from the parameter drop down, it will display the respective value of Sales type column.
    Also when I select only RG1 parameter, it is giving me a chart including the sales type of all the Regions. (it should display me only the sales type of RG1) How can I link these 2 columns so that they will display the values respectively.
              I would really appreciate if anyone can help me out with this.
    Thanks,
    Sam.

    Hi Sam,
    By code, the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results.
    In this case, we could use the custom code to get distinct records.
    Here are the detailed steps:
    1.         Create a hidden parameter that gets all the records in one field.
    Note: Please create another dataset that is same of the main dataset. This dataset is used for the parameter.
    2.         Create a function that used to remove the duplicate records.
    Here is the code:
    Public Shared Function RemoveDups(ByVal items As String) As String
    Dim noDups As New System.Collections.ArrayList()
    Dim SpStr
    SpStr = Split(items ,",")
    For i As Integer=0 To Ubound(Spstr)
    If Not noDups.Contains(SpStr(i).Trim()) Then
    noDups.Add(SpStr(i).Trim())
    End If
    Next
    Dim uniqueItems As String() = New String(noDups.Count-1){}
    noDups.CopyTo(uniqueItems)
    Return String.Join(",", uniqueItems)
    End Function
    3.         Create another parameter that will be used for filtering the maindata.
    Please set the available value to be =Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",")
    And the default value to be the value you what such as the first value:
    =Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",").(0)
    4.         Go to the main dataset. Open the property window of this dataset.
    5.         In the “Filters” tab, set the filter to be:
    Expression: <The field to be filter>
    Operator: =
    Value: =Parameters!Region.Value
    The parameter “Region” should be the parameter we created in the step3.
    Now, we should get distinct values of SharePoint columns.
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jin
    Jin Chen - MSFT

  • Get distinct values from plsql array

    Hi,
    I have declared a variable as below in plsql proc.
    type t_itemid is table of varchar2(10);
    inserted set of items in to this using a program
    now i want distinct values from that array how can i get it.

    I am using 9i so i cannot use set operator and more over my problem is that i am declaring the variable inside the plsql block . when i tried i am getting the below errors:
    SQL> r
    1 declare
    2 type t_type is table of varchar2(10);
    3 v_type t_type;
    4 begin
    5 v_type := t_type('toys','story','good','good','toys','story','dupe','dupe');
    6 for i in (select column_value from table(v_type)) loop
    7 dbms_output.put_line(i.column_value);
    8 end loop;
    9* end;
    for i in (select column_value from table(v_type)) loop
    ERROR at line 6:
    ORA-06550: line 6, column 41:
    PLS-00642: local collection types not allowed in SQL statements
    ORA-06550: line 6, column 35:
    PL/SQL: ORA-22905: cannot access rows from a non-nested table item
    ORA-06550: line 6, column 10:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 7, column 22:
    PLS-00364: loop index variable 'I' use is invalid
    ORA-06550: line 7, column 1:
    PL/SQL: Statement ignored

  • CE function to get distinct values from Column table

    Hi All,
    Could you please let me know the appropriate CE function to get the distinct values from column table.
    IT_WORK = SELECT DISTINCT AUFNR FROM :IT_WO_DETAILS;
    Thank you.

    Hi,
    If you have 10g, you can use Model( with model performance is better than connect by )
    Solution
    ========================================================================
    WITH t AS
    (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 1234.567432, 1234.567432, 0989.726332'
    txt
    FROM DUAL)
    SELECT DISTINCT TRIM(CHAINE)
    FROM T
    MODEL
    RETURN UPDATED ROWS
    DIMENSION BY (0 POSITION)
    MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    RULES
    (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    =========================================================================
    Demo
    =======================================================================
    SQL> WITH t AS
    2 (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 123
    4.567432, 1234.567432, 0989.726332'
    3 txt
    4 FROM DUAL)
    5 SELECT DISTINCT TRIM(CHAINE)
    6 FROM T
    7 MODEL
    8 RETURN UPDATED ROWS
    9 DIMENSION BY (0 POSITION)
    10 MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    11 RULES
    12 (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    13 CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    TRIM(CHAINE)
    3453.736379
    1234.567432
    0989.726332
    SQL>
    ========================================================================

Maybe you are looking for

  • Nano2g works on all PC's but mine!!!

    When I plug my Nano2G into my PC it is not detected by Windows or ITunes and only charges. I can't get it to be detected through any of my USB ports and resetting the ipod does not help. I've got it to work perfectly with my brothers PC and laptop, s

  • Install vmware-workstation-7.0.0 with kernel26-2.6.32 walkthrough

    For anyone who need some help, and the same way I did with version 6.5.3 (http://bbs.archlinux.org/viewtopic.php?id=88103), I post here my install walkthrough for vmware-workstation-7.0.0. There are only a few differences. Vmware package and kernel:

  • Newbie can't go to Oracle XE Home Page today (but accessed it yesterday)

    Hi there, Yesterday I installed Oracle XE 10g on my PC. I could see the home page and then log into the system. Today I can't see the homepage anymore: Internet Explorer cannot display the webpage Most likely causes: You are not connected to the Inte

  • Column Browser is disabled.

    When I connect my iphone 4s  to itunes, the column browser is totally disabled and "greyed out" when I need to find something. It just shows a giant liste view. When I'm using iTunes regularly and going through my library, the column browser works fi

  • Internal mic won't record when headphone is in the audio jack

    I've tried toggling the monitor on and off and plugging and unplugging the headphones. I just want to be able to record a track and then layer vocals on top while listening to the first track through headphones. But when I attempt this it seems as th