OBIEE using distinct

Hello All,
I am trying to generate a report and i observed that its throwing group by on all the columns that i selected in the report.
But, I did n't see any group by clause when i go to advanced tab in the report.
I am not sure whether it is a good option or not.But, I tried to uncheck the Group_By_Supported in properties of the physical layer.But, its not allowing me to uncheck.
I am clue less now. Please suggest some ideas.
Thanks in advance.
Edited by: user11049754 on Aug 26, 2009 11:39 AM

Hello All,
I just checked in the log file and the logical query looks like below
RqList distinct
PROJECTDATA.ORG_CODE as c1 GB,
PROJECTDATA.ORG_NAME as c2 GB,
PROJECTDATA.STATE as c3 GB,
PROJECTDATA.CITY as c4 GB,
PROJECTDATA.LOCATIONCODE as c5 GB,
PROJECTDATA.SOURCE as c6 GB
OrderBy: c1 asc, c2 asc, c3 asc, c4 asc, c5 asc, c6 asc
So,its throwing distinct here.So,i gone thru the below forum and did what is suggested there.But ,still same problem.
Obiee Distinct
Please help me out.
Thanks in advance.
Edited by: user11049754 on Aug 26, 2009 11:40 AM

Similar Messages

  • SSRS reporting with sharepoint list using Distinct and Multivalue parameters

    i want create ssrs report with sharepoint list using ms-vs(2008). i want create Distinct multivalue parameters by using CAML query. There is any way we put CAML query where we use Distinct keyword and IN clause in CAML query... i hope all experts will
    understand my poor English... sorry for poor English.. plz help me

    Hi AsifMehmood,
    Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query,  right?
    For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
    to get all the values from the fields which will  add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
    Step by Steps information in below thread for your reference to create the parameters and the custom code:
    "How to get distinct values of sharepoint column using SSRS"
    Other similar thread for your reference:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    If your problem still exists, please feel free to ask and also try to provide us more details information.
    Regards
    Vicky Liu

  • Difference between Oracle 10g and Oracle 11g when using Distinct in SQL

    Hi All,
    When I use Distinct in Oracle 10g, the result would be sorted in ascending order automatically, while there is no sorting in the result set in Oracle 11g.
    I was using plsql developer to run my sql.
    May I know if anyone have the same experience before?
    Is there any kind of setting in 11g that I can make the result in order? Thanks!
    Edited by: user5810051 on 2011/4/6 下午 8:47

    As acadet says, if you want your result ordered you must specify an ORDER BY clause in your query. Just because previous versions of oracle included some ordering as part of the processing of a query, that was not a guaranteed ordering, but just a side-effect. Now that Oracle have improved the internal workings, they've removed the side-effect, and that's why you're not getting the ordering you want, because you were relying on that side-effect rather than explicitly stating the order you wanted.

  • USING DISTINCT IN CALLING A FUNCTION

    Hi to everybody,
    I have a problem using DISTINCT in a query where I call a function.
    Select
    TRACKING_ERROR
    rtrim(fs.match),
    distinct fb.benchid, ------>>here I want to use distinct
    '31.01.1997',
    '31.12.1999'
    from fondsstamm fs,fondsbench fb
    I become an error at the line where distinct fb.benchid is :
    literal is missing or in german AUSDRUCK FEHLT.
    Can somebody help me??
    thanxxx
    Schoeib

    You cannot have a distinct on just one field. But a work around might be
    select TRACKING_ERROR( rtrim(FS.match), A.benchid, '31.01.1997','31.12.1999')
    from Fondsstmm FS, (select distinct(benchid) BENCHID from Fondsbench ) A
    Hi to everybody,
    I have a problem using DISTINCT in a query where I call a function.
    Select
    TRACKING_ERROR
    rtrim(fs.match),
    distinct fb.benchid, ------>>here I want to use distinct
    '31.01.1997',
    '31.12.1999'
    from fondsstamm fs,fondsbench fb
    I become an error at the line where distinct fb.benchid is :
    literal is missing or in german AUSDRUCK FEHLT.
    Can somebody help me??
    thanxxx
    Schoeib

  • Using distinct and orderby in the select statment

    Hi All,
    Can anyone tell me what is the purpose of using distinct and orderby in the select statment.

    Hi,
    Using the distinct function with more than one column yields some substantial results. SQL will return the rows with distinct or unique combinations of those columns. Assume this same employee table has another column including the salary of each employee. With the use of the distinct function we can pull a list of unique job titles - salaries.
    SQL Code:
    SELECT DISTINCT job_titles, salary FROM employees;
    SQL has returned all the rows with unique combinations of job titles and salaries. Any duplicate combinations of job titles and salaries will be ignored. For example if we had two CEOs in the table making the same salary each year, only one row would be returned but if we had two CEOs with different salaries, both rows would be returned.
    Order by
    The SQL ORDER BY clause comes in handy when you want to sort your SQL result sets by some column(s). For example if you want to select all the persons from the already familiar Customers table and order the result by date of birth, you will use the following statement:
    SELECT * FROM Customers
    ORDER BY DOB
    As you can see the rows are sorted in ascending order by the DOB column, but what if you want to sort them in descending order? To do that you will have to add the DESC SQL keyword after your SQL ORDER BY clause:
    SELECT * FROM Customers
    ORDER BY DOB DESC
    If you don't specify how to order your rows, alphabetically or reverse, than the result set is ordered alphabetically, hence the following to SQL expressions produce the same result:
    SELECT * FROM Customers
    ORDER BY DOB
    SELECT * FROM Customers
    ORDER BY DOB ASC
    You can sort your result set by more than one column by specifying those columns in the SQL ORDER BY list. The following SQL expression will order by DOB and LastName:
    SELECT * FROM Customers
    ORDER BY DOB, LastName
    if its useful reward points

  • Possible to not use DISTINCT keyword in select query?

    I have a high repetition query that polls the database and only ever uses
    the first row returned from the query. Using the distinct keyword adds
    overhead and increases the use of tempdb in SQL Server in order to remove
    any duplicates. Is there a way to instruct kodo not to use distinct on an
    ad-hoc basis?
    We are using 3.2.3 on SQL Server 2000
    Regards
    Nathan

    Unfortunately, no.

  • Could not able to join physical tables in obiee using a dataconversion func

    Hi,
    i am trying to join physical tables wc_perf_ratings_d and w_wrkfc_evt_month_f with condition as
    "Oracle Data Warehouse"."Catalog"."dbo"."Dim_WC_PERF_RATINGS_D"."RATING_CD" = to_char(round( "Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_WRKFC_EVT_MONTH_F"."ORIG_PERF_RATING",2)). But i am getting the below syntax error while applying this.
    [nQSError:27002] Near <(>: Syntax error [nQSError:26012]
    i used the same condition on database and i got results.
    select rating_cd,
    to_char(round(orig_perf_rating,2)) as orig_perf_rating,
    headcount,
    fte,
    salary_annl,
    total_service_days
    from wc_perf_ratings_d, w_wrkfc_evt_month_f
    where wc_perf_ratings_d. rating_cd= to_char(round(w_wrkfc_evt_month_f.orig_perf_rating,2));
    Here i am trying to convert the format of ORIG_PERF_RATING field and trying to join with RATING_CD in physical layer.
    so my question is, is it possible to join in obiee using such conditions? i do not want to convert the field format in ETL and i wanted to do that at obiee level. Could anybody please suggest how to do it?

    Hi,
    Thanks for the link. i was trying another method in joining the two fields (rating_cd, orig_perf_rating) at database level. As i said both these fields are of varchar datatype. Earlier i tried to convert orig_perf_rating field from number to string. But i want to convert string data in (rating_cd) to number. so i have values in it like (1,2,3,4,bep, ep, vp, nr). Actually i have a requirement to create a database view for the dimension table (wc_perf_ratings_d) having rating_cd field with new datatype (number) instead of string and then join this field with orig_perf_rating in fact table which already has numbers. Along with the number rating fields, there are four particular string fields in rating_cd (bep, ep, vp, nr) as i mentioned. so while converting, i also have to convert these specific string fields in to partcular numbers. (bep=1, ep=5, nr=0, vp=3). Now, all this requirement is at database level as i am creating a db view. so my question is how to apply the to_number conversion function for converting the rating_cd field values (bep, ep, vp, nr) from string to specific mentioned numbers. Could you please help?
    for eg: create or replace view as select to_number(rating_cd....................
    Thank you.

  • Load Balancing OBIEE using OC4J

    Hi All,
    I would like to know if there is a way of load balancing 2 instances of OBIEE using OC4J.
    Please advice if possible and the steps required to achieve that.
    A small correction ... we have 2 instance of OBIEE and 2 of stand alone of OC4J
    Is there any way we can attempt to load balance the two???
    Regards,
    maabajaber
    Edited by: maabajaber on Sep 22, 2010 4:19 AM

    Hi All,
    A small correction ... we have 2 instance of OBIEE and 2 of stand alone of OC4J.
    I believe OC4J stand alone can do this but i dont know how
    Is there any way we can attempt to load balance the two.
    Regards,
    maabajaber

  • Query to find no of peoples with the same age(using distinct)

    query to find no of peoples with the same age(using distinct)
    Edited by: swordfish3 on Mar 7, 2009 9:24 PM

    it would be helpful if you posted some proper sample data with proper expected results.
    The easier you make it for us to help you, the more likely you will get helped.

  • Sorting issue when using DISTINCT

    Hi All,
    If we use distinct in a select query, does it sort the results by default?
    If so,Can anybody explain, why is it giving the results in sorted order?
    Thanks a lot...
    Regards,
    user569598

    It may or may not sort the results depending on the Oracle version and the precise access path chosen.
    If you want to guarantee that the results come in a sorted order, you have exactly one option. You must specify an ORDER BY clause.
    Various other approaches (such as adding a DISTINCT or doing a GROUP BY) may, under certain circumstances, sort the results as a side effect, but Oracle is perfectly free to introduce new optimizer options in future releases that do not have this side effect or to change query plans in a particular instance based on changing statistics in a way that eliminates this side effect.
    Justin

  • How to use distinct while using a select that builds xml?

    Hi.
    Example:
    SELECT
    XMLELEMENT("Column1" value1
    ,"Column2" value2
    ,"Column3" value3
    FROM a_table A
    Where id_val = x
    Imagine that this repeats a same result 4 times. If it was a simple query distinct would work...how can i use distinct with this?
    Thanks.
    Cheers!

    Hi,
    what about group by
    SQL> WITH A AS(SELECT 1 val1,2 val2,3 val3 FROM dual UNION ALL
      2            SELECT 1     ,2     ,3      FROM dual UNION ALL
      3            SELECT 1     ,2     ,3      FROM dual)
      4  SELECT XMLElement("cols"
      5           ,XMLElement("col1",val1)
      6           ,XMLElement("col2",val2)
      7           ,XMLElement("col3",val3))
      8  FROM A
      9  GROUP BY val1,val2,val3;
    XMLELEMENT("COLS",XMLELEMENT("COL1",VAL1),XMLELEMENT("COL2",VAL2),XMLELEMENT("CO
    <cols><col1>1</col1><col2>2</col2><col3>3</col3></cols>                        

  • Display distinct rows from Oracle table without using "DISTINCT" keyword.

    How to retrieve distinct rows from oracle table without using 'DISTINCT' keyword in SQL?
    Thanks in advance.
    Mihir

    Welcome to the forum.
    Besides GROUP BY you can use UNIQUE instead of DISTINCT as well, but that's probably not wanted here ;) , and the ROW_NUMBER() analytic:
    SQL> create table t as
      2  select 1 col1 from dual union all
      3  select 1 from dual union all
      4  select 2 from dual union all
      5  select 3 from dual union all
      6  select 4 from dual union all
      7  select 4 from dual;
    Table created
    SQL> select col1 from t;
          COL1
             1
             1
             2
             3
             4
             4
    6 rows selected
    SQL> select distinct col1 from t;
          COL1
             1
             2
             3
             4
    SQL> select unique col1 from t;
          COL1
             1
             2
             3
             4
    SQL> select col1 from t group by col1;
          COL1
             1
             2
             3
             4
    SQL> select col1
      2  from ( select col1
      3         ,      row_number() over (partition by col1 order by col1) rn
      4         from   t
      5       )
      6  where rn=1;
          COL1
             1
             2
             3
             4

  • Where I can see the list of colors that OBIEE uses as default.?

    Hi
    I can see how to set the graph series color but I would like to know where I can see the list of colors that OBIEE uses as default.
    In OBIEE 10, the list of color is the file /OracleBI/web/app/res/s_oracle10/chartsupport/ palette.cxml
    In OBIEE 11 the file that I should change (bifoundation/web/msgdb/s_blafp/viewui/chart/dvt-graph-skin.xml) is empty, not series as default.
    Any idea?
    thanks!

    user722302 wrote:
    Hi
    I can see how to set the graph series color but I would like to know where I can see the list of colors that OBIEE uses as default.
    In OBIEE 10, the list of color is the file /OracleBI/web/app/res/s_oracle10/chartsupport/ palette.cxml
    In OBIEE 11 the file that I should change (bifoundation/web/msgdb/s_blafp/viewui/chart/dvt-graph-skin.xml) is empty, not series as default.
    Any idea?
    thanks!Read these:
    http://www.obieefans.com/how-to-set-default-graph-series-colors-in-obiee-11g/
    http://debaatobiee.wordpress.com/tag/graph-color-obiee-11g/
    http://shivabizint.wordpress.com/2011/04/17/setting-default-graph-series-colors-in-obiee-11g/

  • What ports does OBIEE use, ect 9703.9704, ect

    Where can I find the information on all of the port that Oracle OBIEE uses in one document.

    Hi,
    Did you review the OBIEE documentation?
    Oracle Business Intelligence Documentation
    http://www.oracle.com/technology/documentation/bi_doc.html
    Please see if these links/docs help.
    Note: 759312.1 - How to change the ports by default of oracle bi and oc4j (9703, 9704 and 9705) ?
    Note: 550441.1 - How to change default port 9704 of OC4J
    Note: 446852.1 - How To Assign Unique Ports When Installing Multiple Oracle Business Intelligence (BI) Discoverer 10g (10.1.2) Instances On A Single Host
    Changing OBIEE default port
    http://asanga-pradeep.blogspot.com/2009/07/changing-obiee-default-port.html
    Regards,
    Hussein

  • How to create an expression using distinct()?

    I want to create an expression for the following SQL statement:
    select distinct aCol from mytable where bCol = 123 and cCol = 'something';
    My expression without using the distinct() is followed:
    Expression exp = new ExpressionBuilder().get("bcol").
    equal(123).and(new ExpressionBuilder().
    get("cCol").equal("something"));
    ReportQuery query = new ReportQuery(mytable.class, exp);
    query.addAttribute("aCol");
    Vector queryResult = (Vector)toplinkSession.executeQuery(query);
    Where can I place the "distinct()" in this expression. I tried several ways, but TopLink always created the SQL statement with the 'distinct()' in the wrong place. I noted someone also had this problem and I tried the solution posted by Doug Clarke, but still did not work for me.
    thanks

    Hi,
    You need to call useDistinct() on the query to generate the needed sql.
    By the way, you need to use the same ExpressionBuilder instance to build a query object (i.e. not use New multiple times).
    King

Maybe you are looking for

  • SSRS date format in Expression Editor issue

    Hi, In the SSRS Report I am using a date field in the expression(=Fields!StartDate.Value), it returns the values in 'mm:dd:yyyy hh:mm:ss'. I dont want the hh:mm:ss part, I want only mm:dd:yyyy. is it possible using the expression editor with the buil

  • Message mapping - Display queue

    Hello, In the Enterprise Service Builder of PI 7.1, I go to message mapping and choose "display queue" to test the result of a mapping but nothing happens. I receive a blank popup without any results. It's the same for all mappings. Note that we have

  • Writing text vertically and drawing dashed line

    Hello, I m trying to write text vertically ( basically to write data on the y-axis of a graph)..Is there a way in which i can set the line direction properties to VERTICAL..? Also, i m trying to draw a dashed line.Can anyone tell me how to do this? T

  • Sender FCC Field separator

    Hi Gurus, I am working on a File-to-File Scenario using FCC at sender side. My requirement is to convert source text file into xml file. Source and target structure: DT_Customer_SRC      Header           CompanyName           CompanyCode      Body   

  • Quality module

    Dear expert, what are different reports in SAP-QM related to results recording, defects entry based on lot no because we are creating lot no. manually & results recording , defects entry & ud done through QA32. i want report lot no. wise. thanx vimle