Aggregate and non Aggregate facts.

I'm having trouble getting a non aggregated table to aggregate.
Once I create source's to accomidate an aggregate table (within say product) the non aggregated table no longer aggregates?
Any help would be appreciated...

yes aggregates and partition are done in cubes
go through these links also
aggregates
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cbd2d390-0201-0010-8eab-a8a9269a23c2
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2299d290-0201-0010-1a8e-880c6d3d0ade
partitioning
http://help.sap.com/saphelp_nw04/helpdata/en/0a/cd6e3a30aac013e10000000a114084/frameset.htm

Similar Messages

  • Aggregate and non-aggregate

    I am trying to run a query that such as the following:
    select id, sum(amount), min(start_date), end_date
    from test_table
    group by id
    So I only want to group fields by id. I know I can handle the start date by removing the min and including a having clause like
    Having start_date = min(start_date)
    But when I make this change it complains that I am not grouping by start and end date, which would throw off my amount sums.
    Is there a way to get the amount summed by id and still return these two other dates based on the minimum start date?
    Thanks!

    Ok, I'll try to answer my own question since I'm in a hurry.
    I rearranged the query to look like this.
    Select a.id, b.amount, a.start_date, a.end_date
    from a.test_table,
    (select id, sum(amount) from test_table group by id) b
    where a.id = b.id
    and start_date = (select min(start_date) from test_table c where c.id = a.id)
    Anyone got anything better or more efficient?

  • -- SQL -- GROUP BY clause: non-aggregate fields mandate

    Hello,
    I was studying Databases, (particularly the retrieval of the data), and found something interesting.
    While using an Aggregate Function in the SELECT clause, it is mandatory to have all the non-aggregate fields in the SELECT clause to be there in the GROUP BY clause.
    For example,
    SELECT dept_no, SUM(salary)
    FROM employee
    GROUP BY dept_no;
    The above SQL works fine.
    But, what if the user misses the dept_no in the GROUP BY clause or he/she misses the GROUP BY clause itself?
    Certainly, it is an error.
    Why is this error not handled by the database. I mean, the database should be smart/intelligent enough to add the GROUP BY clause by itself. So suppose, if I miss out the GROUP BY clause or miss a non-aggregate field from the SELECT clause when I am having at least one aggregate function on a field with at least one non-aggregated field in the SELECT clause, the database should check the GROUP BY clause at time of compilation and add the mandate missed out fields in the GROUP BY clause.
    Example,
    SQL1:_
    SELECT dept_no, SUM(salary)
    FROM employee
    GROUP BY dept_no;
    SQL2:_
    SELECT dept_no, SUM(salary)
    FROM employee;
    Here, the SQL1 and SQL2, both should give me same outputs without an error.
    I am unable to understand why is this not handled?

    Hi,
    998478 wrote:
    ... If we mix aggregate and non-aggregate values then there must be a GROUP BY clause containing all the non-aggregate values. Why is this not handled by the database/compiler itself? It IS handled by the compiler itself. The compiler handles it by raising an error. The compiler has no way of knowing whether you want to remove something from the SELECT clause, or to add something to the GROUP BY clause, or not to use aggregate functions, or to use more aggregate functions, or some combination of the above. If the compiler re-wrote your code, and did any of these things automatically, it would be wrong more often than it was right, and you would (rightly) be complaining about its behavior.
    For example, this is clearly wrong:
    SELECT    deptno
    ,       job
    ,       SUM (sal)
    FROM       scott.emp
    GROUP BY  deptno
    ;What is the right way to fix it?
    <h3>1. Remove something from the SELECT clause</h3>
    SELECT    deptno
    ,       SUM (sal)
    FROM       scott.emp
    GROUP BY  deptno
    ;<h3>2. Add something to the GROUP BY clause</h3>
    SELECT    deptno
    ,       job
    ,       SUM (sal)
    FROM       scott.emp
    GROUP BY  deptno
    ,         job
    ;<h3>3. Not use aggregate functions</h3>
    SELECT    deptno
    ,       job
    ,       sal
    FROM       scott.emp
    ;<h3>4. Use more aggregate functions</h3>
    SELECT    deptno
    ,       MIN (job)
    ,       SUM (sal)
    FROM       scott.emp
    GROUP BY  deptno
    ;These aren't all the options, either. For example, the correct fix might be to use analytic functions instead of aggregate functions.
    How can anybody say which of these is right? All of them are the right answer for some problem.
    By the way, saying that everying in the SELECT clause must be an aggregate or in the GROUP BY clause is a bit over-simplified.
    More completely, here are the ABC's of GROUP BY:
    When you use a GROUP BY clause and/or an aggregate function, then everything in the SELECT clause must be:
    (A) an <b>A</b>ggregate function,
    (B) one of the "group <b>B</b>y" expressions,
    (C) a <b>C</b>onstant, or
    (D) something that <b>D</b>epends entirely on the above. (For example, if you "GROUP BY TRUNC(dt)", you can SELECT "TO_CHAR (TRUNC(dt), 'Mon-DD')").
    Edited by: Frank Kulash on Apr 13, 2013 1:44 PM
    Added code examples.

  • Number Items Sometimes Given A Default Aggregate Of NONE

    I'm using Discoverer 10g (10.1.2.0). After incorporating an Oracle table into an EUL, I notice that several of the number type columns are given a default aggregate of <NONE> as well as the default position of TOP. And other number type columns in the same table are defaulted to SUM and DATA POINT, respectively. I have to go into the properities box and manually change these
    number type columns to SUM and DATA POINT in order for them to be aggregated properly in a workbook. Why does Discoverer do this? It seems to be a random thing. There is nothing unusual between these number type columns. In fact, in the underlying table all of these columns have the data type of NUMBER.
    Has anyone an idea as to why this is happening? Thank you.

    AS3 requires default values to be simple "compile-time constants". The typical workaround for a case like this is to do
    function myFunction(arg1:MyObject = null):void
        if (!arg1)
            arg1 = new MyObject(0, 0, 0);
    Gordon Smith
    Adobe Flex SDK Team

  • Aggregates on Non-cumulative InfoCubes, stock key figures, stock, stocks,

    Hi..Guru's
    Please let me know if  anybody has created aggregates on Non-Cumulative Cubes or key figure (i.e. 0IC_C03 Inventory Management.)
    I am facing the problem of performance related at the time of execution of query in 0IC_C03.( runtime dump )
    I have tried lot on to create aggregate by using proposal from query and other options. But its not working or using that aggr by query.
    Can somebody tell me about any sample aggr. which they are using on 0ic_c03.
    Or any tool to get better performance to execute query of the said cube.
    One more clarification req that what is Move the Marker pointer for stock calculation. I have compressed only two inital data loading req. should I compress the all req in cube (Regularly)
    If so there would be any option to get req compress automatically after successfully load in data target.
    We are using all three data sources 2lis_03_bx,bf & um for the same.
    Regards,
    Navin

    Hi,
    Definately the compression has lot of effect on the quey execution time for Inventory cubes <b>than</b> other cumulated cubes.
    So Do compression reqularly, once you feel that the deletion of request is not needed any more.
    And ,If the query do not has calday characterstic and need only month characterstic ,use Snap shot Info cube(which is mentioned and procedure is given in How to paper) and divert the month wise(and higher granularity on time characterstic ,like quarter & year) queries to this cube.
    And, the percentage of improvement in qury execution time in case of aggregates is less for non cumulated cubes when compared to other normal(cumulated) cubes. But still there is improvement in using aggregates.
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by: Anil Kumar Sharma

  • Using Aggregate storage cubes to aggregate and populate DWHSE

    Has anyone ever used aso cube to aggregate data and put it into a datawarehouse? We are exploring the option of using essbase ASO's to aggregate data from a fact into summary form then loading the required data via dataexport in version (9.3.1) OR (9.5)
    whatever version supports aso AND dataexport.

    Hi Whiterook72,
    Heterogenous data sources -> ETL -> warehouse -> essbase/OLAP -> MIS and analyses
    Conventionally, in an enterprise , we have essbase or an OLAP engine after the warehouse .As a level of aggregation happens in warehouse ,and for the multidimensional view ,we push it into OLAP.
    Contrariwise , in your case ,
    Heterogenous data sources -> ETL ->essbase/olap -> warehouse -> MIS and analyses
    you want to bring essbas before you load the data into warehouse .This would make essbase to feed from the operational data sources, where we have a lil problem.
    Ex: for a bank ,operational data has information at customer level i.e you have individual customer name, and their respective info like addres,transaction info bla bla bla.
    So,to feed this info into essbase cube ( with an objective of aggregation) , you got to have millions of members ( i.e all customers ) in your outline .
    Which i see is not the objective of essbase .
    Just my thoughts , hope they help you
    Sandeep Reddy Enti
    HCC

  • Bw Aggregates and BPS

    Hi, 
    We are performance tuning BPS web interface. I have found a note 560369 (Proposal BW aggreates for sem-bps) regarding response times for reading of transactional data. 
    We have built a report layout that contains Amount (by period) for the current year plus a total amount for last years actuals.
    My Question is this. When read access is performed, will more than 1 aggregate be used if I create more detailed aggregates are found. (eg: In Bex queries multiply aggregate may be used in a to produce a query result)
    Regards  Tony

    Just a comment on multiple aggregates being used in a Bex query - there is a certain amount of overhead when multiple aggregates are read to answer an OLAP query, e.g. a database query for each aggregate that is accessed has to run (and double that if  the aggregates are not fully compressed and the E and F Agg fact tables have to be read) and then those results all have to be merged.  If the queries involve many or large master data tables, the overhead of doing that many times may take more time than having a a single aggregate.
    You have to review the statistics/timings to see if the multiple aggregates used for one query are helping more, or starting to hurt you.
    Message was edited by: Pizzaman
    Tony, why not get your own ID - the price is right.

  • SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

    Below expression works fine with text box but gives error in dataset expression.
    ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
    and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
    & "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
    "," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
    & join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
    "')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
    "," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
    and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
    and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
    and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
    I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
    Pls. guide...

    Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
    Hope this helps.........
    Ione

  • Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi,
    I believe this would be your Prod system, so don't just cancel it but look at the job log. If it is still processing then don't kill it and wait for the change run to complete but if you can see that nothing is happening and it is stuck for a long time then you can go ahead and cancel it.
    But please be sure, as these kind of jobs can create problems if you cancel them in the middle of a job.
    Regards,
    Arminder Singh

  • Sql with groups, aggregates and fields of that aggregates

    lets say I have a table Students and want to group the students by major, and then for each group display the maximum age, and them for that maximum age display the name of that student
    I know how to do the grouping and max aggregate, I know how to do the max aggregate and the name of the max aggregate, but I'm having trouble doing all 3 together. Any help would be appreciated. Thanks.

    ok, well I was using an hypotethical example. What I'm really dealing with are many fields with from many tables and 2 groups with 2 nested aggregates. The original query from Crystal Reports doesnt use aggregates, its all done within report. I'm converting it to SSRS which doesnt support nested aggregates so I'm trying to do one of the aggregates in the query and then the other aggregate within the report.
    table students:
    name
    age
    major
    so the original query would look like:
    select name, age, major
    from student
    I'm trying to do something like:
    select max(age), name from max(age), major
    from student
    group by major
    Edited by: nwill on Feb 19, 2009 3:22 PM

  • Aggregate and structure

    i just what to know the  difference between aggregate and structure? although aggregate is used for query performance and structure for reporting.Both are giving the same view?

    adding to the paolo's answer
    Aggregates are used for query performance in the sense that If ur query has the same selections as they are in the aggregates then the query performance increases dramtically and structure is used in reporting in cases such as where u might need a complex selections of char and KF's.
    for structures
    http://help.sap.com/saphelp_nw04/helpdata/en/4d/e2bebb41da1d42917100471b364efa/content.htm
    for aggregates
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/eb683cc5e8ca68e10000000a114084/frameset.htm

  • Tools for Dimension Modelling and building Aggregates

    Hello everybody,
    I want to analyze and improve the dimensions of a cube and create aggregates. Please let me know if there are any standard tools/programs (in BW 3.5, but also in 7.0 if there are any improvements) to analyze the relations between characteristics in a cube. For example, I have beside others these 3 characteristics: Document Number, Customer and Date. Lets assume there is almost only one document (number) per day. This could lead into the decision of having these 2 characteristics in one dimension which you wouldnt have expected at the beginning.
    Besides that, an aggregate where I throw out document number would not make any sense, because Date has the same granularity. Normally I would do that by doing some manual analysis and trial and error, but I currently have a too huge data set.
    I know the RSRV and the aggregation proposals, but are there any tools that can display me the dependencies between the characteristics in a cube?
    Thanks for your help,
    best regards,
    Michael

    Hi Michael,
    but that's it for the design of the cube/dimensions. Additionally you can use rsrt, to run a query in debug mode to get the required information about aggregates.
    regards
    Siggi

  • Small confusion about aggregates and attribute change run.. plz explain

    hi bw experts,
    i am having a small confusion regarding the aggregates and attribute change run.
    as far as in know if there is any new master data loaded, then we will activate it by context menu on the particular info object and select the option activate master data.
    the second one is going to tools--?apply hierarchy/attribute change run option.
    my doubt is is the attribute change run related to aggregates is yes then how,.?
    appreciated if you plz help me in detail both these concepts and wherther there is any connection between them.
    thanks & regards.
    vijay..

    Hi Vijay sagar,
    ATTRIBUTE CHANGE RUN:
    1)It's used after you change (add/delete/modify) attribute in the master data. You've to make it in order to have an effect after you modify it.
    2)Once the master data has been loaded, the hierarchy/attribute change run is performed. Once this process chain has been ended correctly, master data and texts are available in an active format in SAP BW.
    To get it :
    1. tcode : RSA1.
    2. Tools -> Apply Hierarchy/Attribute Change
    3. tap on Info-object list button (checking what master data you've modified before).
    4. tap on selection button for type of job
    5. Execute.
    link(s):
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a67ece07211d2acb80000e829fbfe/frameset.htm
    AGGREGATES:
    1)Aggregates make it possible to access InfoCube data quickly in reporting. In doing so, aggregates help improve performance. (See Aggregate.)
    2)In order to be able to insert aggregates effectively, it is important to find out which aggregates are frequently used or have not been used in a long time.
    3)Aggregates contains not only general data but also data that appears in an aggregate after data is filled and rolled up. Reporting in this InfoCube reveals how often data was loaded into an aggregate, how long filling and rolling up took, and whether it took longer to read or write the data.
    4)Adding when Rolling Up in Aggregate  counts the time required to write the data to the aggregate.
    The Records, Read for Aggregate Structure key figure  counts the data records that are read for constructing the aggregate.
    Refer the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm
    Assign points if it helps u
    Thanks & Regards,
    Madhusudhan Reddy.K

  • Difference Between Aggregates and Compression

    Hi,
    Can you tell me what is the difference between Aggregates and Compression?
    I know ,once compressed data is not available for deletion in request wise
    and it moves from  F table to E table .
    Aggregates means ,data will move from cube to aggreagates(Baby cubes).
    But my query is ,As both of them aggregates the data.which of them should be used. at what situation?
    I hope you understood my Query.
    Regards.
    Naresh.

    Hi,
    An aggregate is a materialized, aggregated view of the data in an InfoCube. In an aggregate, the dataset of an InfoCube is saved redundantly and persistently in a consolidated form into the database.
    Aggregates make it possible to access InfoCube data quickly in Reporting. Aggregates serve, in a similar way to database indexes, to improve performance.
    especially in the following cases we create aggregates:
    The execution and navigation of query data leads to delays with a group of queries.
    You want to speed up the execution and navigation of a specific query.
    You often use attributes in queries.
    You want to speed up reporting with characteristic hierarchies by aggregating specific hierarchy levels.
    For more info on aggregates go though the link below
    https://help.sap.com/saphelp_sem320bw/helpdata/en/c5/40813b680c250fe10000000a114084/frameset.htm
    Compression creates a new cube that has consolidated and summed duplicate information.
    2. When you compress, BW does a group by on dimensions and a sum on measures... this eliminates redundent
    information.
    3. Compressed infocubes require less storage space and are faster for retrieval of information.
    4. Once a cube is compressed, you cannot alter the information in it. This can be a big problem if there
    is an error in some of the data that has been compressed.
    For more info go though the below link
    http://www.sap-img.com/business/infocube-compression.htm
    Regards,
    Marasa.

  • Cumulative and non-cumulative for key figure

    Hi,
    In the aggregation tab, we have the aggregate type SUM, Max or Min.
    we also have the comulative/non-cumulative values.
    what's the difference between comulative and non-cumulative values? it would be good to have some example for illustration. and does comulative and non-cumulative have any relation with aggregate type?
    Many Thanks
    Jonathan

    Hi,
    what's the difference between comulative and non-cumulative values?
    Cumulative values are those key figures that are cumulated using all characteristics, thus also using time.
    Example: sales revenue, weight, etc.
    Non-cumulative values are those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.Example:stock quantities/-values, number of employees, account balances, etc.
    Does comulative and non-cumulative have any relation with aggregate type?
    Different types of non-cumulative keyfigures.....are....
    1.Non-cumulativekey figure = cumulative keyfigure with excep.aggregation
    2.Non-cumulativekey figure withassociated singledelta (cumulative)
    3.Non-cumulativekey figure withassociated in-andoutflow(cumulative)
    check these links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/93ed1695-0501-0010-b7a9-d4cc4ef26d31
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92c0aa90-0201-0010-17b1-bf5b11c71257
    hope it helps...
    Regards
    chandra sekhar
    Edited by: chandra  sekhar t on Nov 28, 2008 2:18 PM

Maybe you are looking for

  • How to change associated iMessage email in conversation?

    Hi all, A friend and I are having issues with iMessage. Basicly her whole family uses the one Apple ID for purchases, so my friend updated to iOS5, and we were messing about with iMessages not realising that it was using their family Apple ID. So we

  • Multiple page library in one site

    is there any way to create more than one page library in the same site programmatically in SharePoint 2013?? Mohamed Abdeen

  • How to add marker on the clip?

    Hi!!! Could you help me, how to add marker on the clip? Not on the sequence. I need the marker to moving as I moving clip in the sequence. Thanks!!!

  • Returning a value from a query into an application item

    Hi, I have a insert statement defined in a process which I require that after inserting some data (from which the primary key is fetched from a sequence within a trigger on the table ra_assessments) that this key is then returned into the application

  • Need some info about getting started with the GE70 2PC Apache

    Hi guys! I'm about to getting the new GE70 2PC Apache gaming notebook from MSI and since I'm really putting alot of money in this I really wanna handle it gently :p So I got some questions about this, since It'll be the first time I'd but a gaming no