Tutorial for "aggregate based on dimensions"?

Hi, has anyone seen a detailed, step by step explanation of how to use the "aggregate based on dimensions" functionality? I easily understand how this is used in "time based" examples - i.e. average balances over time, beginning and ending balances, etc.
However, I'm thinking I may be able to use this to solve a problem I have where I need to average employee ages - but because employees can have more than one job, their ages often show up more than once (which I don't want). Somehow it seems like I should be able to use the FIRST or LAST aggregation function on one and/or some of the dimensions to achieve what I want...but I'm a bit stumped on how.
Thanks in advance!
Scott

I believe you want to use the FILTER function:
FILTER("Auto AR".UBI_AUTO_AR.PATIENT_AR USING "Auto AR"."UBI_AUTO_AR"."YEAR_MONTH" = last("Auto AR"."UBI_AUTO_AR"."YEAR_MONTH" ) )
I am not positive that it will work with the last() function, but it is worth a shot. This will aggregate based on the aggregation setting for "Auto AR".UBI_AUTO_AR.PATIENT_AR.

Similar Messages

  • Preaggregation across value based hierarchy dimension in 11g

    Hi All,
    I have created a cube with 6 dimensions in olap 11g. One of those six dimensions has only one hierarchy which is value based hierarchy. I have chosen level based aggregation as I know at what levels exactly users are going to query. When I was going through the dimensions to choose levels to preaggregate I noticed there were no options available for my value based hierarchy dimension ( I could see "all" option for the same case in 10g) then I tried to look for definitions of underlying objects just to make sure it will preaggregate data across my value based hierarchy dimension.
    I found value set corresponding to my value based hierarchy dimension in <CUBE NAME>SOLVEAGGMAP object , which AWM uses to decide which dimension values to preaggregate but if I do rpr on that value set (rp r<CUBE NAME>SOLVE<DIMENSION NAME>_PVSET) it shows NA so my question is can I pre aggregate across value based hierarchy dimension in olap 11g?
    Olap Version: 11.2.0.1
    AWM version: 11.2.0.1
    Thanks

    Even if you know exactly which levels your users will query, percent based precompute (e.g. 30%) may still be faster in practice because queries are returned using 'sparse looping' instead of 'dense looping'. This was the single biggest performance advantage of 11g over 10g.
    But if you still want to use level based precompute, then you should look at the XML template for the cube (as saved by AWM, for example). In it you should find something called PrecomputeCondition. This defines the set of members that are precomputed. Here is an example I just created using the GLOBAL schema
    <PrecomputeCondition>
    <![CDATA[
      "TIME" LEVELS ("TIME"."MONTH", "TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
      CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL, CHANNEL.CHANNEL),
      CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT, CUSTOMER.REGION, CUSTOMER.SHIP_TO),
      PRODUCT LEVELS (PRODUCT.CLASS, PRODUCT.FAMILY, PRODUCT.ITEM)]]>
    </PrecomputeCondition>The PrecomputeCondition is also visible through the USER_CUBES view.
    SELECT PRECOMPUTE_CONDITION
    FROM USER_CUBES
    WHERE CUBE_NAME = 'MY_CUBE';You can hand modify this condition in the XML to specify an alternative 'non level based' precompute condition for any dimension. For example, if you define an attribute named 'SHOULD_PRECOMPUTE' on your PRODUCT dimension that is 1 for members to be precomputed and 0 for all others, then you can change the condition as follows.
    <PrecomputeCondition>
    <![CDATA[
      "TIME" LEVELS ("TIME"."MONTH", "TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
      CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL, CHANNEL.CHANNEL),
      CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT, CUSTOMER.REGION, CUSTOMER.SHIP_TO),
      PRODUCT WHERE PRODUCT.SHOULD_PRECOMPUTE = 1]]>
    </PrecomputeCondition>If you recreate the cube from the XML with this condition, then the PVSET valueset you discovered should contain all dimension members for which the attribute value is 1.   This gives you complete control over what is precomputed.   Note that AWM doesn't support this form of condition, so it won't show up if you go to the Precompute tab, but it is valid for the server.  The PL/SQL below will modify the PrecomputeCondition (for the cube named MYCUBE) without going through AWM.
    begin
      dbms_cube.import_xml(q'!
    <Metadata
      Version="1.3"
      MinimumDatabaseVersion="11.2.0.2">
      <Cube Name="MY_CUBE">
        <Organization>
          <AWCubeOrganization>
            <PrecomputeCondition>
              <![CDATA[
               "TIME" LEVELS ("TIME"."MONTH","TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
               CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL,CHANNEL.CHANNEL),
               CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT,CUSTOMER.REGION,CUSTOMER.SHIP_TO),
               PRODUCT WHERE PRODUCT.SHOULD_PRECOMPUTE = 1]]>
            </PrecomputeCondition>
          </AWCubeOrganization>
        </Organization>
      </Cube>
    </Metadata>
    end;
    /

  • OBI EE 10g: Bridge tables and Based on Dimensions Aggregation

    hi experts,
    i am working on OBI EE 10 g (10.1.3.4)
    The BM&M layer consist of:
    1) Logical fact table "Sale_Indicators"
    Fields: SALE_ID (PK, FK),
    D1_ID (FK),
    D2_ID (FK),
    Indicator1 (measure, level of granularity: SALE_ID),
    Indicator2 (measure, level of granularity: SALE_ID),
    Indicator3 (measure, level of granularity: SALE_ID)
    2) Logical dimension table
    "Sales" (PK: SALE_ID),
    "D1" (PK: D1_ID),
    "D2" (PK: D2_ID),
    "Customers" (PK: SALE_ID, CUST_ID) - bridge table!
    "Products" (PK: SALE_ID, PROD_ID) - bridge table!
    3) Dimensions: SalesDim, D1Dim, D2Dim, CustomersDim, ProductsDim
    If fact table is joined with bridge table, the number of rows in fact table is multiplied, for example:
    D1_ID | SALE_ID | CUST_ID | Indicator1
    777 | 1 | 14 | 10
    777 | 1 | 17 | 10
    777 | 2 | 15 | 12
    888 | 3 | 16 | 20
    888 | 3 | 17 | 20
    888 | 4 | 19 | 30
    I need to get report:
    D1_ID | Indicator1 (SUM)
    777 | 22
    888 | 50
    and with filter by customer, for example (CUST_ID = 17):
    D1_ID | Indicator1 (SUM)
    777 | 10
    888 | 20
    i am trying to use "based on dimension" aggregation, for example (Indicator1):
    Dimension Formula
    CustomersDim MIN
    ProductsDim MIN
    Others SUM
    The generated physical SQL performs joining EVERY dimension to the fact table, even though they are not included in the final result set.
    Is there any way to tweak logical or physical model in order to eliminate excessive joins?
    Thanks in advance!
    Edited by: 859688 on 31.10.2011 4:04
    Edited by: 859688 on 31.10.2011 4:06
    Edited by: 859688 on 31.10.2011 4:08

    I found this text on the help, but I didn't understand, because when I check the "based on dimensions" check box, I can choose aggregation rules for each dimension, not only the time dimension.
    Also, I found in the help menu:
    "In the Aggregation tab, select the Based on dimensions check box.
    The Browse dialog box automatically opens.
    In the Browse dialog box, click New, select a dimension over which you want to aggregate, and then click OK.
    In the Aggregation tab, from the Formula drop-down list, select a rule."
    I did the same steps suggested by the text above, but it didn't work.

  • Security for value based hierarchy + OLAP

    Hi,
    I am using row-level security mechanism described here: http://www.rittmanmead.com/2012/03/obiee-11g-security-week-row-level-security/
    It works well for level based hierarchies... but is there a way to apply it to value based OLAP hierarchy in OBIEE 11.1.1.6?
    My case is:
    - I have parent-child value based hierarchy representing management structure with various depth.
    - of course facts are always linked to leaf members of hierarchy
    - I need to apply security at different levels. E.g. Office manager should have access to one/multiple offices information (basically all employees he manage currently + his previous office before he was moved)
    - In report I display presentation hierarchy that starts at country level and then manager drill to his offices
    - At country level, manager should see a measure aggregate only for his offices (not whole country)
    In relational database there is no problem:
    - I follow rittman blog
    - create session variable that store list of all leaf members of hierarchy (employees) managed by manager
    - with OBIEE "Manage"->"Identity" I apply filter on fact table and get right measure aggregates at all levels of hierarchy
    Issue for OLAP:
    - with OBIEE "Manage"->"Identity" I apply filter on OLAP value based hierarchy
    - in case of filter "MY_BMM"."Org Str"."Org Str Key" = VALUEOF(NQ_SESSION."LEAFS_LIST") -> when manager include hierarchy column to report there are no results because hierarchy starts at country level and he have no access to country data
    - to workaround it I tried: "MY_BMM"."Org Str"."Org Str Key" = VALUEOF(NQ_SESSION."LEAFS_LIST_AND_ALL_ANCESTORS") -> manager can see all aggregates at country level because he have access to country, and OLAP just use country level aggregate
    - IsDescendant("MY_BMM"."Org Str" , VALUEOF(NQ_SESSION."OFFICE_ID")) will work only for single office as we can not use row wise variables here
    One solution I can imagine is to create additional level based dimension that have only 2 levels: "All"->"Org Str Leaf". Then apply filter on this "artifitial" dimension. It is not perfect solution to duplicate dimensions only for security purposes... that's why I ask you for advice if you know better way?
    Regards,
    mudi

    Here is an example, how to set security in OBIEE 11.1.1.5 (or future versions)  against  Oracle OLAP dimensions.
    *(1). Create the Oracle OLAP Hierarchy Descendant View against Value-based hierarchy*
    These views return a row for each ancestor-descendent relationship in the hierarchy. As you can see how easy it is.
    CREATE OR REPLACE VIEW DEPT_DESCENDANTS
    AS
    SELECT 'DEPT' "DIMENSION", 'DEPTHIER' "HIER", ancestor, descendant
    FROM TABLE(OLAP_TABLE('BAWOLAP.BNSOLAP DURATION QUERY', null, 'LIMIT DEPT_HIERLIST TO 'DEPTHIER''',
    'DMNS DESCENDANT AS VARCHAR2(60) FROM DEPT
    DMNS GID_VAL AS NUMBER FROM ___AW_GID_DIMENSION
    MSR ANCESTOR AS VARCHAR2(60) FROM DEPT_FAMILYRELVAL'
    where ancestor is not null
    *(2). Create the User ACL Tables and Populate with Data*
    Create an Access Control list test table by user and Dept. Later this will be populated with production data.
    create table user_dept_acls
    username varchar2(30),
    dept varchar2(60)
    insert into user_dept_acls(username, dept) values ('user1', 'GWM');
    insert into user_dept_acls(username, dept) values ('user1', 'GT');
    insert into user_dept_acls(username, dept) values ('user1', 'SC');
    insert into user_dept_acls(username, dept) values ('user2', 'GWM');
    insert into user_dept_acls(username, dept) values ('user2', 'GT');
    insert into user_dept_acls(username, dept) values ('user3', 'SC');
    commit;
    *(3). Create an Init Block Connection Pool*
    Oracle BI EE requires a separate Connect Pool for Init blocks. It does not allow the default query connection pool to be reused for init blocks. So, we need to create a new init block.
    *(4). Create the ACL Session Variables*
    These session variables hold the list of all members that the user may access.
    Example Session Variable: DEPT_ACL
    Init Block: "Init DEPT_ACL"
    SQL:
    select 'DEPT_ACL', account from user_DEPT_acls where username = ':USER'
    union all
    select 'DEPT_ACL', descendant
    from DEPT_descendants
    where ancestor in (select account from user_DEPT_acls where username = ':USER')
    union all
    select 'DEPT_ACL', ancestor
    from DEPT_descendants
    where descendant in (select account from user_DEPT_acls where username = ':USER')
    The first query block of the init block SQL just selects the members explicitly entered into the ACL table. The second block selects all the descendants of those members from the descendants view. The third block selects all the ancestors to ensure that the user has access to all the members in the drill path starting from the root member.
    Make sure that row-wise initialization is checked in the Variable Target section of the init block.
    *(5). Add the Data Filters*
    In our test case we assigned the data filters to the BIAuthor role, but the filters should be added to whatever role makes the most sense.
    Data filter on "BNSGL"."Department":
    "BNSGL"."Department"."Dept" = VALUEOF(NQ_SESSION."DEPT_ACL")
    *(6). Log in as a Normal User and Query the Hierarchy*
    The user can only see to the members to which they are granted access in the ACL table plus all ancestors and descendants of those members.
    Drill down to the bottom of the hierarchy.
    *(7). Look at the Query Log*
    In the nqquery.log we see that the session variable is expanded into an IN list in the physical SQL query. The BI Server breaks the IN list into two IN lists to avoid the Oracle SQL limit of 1,000 items per IN list.
    Edited by: Nasar Ali-Khan on Jul 2, 2012 8:14 AM

  • Based on dimension aggregation

    I have a fact table with 2 sources. One of these sources has only one measure and I am having problems with it.
    This measure must use based on dimension aggregation, but it don't work. When I set this option, the measure shows a blank value in Answers, but when I switch to a default aggregation rule (not based on dimension), like sum or max, the value is shown correctly in Answers.
    My doubt is: is it necessary any other configuration on dimensions or fact tables in order to use based on dimensions aggregation? I just change the value in the aggregation tab of the measure, is there any other step necessary?
    Thanks

    I found this text on the help, but I didn't understand, because when I check the "based on dimensions" check box, I can choose aggregation rules for each dimension, not only the time dimension.
    Also, I found in the help menu:
    "In the Aggregation tab, select the Based on dimensions check box.
    The Browse dialog box automatically opens.
    In the Browse dialog box, click New, select a dimension over which you want to aggregate, and then click OK.
    In the Aggregation tab, from the Formula drop-down list, select a rule."
    I did the same steps suggested by the text above, but it didn't work.

  • Logical column - Aggregation - based on dimensions

    Hi,
    Can anyone explain the working of the aggregation based on dimension functionality. I understand it is different from level - based measures.
    Thanks in advance.
    - Priti

    Hi priti,
    Aggregation based on dimension .
    Hav a look at this you get an idea http://gerardnico.com/wiki/dat/obiee/measure_level_based
    UPDATED POST
    Sorry i gave you the wrong link.This is what your looking for
    http://gerardnico.com/wiki/dat/obiee/aggregation_based_on_dimension
    follow this etiquette as your new http://forums.oracle.com/forums/ann.jspa?annID=939
    Cheers,
    KK
    Edited by: Kranthi on Feb 24, 2011 12:20 AM

  • Fixed Values for Aggregates

    Hi, I'd like to know if anyone knows a way to have a range of fixed values for an aggregate?  I'd like to have the aggregate based on 0FISCYEAR 2003-2004.
    Any ideas, suggestions, workarounds?
    Thanks!

    Hi Kenneth,
    as it is not possible to have aggregates as you want, you can go with the following workaraound.
    Use Partinioning and use January 2003 to December 2004 as the partinioning parameters and use just 1 partition. With these settings you get 3 partitions for the cube. One for all data older than jan/03, one for all data younger than dec/04 and one for all data within your periods. For setting up the partitions the cube must be empty. Hope this helps
    regards
    Siggi

  • A good tutorial for Oracle BI Publisher

    Hi,
    I am new to BI Publisher. I'm using JDeveloper 10.1.3.2 and want to build reports in it. I found BI Publisher a good tool for building reports, based on its features on OTN and now I want a good working tutorial for using it. Is there anything?
    Thanks,
    S/\EE|)

    Hi Saeed, a good starting point would be the BI Publisher user guide. Please check the link for the documentation on the latest release: http://www.oracle.com/technology/documentation/bi_pub.html
    Also when you install the desktop installation, you will find some sample template and XML data at - "C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\samples" or the path where you installed it.
    In case you plan to use APIs, sample codes are available in the user guide. And if you are in EBS environment, I am sure you will like the blog link maintained by Tim on how to get started with APIs: http://blogs.oracle.com/xmlpublisher/newsItems/departments/xmlpForEBusinessSuite/2007/03/12

  • Is there a bug in the WebService tutorial for JDeveloper 9i?

    In reading through the JDeveloper 9i tutorial for building a web service, the final step generates the DateTimeServiceStub.java, but the testing that follows does not use this class, it uses the DateTimeService class.
    I built a Web Service based on the this tutorial and when I test with "MyClass.java" it works fine, but when I try to use "MyClassStub.java" it throws the ClassNotFound Exception below:
    java.lang.NoClassDefFoundError: HTTPClient/ModuleException
         at mypackage.RandomQuoteStub.<init>(RandomQuoteStub.java:21)
         at mypackage.RandomQuoteServlet.doGet(RandomQuoteServlet.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    If we are supposed to use the Stub methods, any thought as to why it fails?
    If we are NOT supposed to use the Stub methods, any thought as to why they are generated.
    (Yes, I am a bit new to Web Service development).
    Thanks in advance for any answers,
    RB

    Hi Richard,
    I ran into another problem when I tried to create a web service and call this web service following the tutorial from Oracle9i JDeveloper Release 2.
    The following error message occured after I ran DateTimeClient class:
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
              &lt;DIV class=Section1&gt;
              &lt;P class=MsoNormal
              style=&quot;mso-list: none; mso-list-ins: &apos;&apos; 19991102T2025&quot;&gt;&amp;nbsp;
              &lt;/P&gt;
                  &lt;TABLE border=1 cellPadding=0
              style=&quot;BORDER-BOTTOM: 4.5pt outset; BORDER-LEFT: 4.5pt outset; BORDER-RIGHT:
              4.5pt outset; BORDER-TOP: 4.5pt outset; WIDTH: 100%; mso-cellspacing: 1.5pt&quot;
              width=&quot;100%&quot;&gt;
              &lt;TBODY&gt;
                 &lt;TR&gt;
                 &lt;TD     
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Report&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The Web proxy was not able to authenticate you through
                    the authentication server because:&amp;#32&amp;#32&lt;b&gt;General authentication failure due to bad user ID or authentication token.&lt;/b&gt;
                    You will not be able to browse the Web through this proxy until your
                    credentials can be retrieved and verified.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;tr&gt;
                 &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;&lt;b&gt;Message ID&lt;/b&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;PROXY_AUTH_FAIL_OTHER
              &lt;p&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Description&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The user verification was not successful.&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;/TR&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              ADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Cause&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;This might be due to transient network problems or due to the
                    user&apos;s not being authorized to use this Web proxy.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;TR&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Possible Solution&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
                          &lt;P class=MsoNormal&gt;Contact your network support team
                                  if this problem persists, and provide the team your
                                  account information.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/T
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.
    By the way, I got the correct information when I tried to load:
    (1) http://159.249.94.139:8888
    (2) http://159.249.94.139:8888/soap/servlet/soaprouter
    which means that oc4j and SOAP server are running properly.
    Do you have any idea what went wrong?
    Thank you in advance.
    - Hao

  • Need a measure variable based on dimension

    Dear Experts,
    I  need a variable based on dimension.This should gives the values from 1 to n based on dimension.
    Suppose i have a column "Wage type".If it has 10 rows,Then for first one it should be 1 and second one it should be 2 and so on.I want to implement break for this dimension,even though the variable should give same values as i mentioned above.
    I try to use RowIndex and Count functions.But i couldnt get my requirement.
    I want to use this values in Xcelsius.
    I hope you can understand issue.
    Regards
    Venkat
    Edited by: Venkat8130 on Jun 23, 2011 7:24 AM

    Hi,
    I worked on the same issue, in my case result in following format
    year........count...month......revenue
    2001........ 1........ jan............100
    .................2.........feb............200
    .................3......... mar...........300
    .................4......... apr............400
    2002.........1...........jan..........500
    .................2..........feb...........600
    .................3..........mar..........700
    If you are expecting the same format, first break the report deportment wise. Create the variable count with bellow formula.
    =RunningCount([Month];Break)
    Regards,
    Shahin.
    Edited by: shahin13 on Jul 19, 2011 8:58 AM
    Edited by: shahin13 on Jul 19, 2011 9:04 AM

  • Problem when querying OLAP for Value based hierarchy

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

    Hi I have problem when querying OLAP for value based hierarchy , for level based dimension it work fine
    the strange part is if I only put one value, it will work perfectly
    for example if I put only 1 value for that value base hierarchy like CF_HIER::426362, then it will get the correct value for that id 426362
    but if I put multiple value to the list
    CF_HIER::426362
    CF_HIER::424470
    CF_HIER::429073
    CF_HIER::424230
    then only some value will come out correctly, some of them will be 0, I wonder why because if I query using each value, then it show correct value
    for multiple value usually only the top in hirarchy give correct value, but the leaf will give 0, but if I query only the leaf, the leaf will give correct value
    this problem only happen for my value based hierarchy, for the level based hierarchy it work fine both for each value or multiple value in the list
    this is the code how I guery
    ////the "elementIdList" is where the value is (CF_HIER::426362,CF_HIER::424470,CF_HIER::429073,CF_HIER::424230), if I only put single value in this list the query work fine, but if I put multiple value then some value give correct result, some will give 0
    String[] elementIdArr = new String[elementIdList.size()];
              int i = 0;
              for (Long elementId: elementIdList) {
                   String elementIdStr ="";
                   if (hierarchy instanceof MdmLevelHierarchy)
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            level.getName()+dimension.getValueSeparationString()+
                                            level.getName()+"_"+elementId;
                   else
                        elementIdStr = hierarchy.getName()+dimension.getValueSeparationString()+
                                            elementId;
                   elementIdArr[i++] = elementIdStr;
              Source myList = dp.createListSource(elementIdArr);
              result = hierarchy.getSource().selectValues(myList);
         Source joinedSource = measure.getSource();
              joinedSource = joinedSource.join(result );
    is there any suggestion where I'm doing wrong?or is it different between querying value based hier with level based hier?
    thanks

  • Aggreation Based on Dimensions - Aggregation rule: Evaluate_Aggr

    Hello Experts,
    Can any of you explain to me how do you use the Logical Column Aggregation based on dimensions?. If you can set up a simple example would be great. Also, what is the definition of the aggregation rule : Evaluate_Aggr?, please give a simple example
    Thanks for your time
    Pablo.

    And it's not the same than a level based measure :
    The definition of a level based measure :
    http://gerardnico.com/wiki/dat/obiee/bi_server/design/fact_table/level_based_measure_calculations
    An example with evaluate (lag analytic function)
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_period_to_period_lag_lead_function
    Check the two and you will see the difference in the definition.

  • Based on Dimension Aggregation method - OBIEE 11G

    Hi,
    I have a fact table with one measure value and 3 dimensions (Time, Issue, status). Fact table is loaded monthly data for different issues and with status and a corresponding value.
    I want my report to show always issues that is latest of that period and then status of the same.
    Lets say:
    Fact table has data like this:
    31/Jan/2011 - Issue1 - Open - 10
    28/Feb/2011 - Issue1 - WIP - 20
    31/Mar/2011 - Issue1 - WIP - 30
    30/Apr/2011 - Issue1 -WIP - 40
    31/May/2011 - Issue1 -Closed - 50
    31/May/2011 - Issue2 -Open - 60
    31/May/2011 - Issue3 - Open - 20
    Now I want to see the report by status and value and it should show me the latest of that time period.
    For Quarter1 :
    WIP - 30
    For Quarter2:
    Open - 80
    Closed - 50
    If I take Year then it should show me :
    2011 - Open - 80
    2011 - Closed - 50
    I tried using aggregation "Based on dimension" option in BMM layer and put Others - Sum() and LAST against time dimension.
    But in that case it is giving me the results by status what is latest for the time period. So it is ding sum by other dimension first and then applying LAST method.
    In that case result of Quarter -1 will be :
    Open - 10
    WIP - 30
    If I can change the order of aggregation method like first apply LAST method and then do sum then I think desired result will come. But I am not able to change the order.
    Is there any other of doing this solution?
    Any help is highly appreciated.
    Thanks

    Hi,
    There will be multiple records for an entire month as there are many issues. For a particular Issue it will be one with one particular status for a particular month.
    The join is based on the date colum of fact table and the dimension table.
    Regards,
    SS

  • Aggregation based on dimension

    Hi all,
    Can anyone help me in knowing the difference between normal aggregation set for a measure irrespective of dimensions and different aggregations set for the same measure based on dimension...

    hi User,
    Look at http://oraclebizint.wordpress.com/2007/12/03/oracle-bi-ee-101332-level-based-measures-lbms/
    thanks,
    Saichand.v

  • Need good tutorial for J2EE

    Hi All,
    Can anyone help in out in finding a good tutorial for J2EE.
    I wanted to have glimpses of this technology before delving deeply into it.
    Also please suggest some good reference books on the same
    Thanks
    Ankush

    I'm afraid there is no quick way of learning J2EE. Of all the people on this forum only a few have truly mastered the framework. I suggest you learn it step-by-step by following the tutorial. Read the introduction to give you a glimpse of the technology and then, dive in....
    The way I learned it was by building a three-tier website based on Servlets, JSP and EJB. After a few days/weeks in hell, I had an overview of the technology. I suggest you do the same.
    As for book suggestions : stick to the standards. You (almost) can't go wrong with Wrox or O'Reilly.
    Success,
    Mike

Maybe you are looking for

  • What would the CODE be, in Flash, for making buttons transparent on MOUSEOVER?

    I am building my site in Flash, and I have these thumbnails, that when moused over, a larger version pops up. Problem is, they are being obscured by the other thumbs. See for yourself: http://www.andreadams.com/Andre_Adams_products_games.htm (also at

  • Confused on what Airport Express does?

    Hello all! I'm getting ready to order some misc. items from the Apple Store and even after reading the web pages on what the Airport Express is suppose to do I'm confused if I need one for my MBP or not. I have an Airport Extreme at home and it works

  • Https transport support for JAX-WS WebServices

    Hi All , I am trying to implement JAX-WS WebServices that support https transport .To do so I added the following annotation *@Policy(uri = "policy:Wssp1.2-2007-Https-BasicAuth.xml)* in my Jws Implementation file for the JAX-WS WebServices but I got

  • Upgrading to a Superdrive

    Okay, this is probably going to sound stupid, but here goes - is there any way to upgrade from a combo drive in my iBook G4 to a Superdrive? (I can burn CDs, but can only watch DVD's). Is this possible, or do I need a whole new Mac/iBook? Thanks!

  • Keynote and HDTV?

    Will Keynote & PowerPoint 2008 or future versions provide both 4:3 NTSC and 16:9 HDTV slide format options? I seldom use either application, but our faculty use both. Future construction projects are already calling for HDTV format media options.