@aggregate aware or Derived Tables  ..

Hello,
the original data in my Universe has about 2 Mio. i have 2 questions ..
is there any reference values for best performance of a universe (e.g 1. Mio rows .. what ever)
how can i get best performance: @aggregate aware or with derived tables .. (other Alternatives)
Production DB: Oracle
BOXIR2 SP 4

Hi,
You can get better performance with aggregate awareness, but you need the aggregate tables in the db.
As a brief overview consider a table prod_cust_order (1million rows)
Product, Customer, Order Amount
This could be aggregated to product_order Product, Order Amount (500 rows)
If the user wants to see order amount by customer then they are going to have to query the original table, but if they are interested in product only they they can go to Product_order table.
The aggegrate awareness allows you to create a measure object with both tables as the source, and will then select the approriate one when building the query based on the dimension you have selected. So if the user selects customer then it will go to the top prod_cust_order but if they don't it will source it from the much smaller Product_order table. The user does not see the change in WebI unless they look at the underlying SQL.
Derived tables are not so good for performance as the enter derived query is included in the SQL built.
Regards
Alan

Similar Messages

  • Derived table

    Plz re-Play
      @ functions,@ prompts @ awareness are using in Derived table

    Hi,
    You can use @functions, @Prompts, @awareness in Derived Tables.
    But
    ■Do not use derived tables instead of aggregate tables.
    And see the following site for full Information.....
    http://www.msatish.com/sap-businessobjects-designer-universe-using-derived-tables/
    All the Best,
    Madhu...

  • How do I use Derived Table to dynamically choose fact table

    How do I use the Derived Table functionality to dynamically choose a fact table?
    I am using BO XI R2 querying against Genesys Datamart kept in Oracle 10g.  The datamart contains aggregated fact tables at different levels (no_agg, hour, day, week, etc...) I would like to build my universe so that if the end user chooses a parameter to view reports at daily granularity, then the daily fact table is used;  choose hourly granularity, then hourly fact table is used, etc....
    I tried using dynamic SQL in Oracle Syntax, but Business Obljects Universe didn't like that type of coding.
    The tables look something like this:
    O_LOB1_NO_AGG o
    inner join V_LOB1_NO_AGG v on o.object_id = v.object_id
    inner join T_LOB1_NO_AGG t on v.timekey = t.timekey
    Likewise, in the 'hour', 'day', 'week', etc... fact tables, the Primary Key to Foreign Key names and relationships are the same.  And the columns in each O_, V_, T_ fact table is the same, or very similar (just aggregated at different levels of time).
    I was thinking of going a different route and using aggregate aware; but there are many Lines of Business (20+) and multiple time dimensions (7) and I believe aggregate aware would require me to place all relevant tables in the Universe as separate objects, which would create a large Universe with multiple table objects,  and not be maintenance-friendly. I also was going to dynamically choose Line of Business (LOB) in the derived tables, based on the end user choosing a parameter for LOB, but that is out-of-scope for my current question.  But that information sort of points you down the train of thought I am travelling. Thanks for any help you can provide!

    You can create a derived table containing a union like the following:
    select a,b,c from DailyFacts where (@prompt('View'....) = 'Daily' and (<rest of your where conditions here if necessary>)
    union
    (select a,b,c from MonthlyFacts where (@prompt('View'....) = 'Monthly' and (<rest of your where conditions here if necessary>))
    union
    (select a,b,c from YearlyFacts where (@prompt('View'....) = 'Yearly' and (<rest of your where conditions here if necessary>))
    I assume that you are familiar with the @prompt syntax
    Regards,
    Stratos

  • Derived table in univ's

    Hello,
    Plz Ans me-
    What is Derived table, where it is using derived table? advantages& Di- advantages derived table?

    Hi,
    Derived tables are nothing else but InLine views (with the one additional benefit of being able to use @prompt syntax in a derived table) and as such do not contain any data, everything is calculated on the fly during query execution, meaning: whenever you refresh a report.
    Derived tables are tables that you define in the universe schema. You create objects on them as you do with any other table. A derived table is defined by an SQL query at the universe level that can be used as a logical table in Designer.
    Derived tables have the following advantages:
    u2022 Reduced amount of data returned to the document for analysis. You can include complex calculations and functions in a derived table. These operations are performed before the result set is returned to a document, which saves time and reduces the need for complex analysis of large amounts of data at the report level.
    u2022 Reduced maintenance of database summary tables. Derived tables can, in some cases, replace statistical tables that hold results for complex calculations that are incorporated into the universe using aggregate awareness. These aggregrate tables are costly to maintain and refresh frequently. Derived tables can return the same data and provide real time data analysis.
    Derived tables are similar to database views, with the advantage that the SQL for a derived table can include BusinessObjects prompts.
    Thanks,
    Amit

  • Aggregate aware function is failing.

    Hi,
    I have 2 Contexts from which I am retrieving data.
    Context 1:
    In this Context I have Table1(T1), Table2(T2), Table3(T3). Where joins are as follows:
    T1->T2->T3
    Context2:
    In this Context I have Fact table(FT1) where joins are:
    FT1->T2
    I have created a Measure where I have applied Aggregate Aware as follows:
    @Aggregate(T1\m1,FT1\m1)
    Now,
    When I use Dimension created on T3 with this measure it creates 2 queries as follows:
    Q 1: select d1 from T3
    Q 2: select m1from FT1
    Its not getting redirected to measure created on T1.
    We have couple of more contexts similar to above in universe and it works fine with it. However, not sure why its not working in this case.
    Thanks in advance for your help.

    Hi Bona,
    This link will help you
    http://events.asug.com/2011ASBOUC/5004_Implementing_Aggregate_Awareness_in_SAP_BusinessObjects.pdf
    Derived table are created at the universe level.
    1. They are usually created to fetch results from tables using a complex
    logic condition.
    2. To get the Max/ Min date for the data set. Usually used to find the Latest
    Data date or Oldest data date etc.
    3. Its not a good idea to uses them to aggregate data
    Regards
    Mustafa

  • Aggregate aware function

    Hi,
    is it possible to apply aggregate aware funtion to derived table
    Regards,
    Rao

    Hi Bona,
    This link will help you
    http://events.asug.com/2011ASBOUC/5004_Implementing_Aggregate_Awareness_in_SAP_BusinessObjects.pdf
    Derived table are created at the universe level.
    1. They are usually created to fetch results from tables using a complex
    logic condition.
    2. To get the Max/ Min date for the data set. Usually used to find the Latest
    Data date or Oldest data date etc.
    3. Its not a good idea to uses them to aggregate data
    Regards
    Mustafa

  • Generating Derived Table

    Hi,
    I've just created in BO Designer 6.5 a derived table for the calculation of an aggregate function.
    The table is structured in the following way (for example):
    SELECT SUM(ColumnCount) AS Sum_Distinct_NDG
    FROM (SELECT COUNT(DISTINCT cod_sample) AS ColumnCount
               FROM table.sample) DTBL
    In the derived table I have only one numeric column, and I can not put it in join with my fact table (table.sample).
    I thought topopulate the derived table also with an "alias" of the "table.sample.cod_sample" to put them in join, am I right? Anyway... I don't know how to do it.
    Can anybody help me to go on?
    Thanks in advance
    Riccardo

    Hi riccardo,
    assuming you have a table A with a column A1 and you want to count the distinct entries in this column. Your sql statement will look like this:
    select count(distinct A.A1) from A
    Assuming that the column A1 contains the following data:
    A1
    1
    1
    2
    2
    3
    Your sql statement return only one row with just one column:
    select count(distinct A.A1) from A
    3
    In your example you try then to build the sum of a table with a single line:
    select sum(B.alias1) from ( select count(distinct A.A1) as alias1 from A ) B
    which does not make really sense. 
    Generally it does not make sense to apply two aggregation operators on the same database field at once.
    What is your high level requirement here? In order to count the distinct entries the distinct count operator should be enough.
    Regards,
    Stratos

  • How to use LOV on a derived table dependent on a prompt for Webi web intelligence view.

    The semantic layer has not created a defined LOV for the derived table.   This only happens when pulling columns from derived table which depends on a prompt for unique selection.  When pulling from derived table that does not depend on a date prompt does not have an issue in Webi.
    I don't know if this is a universe design issue or WEBI.
    Webi Rich internet application   selects the date prompt first but if click on Storeno in List it returns a LOV with auto refresh.
    Webi Web Intelligence returns  List of Values for current prompt requires values for following prompts:   and when you click to refresh  webi responds with 'undefined'

    Hi…
    Can you check Prompt : Store No is created at universe level and defined the syntax correctly
    @Prompt(1,2,3,4,5)  insert a prompts in SQL. When the user runs the query, the user is prompted to enter a value for a refresh each time.
    1 = 'Prompt Text Message'
    2 = 'Prompt Type'  (i.e. A,N,D,U)
    where A= Character, N= Number, D= Date, U= Unit.
    3 = 'Class Name/ Object Name'
    4 = 'Multi/ Mono'
    Multi means Multiple ( Example = 2004,2005,2011)
    Mono means Single ( Example = 2012)
    5 = Free/Constrain (Type value or select value in LOV/ Select Value)
    Example for creating a @prompt filter is below
    @Prompt('enter year','A','time period/year', Multi', Free)
    Pointer to a “List of Values” from an existing universe object. You invoke the target list of values by double-clicking on the object contain ing the list of values that you want to use in the "Classes and Objects" panel. This gives the Class name and the Object name, separate ed by a backslash. It must be enclosed in single quotes. For example: 'Client\Country'. When you are using “Index Awareness”, and you want to return the key values for an object,set the 5th value to primary_key
    • Hard-coded list of single values or value pairs. The values in a pair are separated by a colon. Each value is enclosed in single quotes. The pairs of values are separated by a comma. The whole list is enclosed in curly brackets. Set the constraint to primary_key
    http://www.businessobjectstips.com/tips/web-intelligence/prompt-functions-the-next-step-optional-prompts/

  • Aggregate awareness: please help

    HI OBI gurus.
    I dont know what i am missing, but no discussion group giving detailed explanation on how to create aggregate awareness in OBI. i have been trying to figure out this but utterly failing. I know i am dumb but something is missing somewhere please help. Here  I am explaining what i am trying to achieve including examples below. Please help.
    Suresh
    OBI Version: 10.1.3.3
    DB Model
    Area Dim Table,
    Country,
    State
    City
    Fact Tables (3 Fact tables)
    1. Country wise Sales (Country Code, Sum Sales)
    2. State wise Sales (State Code, Sum Sales)
    3. City wise Sales ( City Code, Sum Sales)
    Please let me know how i can join the above tables in physical and bmm to achieve this.
    If i create a report for Country, State Sum Sales. The query should be populated like this.
         select country, state, sum(sales)
            from area_dim, sate_wise_sales_fact fact
         where  area_dim.state_code= fact.state_code
           group by country, state
    If i want to create a report for Country, State, City Sum Sales. The query should be populated like this.
         select country, state, city, sum(sales)
            from area_dim, city_wise_sales_fact fact
         where  area_dim.city_code= fact.city_code
           group by country, state, city
    Should choose different fact tables for different lovel level dim.
    Thanks and Regards
    Suresh

    $ uresh
    You changed UserName from slella to $ uresh!! You want free from Garry and me
    I thought to response to your post, i realized its you and your free
    https://forums.oracle.com/thread/2558637
    Looks like you for got your old post out of 4 answered 2 are from me.. have fun
    ~ cool-bi.com

  • Problem with WebIntelligence and Universe Designer Derived Table

    Hi people, i have an issue with a report in WebIntelligence that i want to build. Here it goes:
    I created a derived table that brings every material that has or not any movement. The thing is that when I build the report using other information like Material Name, for example. The report filters by the coincidence between materials in the derived table and the SAP Standard table. I tried to modify the SQL query but, Oracle does not allow it.
    So here are my questions:
    1)Is any way to do a Left outer join in order to have any single material and do not allow WebIntelligence to do Inline views?
    2)Do i have to modify the derived table? and use the standard tables?
    3)Can i work with a derived table that does not have any join with the standard tables?
    Thanks in advance,
    Reynaldo

    If I understand you correctly, it sounds like you are getting an inner join where you want an outer join? You have several options:
    1. You can do an outer join in the universe, or even embedded in your derived table (if that is what you are trying to do)
    2. You can have a derived table that is not joined with any other tables in the Universe. But you will have to merge the dimensions in the Webi report, and then be sure to put the correct dimension(s) on the report in order to reflect the outer join you want.
    I hope that helps.

  • How to process each records in the derived table which i created using cte table using sql server

    I want to process each row from the CTE table I created, how can I traverse from first row to second row and so on....
    how to process each records in the derived table which i created using  cte table using sql server

    Ideally you would be doing a set based processing rather than traversing row by row as thats more efficient. To answer it specific to your scenario we may need more info. Can you explain with some sample data your exact requirement?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Help needed in Derived Table

    Dear Experts,
    Can anyone tell me in which scenario we will go for derived table?  We are creating a report on top of a Cube,
    Thanks,
    Kind Regards,
    Sathish Kumar.N

    Hi Sathish,
    Hope this helps:
    http://scn.sap.com/thread/2019524
    http://www.forumtopics.com/busobj/viewtopic.php?p=684054&sid=13e89b7f7b9e97d6921e9899023e3929
    http://www.forumtopics.com/busobj/viewtopic.php?p=770433&sid=1f947ce435f0c0b96ebed248a1c908a0
    regards,
    M

  • CASE Statement is not working Derived table

    Hi All,
    in the bello SQL Statement case statement is not working in derived table. I am new to creation of derived table if any body knows plz kinldy help me out on this.
    SELECT x.market, x.droprate as med1
    FROM
    (select upper(market_name) as market, fulldate as date_value,
         (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN (month(BBHDLY.FullDate)}>= 6 and { year(BBHDLY.FullDate)} = 2011) or {fn year(IDENSLABBHDLY.FullDate)} > 2011
    THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >= GETDATE()-46
                   group by market_name, fulldate) x,
    (select market_name as market, fulldate as date_value,
    (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN ({fn month(BBHDLY.FullDate)}>= 6 and {fn year(BBHDLY.FullDate)} = 2011) or {fn year(BBHDLY.FullDate)} >
    2011 THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >=GETDATE()-46
                   group by market_name, fulldate) y
    where x.market = y.market
    GROUP BY x.droprate, x.market
    HAVING
       SUM(CASE WHEN y.droprate <= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)+1)/2 AND
       SUM(CASE WHEN y.droprate >= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)/2)+1
    Thanks

    It looks like SQL Server or Sybase given that you're using getdate().
    As such, Vinesh's comment to use decode is wrong - decode is  Oracle syntax.
    Looking at your statement again, I've noticed the following:
    you have no { to match the first } - not sure why you're using them anyway.
    you haven't given x.market a name - use x.market as market instead
    use coalesce instead of nullif if you're on SQL Server.

  • Can we create prompts in Derived Table sql query

    Hi,
    I am trying to define derived table sql query as below. Though the syntax parsing is going through but when I am generating the report it is throwing and invalid prompt definition error.
    " select * from table_a where call_direction = @Prompt('Enter Call Direction','A','"derivedtable_a".SHORT_STRING',mono,free,not_persistent,) and
    where call_type = @Prompt('Enter Call Direction','A','"derivedtable_b".SHORT_STRING',mono,free,not_persistent,) "
    Can somebody please share your thoughts if this can be achieved in universe or not ?
    Appreciate immediate responses as it is a show stopper for my deliverable.
    Thanks in advance.
    Thanks and Regards,
    Shireen.

    Hi Shireen
    We can use prompt in the derived table. There is issue with the SQL that you have used while creating the Derived Table.
    Instead of using the "derivedtable_a".SHORT_STRING' field use the object from the class on which you are creating the derived table.
    For example: If you are creating a derived table in the sample universe efashion on Agg_yr_qt_rn_st_ln_ca_sr table then use the following query:
    SELECT *
    FROM Agg_yr_qt_rn_st_ln_ca_sr
    WHERE Agg_yr_qt_rn_st_ln_ca_sr.Yr = @Prompt ('Enter Value','C','Time Period\Year',mono,constrained)
    Hope this helps!
    Thanks

  • Adding derived table  to-Universe issue!

    Hi,
    I am trying to add a derived table to my Universe by writing a SQL query, after some length of the query its not enabling me to write more.Could soemebody suggest is there any limit I can write upto or is there anyway I can increase the capacity of the length of the query.Thanks in Advance.

    How big is your query. I think there is a limit based on the edit box of about 32k but that is all
    It is possible to create derived tables based on other derived table using the @DerivedTable function. You might be able to break your query into smaller parts and build it that way
    Regards
    Alan

Maybe you are looking for

  • Laserjet 1505 connected to AEB 802.11n via USB keeps timing out after print

    I have a HP Laserjet 1505 connected on my AEB 802.11n via USB and shared on my network, on my network are two macs connected via wifi and 3 WinXP PC connected via wire. I have Bonjour and WinXP laserjet drivers installed on all Win PC. Everytime I pr

  • Are free-text attributes not possible?  Why?

    I'm pretty new to MDM, just learning really.  I've done some complicated imports, in cluding hierarchies and taxonomies. At my company we have product records that contain product specs.  There are about 200 different specs that different products CA

  • How can I clean up my MBA so it runs faster?

    I have a 2010 Macbook Air with 17GB out of 60GB free on the HD. Lately it has been a little slow (especially in Numbers, sometimes in Safari). I'm looking for ways I can clean up any unnecessary files and just do routine maintenance. I have recently

  • Flat file loading... how to automate the loading of multiple files

    HI Alll, I'm wondering if it's possible to create a routine that automates the loading of several flat files into a PSA table. I only want a single info package, and I would like this info package to load file 1, then load file 2, file 3 etc etc....

  • What's going on with U-Verse in South Miami

    For the past two months, we have been getting dropped signals (bundled U-Verse and including landline, mobile phone, television and internet) sometimes three times a day. I have had phone calls drop while speaking to my boss, (I work from home) favou