SUm Measures based on Same dimension Value

Hello all,
I have looked for an answer to this, but not getting what I am looking for.
this is an example of data
  Dimens1    Dimens2       Measure1     Measure2     Measure3
   a             b               1            2            3
   a             b               2            3            3
   a             b               1            4            1
   c             d               2            4            5
   c             d               3            2            1
   c             d               2            2            4
What I want is:
  Dimens1    Dimens2       Measure1     Measure2     Measure3
   a             b               4            9          7
   c             d               7            8          10
I have tried using
=Sum(Measure1) forEach(Dimens1)
Do I have to do something like this for each Measure?
It didnt make any changes.  Could anybody help me achieve this?
Thanks in advance,
Niraj
Edited by: NirajK on Mar 15, 2011 10:04 PM

Hi,
In Web Intelligence:
First Create three variables like
variable 1. Give name as Measure1 and enter =Sum([Mea 1]) ForEach([Dim 1]) in formula field
     variable 2. Give name as Measure2 and enter =Sum([Mea 2]) ForEach([Dim 1]) in formula field
     variable 3. Give name as Measure3 and enter =Sum([Mea 3]) ForEach([Dim 1]) in formula field
Now drop dimentions and variables - (Dimension1, Dimension2 ) and (Measure1, Measure2, Measure3) in WebI report
or
In Universe Designer:
Create Derived table with this sql code
select sum(Try."Mea-1") as Measure1, sum(Try."Mea-2") as Measure2, sum(Try."Mea-3") as Measur3, Try."Dim-1" as Dimension1, Try."Dim-2" as Dimension2 from Try group by Try."Dim-2",Try."Dim-1"

Similar Messages

  • Filtering measure based on a column value in rpd

    Hi,
    I created 2 measure in RPD for a fact : Channel Change SLA FACT
    1.Success Count which is count(Response_Event_DateTime) and
    2.Failure Count which is count(Failure_Reason_Key)
    and in the report I put filters for these measures in Edit formula as
    Successes : FILTER("Channel Change SLA FACT"."Success Count" USING ("Channel Change SLA FACT"."Failure Reason Key" < 1))
    Failures : FILTER("Channel Change SLA FACT"."Failure Count" USING ("Channel Change SLA FACT"."FAILURE_REASON_KEY" NOT IN (-1, 1)))
    then I calculated Success percentage as Successes/(Successes+Failures)*100
    Everything is working fine but is there a way to put those filters for Successes and Failures in RPD ? So that users can just drag and drop those measures and calculate success percentage ???
    Thanks in advance
    Siri

    Yes , you can put it in Rpd... just create 2 new more Logical Columns under "Channel Change SLA FACT" table
    1) Successes Logical Column
    2) Failures Logical Column
    For Successes , check the checkbox "Use existing logical columns as the source" then click the 3 dots ...
    Then in the expression builder.. build the above formula... ie
    FILTER("Channel Change SLA FACT"."Success Count" USING ("Channel Change SLA FACT"."Failure Reason Key" < 1))
    Same for Failures Logical Column
    Bring both the columns in the Presentation Layer and then you are done...
    Thanks
    Ashish

  • In SSRS, aggregate measure based on dimension value

    I am writing an SSRS 2012 report whose data source is an SSAS cube. In one table of this report, I am using a very simple data set with one dimension (Category) and one measure (Sales). The dimension has 4 members, A B C D. For the purposes of this
    report table, I want to show the sum of sales for A, the sum of sales for C, and the sum of sales for B and D combined. I then want to show each of these 3 values as a percent of the total (sum of A B C D).
    The data set looks like this:
    CATEGORY   SALES
    A                10000
    B                14000
    C                 8000
    D                 8000
    The resulting report table should look like this:
    CATEGORY SALES % OF TOTAL
    A                10,000      25.0
    B+D            22,000      55.0
    C                 8,000       20.0
    TOTAL         40,000

    Hi ,
    As you mentioned you need such aggregation in SSRS and you are using SSAS datasource.
    so you can achieve this using MDX Query.
    I have done this in my environment . I took below for achieving this
    Dimension : Category
    Relationship : There should be Facttable relationship with Dimension table Category.
    Measure : Unit Price (in your case sale)
    Please find below solution using MDX Query.
    Please share if you have any doubt.
    Thanks

  • New calculated member based on existing measure and a dimension value

    Hi
    I’m trying to create a new calculated member in my cube based on an existing measure and a dimension value.
    I can do it easily in DSW but I want to do it as a Calculated Member in Calculations tab from my cube.
    I have a dimension called Product in which one attribute is UOM (unit of measure) and a measure called Quantity. The relationship with the fact table is “Regular”.
    For each product we have a unit of measure and an associated quantity measure:
    Product Name   
    UOM     Quantity
    Product 1   
              Km  
             50
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25
    Product 4              L               
    15
    Product 5              T     
             1.5
    Total                                     151.5
    The calculated member I want to create is “Kw” and has to contain the value from Quantity measure when Product.UOM is “kW” and should look like this:
    Product Name   
    UOM     Quantity   
    Kw
    Product 1   
              Km  
             50           
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25           
     25
    Product 4              L  
                 15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    So far I tried using the MDX with “IIF” or “Case” but with no results.
    What statement I should use in this case?
    Thank you.

    Hi Cees,
    Thank you for your answer.
    I never used yet the “Scope” statement and yet it’s an elegant solution.
    I use it as in your example:
    CREATE
    MEMBER CURRENTCUBE.[Measures].[Kw]
    AS NULL,
    FORMAT_STRING =
    VISIBLE = 1 , 
    ASSOCIATED_MEASURE_GROUP =
    'TR Other';
    Scope [Measures].[Kw];
     Scope [Product].[UOM].[kW];
     This = [Measures].[Quantity];
     End
    Scope;
    End
    Scope;
    …and the calculations are solid…with one exception: when I took out UOM from the query there are no more any resuts:
    Product Name    Quantity    Kw
    Total      
    It’s only working
    if using UOM in the query.                         
    I also thought that a
    tulpe might be another solution as:
    ([Measures].[Quantity],[Product].[UOM].&[kW])
    On this last one I’ve got the expected results with one exception: when I use UOM in the query all the other UOM values are listed each one of them
    having the [Kw] measure calculation value.
    Product Name    UOM     Quantity    Kw
    Product 1              Km  
             50           
    Product 2              Kg   
             60
    Product 3              Km 
              25             25
    Product 3              Kg 
               25             25
    Product 3              Kw 
              25             25
    Product 3              L 
    25              25
    Product 3              T 
    25           
      25
    Product 4              L  
                15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    …and without UOM in the query I have what I’m expected:
    Product Name    Quantity   
    Kw
    Product 1              50           
    Product 2              60
    Product 3               25           
     25
    Product 4              
    15
    Product 5             
     1.5
    Total                       151.5        
    25
     Maybe we can work together to find a solution.
    Thank you,
    Oks

  • Filter EPM Property values based on another property in same dimension

    Hi,
    I need to restrict property values of a Dimension based on selected value of another property of the same dimension.
    For example, in Material Dimension, I have properties Planner and LOB
    Material
    Planner
    LOB
    100
    ABC
    LOB1
    200
    ABC
    LOB1
    300
    XYZ
    LOB2
    The Planner will select a Planner Name, based on which the corresponding list of materials should be shown along with LOB.
    I have tried EPMDimensionPropertyValues but it doesnt allow to restrict the IDs based on another filter condition.
    Please help.

    Thanks everyone for the response.
    As mentioned in the post, the requirement is a bit twisted.
    Let me rephrase the requirement:
    I need to have two dropdowns ( which should act as filters to the template).
    MATERIAL diemnsion has a property PLANNER.
    I need to have the first drop down as list of all PLANNERS ( I could do this easily by EPMDimensionPropertyValues).
    For the next dropdown, I need to show only those MATERIALS which has PLANNER1 ( lets say, PLANNER1 was selected in the first dropdown).
    I am facing issues for the second dropdown, as I cannot have a condition to show the Property (ID) values in EPMDimensionPropertyValues
    Also note that MATERIAL is not present in the report ( this is because we need a different aggreagation for material in the report) so we cannot use EPMDiemnsionOverride.
    Please help.

  • Logical column - Fact measure using Dimension value

    Hello all, I have a Fact table that has a metric (Value) where I have set the Aggregation rule to Sum. Now I'd like to create a metric based on the value of a Product Dimension that joins to this Fact table. So I create logical column that has the syntax - Case When Product_Desc = 'A' then Value else 0 End.
    The issue is in Answers when I bring this new metric in it doesn't bring in the correct value, are there steps I am missing with creating this metric?
    My assumption is if I just bring that new metric in by itself it would return one record - A sum of the Value where the Product = 'A'.
    Thank you

    Hi BRizzle,
    In your scenario, you creatre a calculated measure using the employee dimension, and then this measure show "#VALUE" on the pivot table, right? It seems that it's a limitation of using calculated measures in SQL Server Analysis. Calculated measures cannot
    be secured using Dimension Security in a straight forward manner, in fact they won't be listed at all in the Dimension tab of the role where we define the Dimension security. When such measures are browsed in client tools like Excel, the value that would be
    displayed is an error value like #VALUE. For the detail information about it, please see:
    Limitations / Disadvantages of using Calculated Measures / Calculated Members in SSAS
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to control the measure based on the related dimension.

    Hi Experts,
    In order to improve performance, I have created three kinds of time tables in DB,such as Year .Month, Day.
    Then import them into the physical layer in RPD, and combine them into one dimension in BMM.
    Actually, it has three level fact related with three time tables,so they are also dragged into one fact in BMM,and one column will be corresponding with three column derived from different Fact table in physical layer.
    So I want to know how to control the measure based on the related dimension.
    For example:
    when users drag the Year,Sales column, it will come from Year Dimension and Year Fact Table.
    when users drag the Month,Sales column, it will come from Month Dimension and Month Fact Table.
    when users drag the Day,Sales column, it will come from Day Dimension and Day Fact Table.

    Hi,
    Create a dimension Hierarchy, with Year >> Month >> Day Levels and
    Next Double click on Year Table LTS >> click on Ocntetnt Tab >> set as Year
    same way for Month LTS and Day LTS.
    So now when you select year column then server canknow which LTS to hit and Hits Year LTS.
    Mark If Helpfu/correct
    Thanks.

  • Querying last element in a dimension based on another level in the same dimension using MDX

    Summary: I need to write an MDX that returns the last date available in the level in the date dimension based for each month in the same dimension.
    Details: i have the a dimension which has the following levels. 
    Dim_Date :  Date (key) , Month (name of month), Quarter, Year.
    The query i m trying to come up with would return the result something like
    Month  || Max_date || measure1
    Jan         2014-01-25    100
    Feb        2014-02-28     200
    Please let me know if the above makes sense. Basically i m trying to get the max date for each month. 
    Thanks
    Sri

    Hi SrikanthGS,
    Assuming that with the last date available for the measure you mean the last date with non-empty figures, consider the following against the AW:
    SELECT [Measures].[Internet Sales Amount] ON 0,
    Generate (
    [Date].[Calendar].[Month].Members,
    ( Exists ( [Date].[Month of Year].[Month of Year], [Date].[Calendar].CurrentMember ),
    Tail (
    NonEmpty (
    Descendants ( [Date].[Calendar].CurrentMember, [Date].[Calendar].[Date] ),
    [Measures].[Internet Sales Amount]
    1
    ) ON 1
    FROM [Adventure Works]
    WHERE [Product].[Product Categories].[Subcategory].&[1]
    Philip,

  • Using Dimension Formulas to sum data based on different criteria

    Hi all,
    I am trying to use a u201CDimension Formulau201D to perform the following calculation:
    We have an account dimension which has 2 important properties:
    1.     CRITERIUMTYPE: This property can have 3 different values: u201CWERKu201D, u201CINVu201D OR u201CLIQu201D
    2.     ACCTYPE: This property can have 2 different values: u201CEXPu201D or u201CINCu201D
    The client wants to have a report that sums data based on these 2 properties. An example will help to clarify this:
    ACCOUNTS     CRITERIUMTYPE     ACCTYPE     VALUE
    ACCOUNT A         WERK                          EXP               100 u20AC
    ACCOUNT B         WERK                          INC               150 u20AC
    ACCOUNT C         WERK                          EXP               200 u20AC
    ACCOUNT D         WERK                          INC               300 u20AC
    ACCOUNT E         INV                          EXP               50 u20AC
    ACCOUNT F         INV                          INC               100 u20AC
    ACCOUNT G         INV                          EXP               200 u20AC
    ACCOUNT H         INV                          INC               500 u20AC
    The clients wishes to see this data in the following way:
    CRITERIUMTYPE     ACCTYPE     VALUE
       WERK                         EXP              300 u20AC
                                        INC              450 u20AC
       INV                         EXP              250 u20AC
                                     INC              600 u20AC
    In order to achieve this I have created several new accounts, one for each combination e.g.: Account WERKEXP is used to sum the data on the combination CRITERIUMTYPE=WERK and ACCTYPE=EXP. I have created a dimension formula in my account dimension but this is where I am stuck. I have created the following formula to calculate the account WERKEXP:
    IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("ACCTYPE")="EXP",IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("CRITERIUMTYPE")="WERK",[BUDGETPOSITIE].CURRENTMEMBER,0),0)
    The problem with this formula is the following:
    The formula will add all amounts that meet the 2 criteria mentioned in the formula, EXP and WERK, but as soon as it finds an accounts that does not match the 2 criteria it will set the account WERKEXP back to 0. I need to know if there is a way, using dimension formulas, of adding these values together without the new account being set to 0 as soon as one of the accounts it needs to check does not meet 1 of the 2 criteria.
    We are working on SAP BPC 7.5 for NW with SP04
    All help is very much appreciated!
    Kind regards,
    Stefano

    Hi,
    You can also use ParentHn property to have different grouping of accounts within the dimension.
    So in your case rather using the member formula you can have four accounts and add them in the Parenthn property for grouping it.
    1. The Solution proposed by Nilanjan is specific for a Report/IS and Performance will be good
    2. My solution will be global something similar to MDX formula, but performance may be slightly lesser than using excel function.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Oracle OLAP:Same member values across dimensions

    We had an enquiry from a client which mentions:
    Per Essbase the same dimension member value cannot exist across multiple dimensions. e.g. if we have a account dimension with member 1001 , it is not possible to have product dimension with same member value 1001. This is essentially because Essbase implements it like a shared member. Apparently Essbase Excel-addin will not know what dimension to search for if both have same values.
    As per our understanding there is no such limitation in Oracle OLAP both during cube build or querying via Excel Add-in. i.e we can have account dimension with member 1001 and same member value can exist in a product dimension. Please advise and if anybody has any reference to any documentation in this regard please let us know.

    Hi there,
    You are correct - there is no such limitation in Oracle OLAP.
    A dimension value must be unique in any given dimension but can be repeated in other dimensions.
    I do not have any documentation but this is really easy to prove using the OLAP worksheet in AWM, eg:
    aw create test
    define dim1 dimension text
    maintain dim1 add 'MEMBER1'
    report dim1
    define dim2 dimension text
    maintain dim2 add 'MEMBER1'
    report dim2
    aw detach test
    aw delete testI hope this helps
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • ConditionSortStep with measure based sorting

    Hi,
    i have problem with ConditionSortStep with measure based sorting.
    I use this code :
    Selection sel = query.findSelection(dimensionID);
    OlapQDR qdr = new OlapQDR(measureDim.getUniqueID());
    qdr.addDimMemberPair(dimTime.getUniqueID(),"YR2004");
    qdr.addDimMemberPair(dimPartner.getUniqueID(),"PLUS");
    ConditionSortStep stepM = new ConditionSortStep(dimensionID, sel.getHierarchy(), ConditionSortStep.MEASURE,ConditionSortStep.DESCENDING, measure.getUniqueID(), qdr);
    SortSpec sortSpec = new SortSpec();
    stepM.setAction(Step.ADD);
    sortSpec.addConditionSortStep(stepM);
    sel.setSortSpec(sortSpec);
    query.applySelection(sel);
    Members are sorted by measure, but only descending not in hierarchical ordering. When i change hierarchy in ConditionSortStep to (String)null, I get same result.
    I mean, the specified hierarchy in ConditionSortStep is not used, but I dont know why. Any ideas?
    BIBeans 9.0.4 - JSP
    DB 9.2.0.5 + OlapB patch
    Thanks...
    maddox

    Hi David,
    Sorry for not providing proper information.
    This is my Star Schema. Dim_cutomer, Dim_problem, Dim_geo, Fact_ticket.
    Dim_cutomer: Contians information about the Cutomer, account, Install Date, Install flag
    Dim_problem: Problem type, Problem group
    Dim_Geo: is Geographical dimension. like Division, Region ...
    Fact_ticket: Has the information about the each ticket.
    The requirement is to create a report based on division, region : 1. count # of Open ticket 2. Count # of closed ticket 3. % of Failure
    I am able to do count of Open and Close. but for % failure which is tricky and complecated. To calculate the % of failure
    Failure = Count of (FAI tickets) / Count of Installs.
    to count fai: there is flag in fact i can count the FAI, Installs : count of install falg which is in Dim_customer, i can count it in report. The problem is this report have prompts like Type of account, type of problem.
    As per the client, when i change the value of problem type the count of Installs should not changed & when i change the value of Type of Account value of Installs should change based on type of account. I dont no how to control this.
    As all the dim are joined with fact.
    It will be great help if some one give some hit or help...
    thanks in adavance
    Regards
    @li

  • Using dimension values in calculations of cubes

    hi ,
    I am trying to build a calculated measure using a dimension values like for example
    if a dimension is portfolio
    having values L,X and C values
    and the calculated metrics is like to be calculated only for L and for others it should show 0.
    I created something like this
    sum({[Portfolio Cd].[Portfolio Cd].&[L]},[Measures].[Annual Intr Amt Pl L])
    the problem is that when this metric is drawn to check the values against this dimension it show same values for all the portfolios
    where as it should show 0 for  X and C .
    Can anybody suggest a solution to this .?
    thanks in advance

    Hi,
      Try using a CASE statement in your Calculated measure as shown in below sample
    WITH MEMBER MEasures.SalesAmount
    as
    CASE
    WHEN [Product].[Category].CURRENTMEMBER.MEMBER_CAPTION = "Accessories" THEN SUM([Measures].[Internet Sales Amount])
    ELSE 0
    END
    SELECT [Product].[Category].[Category] ON 1
    ,MEasures.SalesAmount ON 0
    FROM [Adventure Works]
    Best Regards Sorna

  • Reference same dimension multiple times in a cube

    Hi,
    I'm creating a cube with Analytic Workspace Manager. The cube needs to reference same dimension more than once. For example, in a movie ticket booking cube, there's a booking date and a show date , both should reference same pre-created TIME dimension. Because one dimension can be added to a cube only once, now my solution is to define 2 dimensions, i.e. BOOKING_TIME and SHOW_TIME, both are based on same underlying table and have exactly same levels/hierarchies/mapping, and then add them to the cube. I believe there must be smarter approaches out there, please advise.
    Thanks!
    Jim
    Edited by: user11955172 on 2012-12-10 上午2:36

    For hand written/custom sql going against the Cube:
    You're right that you can use one of the 3 time dimension based views (duplicated 4 times for time1/2/3/4 dimensions).
    If you need to use 2 out of 4 time dimensions in your query (by applying an application based filter/restriction) then you would need to alias the relevant view(s) 2 times and get your result.
    If you needed to use all 4 time attribute dimensions, then you need to alias the time dimension view 4 times.
    12 views represent the full spectrum of possible report/query usage scenarios available to users via these 4 time dimension views. A typical session with various reports/queries is unlikely to refer to all of them (possible but not likely).
    In different scenarios, any one of the 3 views - dimension view, h1, h2 view - comes into play for each dimension.
    In every query/report scenario, only 1 out of the 3 applicable views would be needed or suitable based on the query/report specifics.
    E.g:
    * If your query is at lowest level and is also referencing attributes/descriptions which pertain to >1 hierarchies, then the view v_time<N>d is the appropriate view to use. Neither vtime<N>h1 or vtime<N>_h2 will be able to give you the results you require if you have attributes defined exclusively in either hierarchy h1 or h2.
    * Setting the default hierarchy to either h1 or h2 determines which hierarchy view is expected to be used/preferred in cases where dimension is not referenced or where Top level of dimension is desired in query/report. E.g: Top level is same for both hierarchies h1 and h2 but read the Top Level values from h1 view as h1 is marked as the default hierarchy for dimension.
    * The level of the query is generally determined by the lowest level of the attributes/fields in your query. If you have attributes like Long_Desc, Short_Desc (available at all levels/all hiers) and you have 2 attributes from Hierarchy H1 and from levels L1 (one level above leaf) and L3 (higher than L1 by 2 levels)... then the query uses v_time<N>h1 and will apply a filter to choose/constraint levelname field = 'L1'.
    * Reporting tools like OBIEE etc. have security filters defined to ensure that the joins to missing dimensions and the appropriate dimension level filters appended to the query in a transparent "behind the scenes" manner.
    NOTE: By modeling the time based fields as different dimensions, you get the benefit of time series analysis along any of the 4 dimensions. You can create a Month-to-Date Revenue measure along "Show Biz Time" dimension and also create a Year-to-Date Revenue Measure based on "Booking Time" dimension. Also compare % variance of "MTD - Revenue - Show Biz Time" with corresponding value for Last year "MTD LY - Revenue - Show Biz Time". This is the benefit you get by breaking out the 4 columns in relational fact and modeling them as explicit time dimensions. You pay a small price in terms of cube space expansion, time dimension load increase but as acknowledged earlier, this dimension can be loaded incrementally, the full load process is done only initially. It is an offline process (batch) and does not hamper query performance.
    Regd
    3) In the underlying star schema, we have only one time dimension table, in the ticket booking fact table, we have 4 dimension columns referencing the same time dimension table. So it's intuitive to expect similar design in the cube. Current approach seems like replicating the dimension table for each dimension column.Do you have parentage along h1/h2 laid out in terms of different parent columns ... 06:30am should have parent D1 in h1 hierarchy (regular day) and parent=D1-1 in h2 hierarchy (business day)?
    h1=regular day hierarchy
    h2=biz day hierarchy
    In that case, perhaps you want "Booking Time" (Time1) to use view: v_time1_h1 by default and "Booking Biz Time" (Time3) to use v_time3_h2 by default.
    Using h2 hierarchy for Time1 or h1 hierarchy for Time3 would be illogical/invalid. Maybe you can simplify things by removing the hierarchies from olap model which dont apply to the dimension.
    HTH
    Shankar

  • Runtime prompts with the same dimension

    Hello,
    I'm setting up a business rule to contain two variables referring to members in the same dimension (for example, Account_VAR and Account_Basis_VAR both using Member of the Account dimension). I would like to have Account_VAR default as filled based on the selected member on the form (and hidden) and then have Account_Basis_VAR default to the same account as Account_VAR, but selectable based on which accounts the user has Read access to.
    The calculation is working properly and the values are being distributed to the Account selected (Account_VAR) based on the current allocation to level 0 in the base account(Account_Basis_VAR), but I would like to hide Account_VAR while still prompting for Account_Basis_VAR. I've tried a few iterations of settings but both account prompts always appear in the runtime prompt window.
    Is there a workaround for this?
    Nik

    The strange thing is that the results from the queries are correct running them in SQL Developer. This is one that works:
    SELECT Project.Project saw_0, "- SalesOrderFact"."Sales Amount" saw_1, "- PurchaseOrderFact"."Purchase Amount" saw_2, REPORT_SUM(saw_1 BY ), REPORT_SUM(saw_2 BY ) FROM SalesOrder ORDER BY saw_0
    SALES ORDER:
    select T3032.PROJECT_DESCRIPTION as c1,
    sum(T161.SALES_AMOUNT_LOCAL) as c2
    from
    DIM_PROJECT_V T3032,
    CUBE_SALES_ORDER T161
    where ( T161.DIM_PROJECT = T3032.DIMENSION_KEY )
    group by T3032.PROJECT_DESCRIPTION
    order by c1
    PURCHASE_ORDER:
    select T3032.PROJECT_DESCRIPTION as c1,
    sum(T3020.TOTAL_BUY_AMOUNT) as c2
    from
    DIM_PROJECT_V T3032,
    CUBE_PURCH_ORDER T3020
    where ( T3020.DIM_PROJECT = T3032.DIMENSION_KEY )
    group by T3032.PROJECT_DESCRIPTION
    order by c1
    And this will give the wrong result in Answers (correct in SQL..):
    SELECT Project."Project Id" saw_0, "- SalesOrderFact"."Sales Amount" saw_1, "- PurchaseOrderFact"."Purchase Amount" saw_2, REPORT_SUM(saw_1 BY ), REPORT_SUM(saw_2 BY ) FROM SalesOrder ORDER BY saw_0
    SALES_ORDER:
    select T3032.PROJECT_KEY_NAME_ID as c1,
    sum(T161.SALES_AMOUNT_LOCAL) as c2
    from
    DIM_PROJECT_V T3032,
    CUBE_SALES_ORDER T161
    where ( T161.DIM_PROJECT = T3032.DIMENSION_KEY )
    group by T3032.PROJECT_KEY_NAME_ID
    order by c1
    PURCHASE_ORDER:
    select T3032.PROJECT_KEY_NAME_ID as c1,
    sum(T3020.TOTAL_BUY_AMOUNT) as c2
    from
    DIM_PROJECT_V T3032,
    CUBE_PURCH_ORDER T3020
    where ( T3020.DIM_PROJECT = T3032.DIMENSION_KEY )
    group by T3032.PROJECT_KEY_NAME_ID
    order by c1
    As you can see the SQL look very familiar, and I cannot see anything in SQL that should be the cause of this error. I think the error must be in the BI Memory or something.
    Any ideas?

Maybe you are looking for

  • Post Dated Cheque for Outgoing Payment

    Dear All Experts,             When i Create outgoing payment for post dated cheque then it will be effected in our current Bank Account Balance.         So, How to create outgoing Payment for Post dated Cheque? Plz. Give me the Solution . Thanks, Ara

  • URGENT HELP: ASM instance not able to start....

    ASM version: 11.1.0.6 RAC: 2 node cluster. Scenario: CRS comes up fine with no issues but it does NOT start ASM auto. So thats fine. So I go to ASM sqlplus and issue: SQL> startup mount; ORA-29702: error occurred in Cluster Group Service operation SQ

  • Anyone else having trouble with Elements after upgrading to Yosemite???

    I recently upgraded my Mac to Yosemite and now my Elements 12 is not working correctly!!!!  Anyone else having this issue or have any answers?

  • SNMP IN Admin and User Context

    Hi Guys, I have a issue in ACE context , while discovering the each context separately . I have 4 user context and one admin context in HA  mode , when i tried to discover the contexts independently , with the interface vlan ip configured  in my NMS

  • IOS 7 Unable to sync reminders

    My wife and I both have Iphone 5's and 2 ipads.  After updating to ios7 were unable to sync the reminders.  We have a grocery list that we share between us and this is important.   Anyone else having this problem.  Ive checked all the settings and ev