Replacing @DESCENDANTS to aggregate data in BR

Hi,
I have a BR to run aggragate on a specific part of my cube (I don't want to aggregate all the "Secteur Utilisateur" dimension to increase performance as it is attached to a Planning form and running on save).
The current script is working fine using the code below (the BR first calculate the the ancestors of the "Secteur Utilisateur" on the form (using the variable "local_secteur"), then calculate the "SAPR" alternate hierarchy that is used later in the script)
/* Dimension Secteur Utilisateur */
FIX(@DESCENDANTS("APS",0),@DESCENDANTS("PPS",0),[local_entity])
@IANCESTORS([local_secteur]);
@DESCENDANTS("SAPR");
ENDFIX
but I would like to exclude level-0 from @DESCENDANTS("SAPR") (I don't want to calculate them, only parents, to save time).
I don't want to use AGG or CALC DIM as I don't want to aggregate all the dimension, only the part that will be used later.
I tried the "EXCLUDE" command, but it doesn't work in BR.
@REMOVE isn't working either as AAS give me an error : (1012000): Invalid Syntax - Not a CALC command @REMOVE
Any other ideas ?
Thanks
Edited by: francois.robineau on 2009-08-18 12:51

you could try
@DESCENDANTS("SAPR",-1);
from the dbag
@IDESCENDANTS (mbrName[, genLevNum | genLevName])
Parameter Description
mbrName Valid member name or member-name combination or a function that returns one member or member combination.
genLevNum Optional. The integer value that defines the absolute generation or level number up to which to select members. A positive integer defines a generation number. A value of 0 or a negative integer defines a level number.
genLevName Optional. The level or generation name up to which to select members.

Similar Messages

  • Formula variable with replacement path on system date

    Hi Experts,
    I got a requirement to calculate "Days without payment" in report level.
    Days without payment = System Date - Payment Date.
    (Payment date field is available in CUBE, but system date field is not available in the CUBE)
    As we know, the difference b/w 2 dates is not possible directly.It can be possible by creating 2 formula variables with replacement paths on the dates and by writing aformula on these 2 formula variables.
    But the thing is I dont have system date readily available, and I tried by using SAP Exit. But we cant create formula variable replacement path on another variable (SAP EXIT).
    Do we have any SAP variable  for formula with replacement path readily avaliable to get system date (or) any other suggession.
    Please suggest me.
    Thanks,
    Sai Chand.S

    Hi Arminder,
    Thanks for your valuable answer.
    I tried doing the same previously.As u said we can get system date by creating customer exit variable.
    But the thing is to find difference b/w 2 dates, we cant do it directly, we need to create 2 formula variables with replacement path.
    1) Var1 = Formula variable with replacement path on system date(custoer exit variable).
    2) Var2 = Formula variable with replacement path on paymanet date.
    Number of days = var1 - var2.
    But as in 1st point, we cant create formula variable with replacement path on another variable, as system date is already a variable of type customer exit.
    We can create replacement paths only on characteristics.
    Please suggest me .
    Thanks,
    Sai Chand.S

  • Can I restore a single calendar archive to iCal without replacing my current ical data in other calendars?

    I archived an iCal calendar.  When I went to import it back into iCal, a message says "The iCal backup “abcd.icbu” will replace your current iCal data. You can’t undo this action."  Will it replace ALL my current iCal data, or just any data in a calendar labeled "abcd"?

    imci,
    As the warning says: "...will replace your current iCal data." All of your current data will be overwritten with the .icbu file.
    I presume that you do not want to do that.
    One method of accomplishing the integration without losing current data, is to use iCal>File>Export>Export... for each one of your current calendars. That method will create .ics files for the individual calendars. After creating those .ics files and saving them to a suitable location, you can then use the .icbu file to restore from the archive.
    After the archive restoration is complete, you can go to the saved location and double click on the .ics files. You will be offered a choice to create a new calendar, or integrate into an existing calendar. Use the choice appropriate for your situation.

  • Can I store only the aggregate data in OLAP cube

    Hi All,
    I know that the OLAP cubes store the leaf data and then builds the aggregate data on top of it and stores with in it. I have huge amounts of data ( like billions of data in my fact table and 6-8 dimension tables). If you keep the leaf data along with the agg data with in the cube would be too large to build.
    So I am thinking to have to store only the agg data within the OLAP cube and for the leaf data it should still read from the Relational tables. Something like Hybrid OLAP.
    (what I mean is
    1. create the dimensions and cube in the AWM on 11g.
    2. I will also specifiy the levels that I want the agg data to be calculated and stored in the OLAP cube.
    (what I want is
    1. I want to store only the agg data in the cube and leaf data still in the relatlional tables.
    2. when I read the cube and drill down to the leaf level , it should fetch the leaf level data.
    Is this possible in Oracle OLAP, if yes please provide some pointers
    Thanks
    S

    First you should try out storing and aggregating data to atleast see if the cube-loading time, query-time and AW-size is within acceptable limit or not. 11gOLAP especially 11gR2 OLAP is very efficient on all three fronts.
    Regarding specifying levels, you can either use Cost-based-aggregation and pick the %age that should be pre-aggregated OR you can use Level-based-aggregation and pick the levels from each dimension that should be pre-aggregated.
    Try these out before venturing into anything else. You will be surprised by the results. There are other ways to store the data in smaller multiple-cubes and joining those cubes through formulas. Make sure you don't mistake an attribute for a dimension.
    Not sure what you mean by just storing aggregated data in olap cubes. You can just do a SUM .. GROUP BY .. of relational data before loading it into olap cubes. For example, if you source data is at DAY level, you can SUM.. GROUP BY .. at MONTH-level and then load month-level data into olap cubes where leaf-level is month-level.
    The sql view (used by reporting tools) could then be a join between month-level "olap" data and "day-level" relational data. When you are drilling-down on the data, the sql view will pick up data from appropriate place.
    One more thing. Drill-Thru to detail data is a functionality of reporting tools also. If you are using OBIEE or Discoverer Plus OLAP, then you can design the reports in a way that after you reach the olap leaf-level, then it will take the user to a relational detail-report.
    These are all just quick suggestions (on a Friday evening). If possible, you should get Oracle OLAP Consulting Group help, who can come up with good design for all your reporting needs.

  • Replacement of FORECAST DELIVERY DATE with DATE OF FIRST RECEIPT

    Please help me in my scenario below and post your valuable comments-
    My Scenario is like -
    For example, In REPORT, For the item 10 of the order 4700035361 our FIRST RECEIPT DATE is in march (14/03/2011) and FORECAST DELIVERY DATE is in december (30/12/2011). This purchase order item was completely received.
    Requirement is like---
    Associated cube is ZCUIMP01.
    (1) The evolution will consist of replace the FORECAST DELIVERY DATE with FIRST RECEIPT DATE of the item.
    (2) The period (Fiscper and Fiscyear) will also be modified.
    (3) Hence the calculation of the YTD will take into account the order and its receipt date.
    (4) The adjustment of the history will be necessary for the year 2011.
    Can anyone suggest, from where i should start my analysis (Should it be Infocube level??).
    What will be the approach to fulfill all the above mentioned requirement (Should we think about Remodeling concept for creating new data model, if yes then how to do?).
    Please reply asap, it will be great help for me.
    My advance thanks to you.
    Thanks & Regards
    Rupali Singh

    Hi Rupali,
    As I understand there is a business change that you need to justify in our report. Unfortunately your explanation of the design has a considerable gap to visualize. In any case, if you need help on to how to approach such a change -
    1. Understand the business change, its purpose and its imapct on your current design and the report.
    2. Understanding the purpose is very important since you will then be able to find workarounds, redesign as per the change required.
    3. Start from the query and check if your replacement of characterisitics with new characteristics can be obtained using functions like Replacement path, attributes, customer exits, etc. Changing a query/creating a new report on the existing model is the most feasible option.
    4. If not, try exploring option to keep the design untouched, and creating a new InfoObject/DSO like structure to capture the date modifications, etc which then can be used on a MultiProvider.
    Hope the above helps!
    Regards,
    Kunal Gandhi

  • How to aggregate data in SQL Query

    Hi,
    I have Table1 field1 and field2. Combination of these fields form the key of this table.
    Next I have Table2 with field3 and field4. field1 is the unique key for this table.
    My query is:
    select T2.field4||','||T1.field2 from T1 inner join T2 on T1.field1 = T2.field3;
    In the result I want to aggregate the data by T2.field4
    How do I that? Please help
    Thanks in advance,
    Raja

    How to aggregate data in SQL Query By using aggregate functions and group by:
    SQL> select object_type, count(*), sum(decode(status,'VALID',0,1)) inv_obs
      2  from all_objects
      3  group by object_type;
    OBJECT_TYPE                     COUNT(*)              INV_OBS
    CONSUMER GROUP                         2                    0
    INDEX PARTITION                      970                    0
    TABLE SUBPARTITION                    14                    0
    SEQUENCE                             226                    0
    SCHEDULE                               1                    0
    TABLE PARTITION                      349                    0
    PROCEDURE                             21                    0
    OPERATOR                              57                    0
    WINDOW                                 2                    0
    PACKAGE                              313                    0
    PACKAGE BODY                          13                    0
    LIBRARY                               12                    0
    PROGRAM                                9                    0
    INDEX SUBPARTITION                   406                    0
    LOB                                    1                    0
    JAVA RESOURCE                        771                    0
    XML SCHEMA                            24                    0
    JOB CLASS                              1                    0
    TRIGGER                                1                    0
    TABLE                               2880                    0
    INDEX                               4102                    0
    SYNONYM                            20755                  140
    VIEW                                3807                   72
    FUNCTION                             226                    0
    WINDOW GROUP                           1                    0
    JAVA CLASS                         16393                    0
    INDEXTYPE                             10                    0
    CLUSTER                               10                    0
    TYPE                                1246                    0
    EVALUATION CONTEXT                     1                    0

  • How to aggregate data with BI Publisher using an OBIEE analysis

    Hello,
    I'm new with BI Publisher, and I have a concern about the ability for BIP to aggregate data.
    I am creating a data source from an OBIEE analysis containing the columns "Year", "Month", and "Revenue".
    I want to use this source for 1 report containing several pages. One of the page has a simple table displaying only the Year and the Revenue.
    But I get as many rows as number of months is the year.
    And I cannot find any way to have the data aggregate inside my PIB table.
    Can someone help me finding the solution?
    Many thanks in advance

    Hi,
    Unfortunalty BIP doesn't aggregate anything, like the BI server does. It will always show data on the lowest level.
    If you use a query on the BI-server let the BI server do the aggregation and just remove the "Month" column. If you don't want to remove it from your OBI analysis, copy the logical SQL from this analysis to BIP. And select OBIEE as a datasource.
    Then remove month from your query.
    Regards, Machiel

  • Create a formula variable using replacement path for current date

    Hi All,
    I created a formula variable using replacement path for current date.
    But when i used this variable am getting an error message saying .
    " This Variable cannot be used in this query".
    Could you please let me know the reason?
    Thanks,
    Zehra

    Hi All,
    Thanks for all your help...
    I just found a solution via the below link
    in Bex Formula variabel, Current calander day(sap exit) missing.
    Here he is trying to use the existing formula variable.
    My doubt here is, Even i could not find this varaible in BEX formula variable, But could see this in BI Content path as mentioned in the above link.  DO i have to transport this varaible , or i simply can activate it in production?
    I just could find this in BI Content but not in MetaData Repository.
    Thanks,
    Zehra

  • How to replace content in text data type?

    How to replace content in text data type? 
    when we sending the mails we are taking content from the database.
    The data is maintained in text data type column. Now i have to replace some of content in mail content
    (text data type column) from database. 
    I tried by using REPLACE function but data is truncated

    The data is maintained in text data type column.
    Hello,
    See REPLACE (Transact-SQL) => "If
    string_expression is not of type varchar(max) or
    nvarchar(max), REPLACE
    truncates the return value at 8,000 Bytes"
    You may should consider to Change the data type from "Text" (deprecated) to NVarChar(max).
    Otherwise you have to use
    UPDATETEXT (Transact-SQL) for the text data type.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem in displaying detail along with Aggregate data.

    Hi
    I am new to BIP and I am facing problem to display detail as well as aggregate values at a time.
    My data is like below
    Security Value
    S1 10     
    S2 20     
    S3 30     
    S3 40     
    S4 50     
    S5 60     
    S5 70     
    I want to display data in report as
    Security Value
    S1 10     
    S2 20     
    S3 30     
    S3 40     
    Total S3 70
    S4 50     
    S5 10     
    S5 70     
    Total S5 80
    I tried using for <?for-each-group:G_2;./Security?> but I am getting following output:
    Security Value
    S1 10     
    S2 20     
    S3 30     
    Total S3 70
    S4 50     
    S5 10     
    Total S5 80
    Template:
    <?for-each-group:G_2;./Security?> <?Security?>:<?Value?>
    <?if:count(current-group()/SECNAME)>1?> Total <?Security?>:<?sum(current-group()/Value)?> <?end if?> <?end for-each-group?>
    The problem is I need to display detail as well as aggregate data. Please suggest.

    Hi Kavipriya
    Thanks for your response.
    I tried the code you provided but I am getting blank PDF report from RTF template.
    Also I didn’t understand <?variable:GRP;G2?>, is this declaration of group variable or something?
    Below is my xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Generated by Oracle BI Publisher 11.1.1.3.0-->
    <DATA_DS>
    <G_1>
    <SECURITY>S1</SECURITY>
    <VALUE1>10</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S2</SECURITY>
    <VALUE1>20</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S3</SECURITY>
    <VALUE1>30</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S3</SECURITY>
    <VALUE1>40</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S4</SECURITY>
    <VALUE1>50</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S4</SECURITY>
    <VALUE1>30</VALUE1>
    </G_1>
    </DATA_DS>
    And following is the code I used in RTF template
    <?variable:GRP;G1?>
    <?for-each-group:G1;./SECURITY?> <?xdoxslt:set_variable($_XDOCTX,'SEC',./SECURITY)?>
    <?for-each:$GRP[./SECURITY= xdoxslt:get_variable($_XDOCTX,'SEC')]?>
    <?SECURITY?>:<? VALUE1?> <?end for-each?>
    <?if:count(current-group()/SECURITY)>1?> Total <?SECURITY?>:<?sum(current-group()/VALUE1)?> <?end if?>
    <?end for-each-group?>

  • Use of semantic groups to aggregate data

    In a number of threads - e.g. Semantic Groups in DTP it is stated that you cannot use semantic groups to aggregate data. In others, there are statements that this is only for handling the error stack.
    This I find puzzling, as the SAP Help says:
    +Choose Semantic Groups to specify how you want to build the data packages that are read from the source (DataSource or InfoProvider). To do this, define key fields. Data records that have the same key are combined in a single data package.
    This setting is only relevant for DataStore objects with data fields that are overwritten. This setting also defines the key fields for the error stack. By defining the key for the error stack, you ensure that the data can be updated in the target in the correct order once the incorrect data records have been corrected.+
    The experience of one of my clients is that you can indeed use Semantic Groups, and you do not need to define an error-DTP. ( Change the error handling on the Update tab to, e.g. "1 Valid Records Update, No Reporting" - then the key fields displayed after perssing the semantic group button become available ).
    Any comments? Have I misunderstood the point that the others have been making?
    matt

    Hi Matt,
    Semantic group is used to define the groupiing of records by data package.  If you select 0PLANT as a Semantic group, each packet of data will contain all values of 0PLANT until the Max record is reach.  Example, Package Size is set to 50K.  If you have 30K of 0PLANT = 0002 and 22K of 0PLANT = 0003.  First packet will contain 52K records of plant 0002 & 0003.  The next packet will start with plant 0004 and will contain all records with 0004.  If this doesn't make 50K records then plant 0005 will be included in packet 2. 
    Regards,
    Dae Jin

  • Summary Vs. Aggregate Data

    Hi,
    Could anyone tell me the difference between summary and aggregate data?
    Thanks in advance,
    AJ

    yes.
    http://books.google.com/books?id=aIs8drBVdaoC&pg=PA355&dq=%22Before+you+can+query+SSAS+from+your+web+application%22&hl=en&sa=X&ei=z_HUUtD2L4juoASzuYGIBw&ved=0CEgQ6AEwAA#v=onepage&q=%22Before%20you%20can%20query%20SSAS%20from%20your%20web%20application%22&f=false
    Tatyana Yakushev [PredixionSoftware.com]
    Download Predixion Insight 3.0 - World class predictive platform for big data

  • Aggregate data

    Hi All
    I loaded data into Aggregate. Now i want to see the data in that aggregate.How to see the data.
    thanks in advance.
    reddy

    Hi,
    1. Right click on the cube -> select <i>Maintain Aggregates</i> -> in the screen that follows, select your aggregate -> Goto -> Aggregate Data (Shift+F9).
    2. Execute Tcode LISTCUBE -> Enter 'CUBE' and aggregate name.
    Regards,
    Vikrant.

  • Okay. when i connected my iphone 5 to itunes it replaced all of the data from my old iphone 3gs (contacts, apps, notes, bookmarks,photos, music, everything you can possibly think of) with my new iphone 5's data. I am so frustrated with this. Why?

    okay. when i connected my iphone 5 to itunes it replaced all of the data from my old iphone 3gs (contacts, apps, notes, bookmarks,photos, music, everything you can possibly think of) with my new iphone 5's data. I am so frustrated with this. Why? and it did it by itself, i didnt touch anything, or clicked anything. please help me this is urgent! I am a businessman and need my contacts.

    You're iPhone was probably set to automatically sync with your iTunes upon plugging it in. Best option is to restore from a backup, either on iCloud or your computer.

  • Not sure if this is the right place...but is there any aggregate data repository/dictionary out there?

    And what I mean is...Is there any aggregate data dictionary out there that tells you how long and what type a data column should be?
    For example...Medical Provider Name...what is the normal length for something like this? Provider ID? Tax ID? Address Line 1? City? State?...Etc...
    Is like EDI X12 considered the Bible of Data Dictionaries? Yet you have to pay for that don't you? Is there anything else I can reference???
    Thanks for your review and am hopeful for a reply.
    PSULionRP

    Provider ID is well defined:
    "National Provider Identifier Standard (NPI)
    The National Provider Identifier (NPI) is a Health Insurance Portability and Accountability Act (HIPAA) Administrative Simplification Standard. The NPI is a unique identification number for covered health care providers. Covered health care providers and
    all health plans and health care clearinghouses must use the NPIs in the administrative and financial transactions adopted under HIPAA. The NPI is a 10-position, intelligence-free numeric identifier (10-digit number). This means that the numbers do not carry
    other information about healthcare providers, such as the state in which they live or their medical specialty. The NPI must be used in lieu of legacy provider identifiers in the HIPAA standards transactions."
    LINK:
    http://www.cms.gov/Regulations-and-Guidance/HIPAA-Administrative-Simplification/NationalProvIdentStand/index.html?redirect=/NationalProvIdentStand/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for

  • Archive tasks in Ical

    How do you archive completed tasks in Ical in Lion?

  • BO XI 3 Creation of SAP universe

    Hello, We have BO Xi R3, we have installed the SAP integration kit both on the server and on a client machine.  I have installed Crystal 2008 and through that have been able to write some reports on some SAP tables through the Open SQL drivers provid

  • Error Message in config Archive in RME in LMS 4.2

                      I got the below error message in the config archive in the LMS 4.2. CM0056 Config fetch failed for 10.0.0.10  Cause: CM0204 Could not create DeviceContext for 797 Cause: CM0202 Could not access 10.0.0.10 via SNMP. Action: Check the

  • Problem with autoformat in Numbers

    When I type some numeric values in Numbers, like for instance "0.1", I get them autoformatted to time format: "00:01". It happens with decimal numbers with one or two decimal digits: "0.23" becomes "00:23", etc. If I change format from "Automatic" to

  • Duplicate problem

    I have two tables: table #1 has the field called "eo", and table #2 has the fields called "eo", "reset_date". I want to display the field "eo" of the table #1, and the work order number that has the most recent date from the table #2. I made a query,