Grand Total in Dimension Hierarchy

Hello,
I still have problem to get the correct Grand total. The Dimension "Project" goes down to Level 4  (some projects only to Level 3). First I solved summing up a calculated measure  with Isleaf() or SUM (currentmember.children).
Then the grand total always summed up all members and not those which where filtered in Excel. Here i found the current solution with VisualTotals().  But now i still the problem that when expanding sublevels in excel the Grand total is wrong
again:
CREATE MEMBER CURRENTCUBE.[Measures].[Prognosekosten] AS
CASE
WHEN IsLeaf([Projekt].[Projekt Hierarchie].currentmember)
THEN ...calculation....
WHEN [Projekt].[Projekt Hierarchie].currentmember is [Projekt].[Projekt Hierarchie].[ALL]
THEN sum(except(  VisualTotals(axis(0)), [Projekt].[Projekt Hierarchie].[All]), [Measures].[Prognosekosten])
ELSE Sum([Projekt].[Projekt Hierarchie].currentmember.children, [Measures].[Prognosekosten])
END

Hi Wolfgang,
According to your description, you create calculated member to calculate the grand total, now the problem is that the grand total is incorrect when you filter the data in Microsoft Excel, right? In this case, please refer to the links below which might helpful
for you.
http://wildwordz.wordpress.com/2008/11/21/not-so-grand-totals-in-ssas-cubes/
http://vnu10.blogspot.com/2011/01/mdx-grand-total-sub-total.html
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Report totals with dimension hierarchy column on pivot table incorrect

    Hi,
    I have a pivot table based report that has one dimension column, a dimension hierarchy column and various measures.
    The row totals do not match, detail to total, and I have tried both complex server based aggregate and report based aggregation, but neither are giving me the correct answer.
    I have also tried adding the column that is the same as the top level as the hierarchy, but hidden, but this does not help.
    I have also tried adding the lowest level of detail column, but hidden, but this does not give me the solution I need as all of the figures then appear at detail not aggregated level.
    Any ideas please?
    thanks,
    Robert.

    Can you validate the query hitting to the database and compare the results?
    Mark if helps.
    Thanks,

  • Grand totals across hierarchy

    What's the best way to calculate a grand total across a hierarchy (using hierarchical grouping)?

    Hi Mike,
    just a thought: Your aim is to have something like Total Sales (actual year) / Total Sales(previous year) displayed in your report. This is a total summary calculated upon a certain key figure which is included in the query.
    The partial summaries of your key figure are delivered correctly from your SAP system in CR for each hierarchy level. Since a total summary is not delivered the problem is now that you do not have access to the sums for the sales of the previous year in your query. This way you could sum up in CR the sales for the actual and the previous year and calculate the total percentage manually at the end.
    Assuming now that you do have the partial sums of the sales for the actual year in your query though, you can indirectly calculate the partial sums for the previous year :
    Sales(previous year)@HieracrhyLevel X = Sales(actual year)@HierarchyLevel X / Percentage Key Figure@Hierarchy Level X.
    All you have to do now is to pick up a specific hierarchy level (you know how to do this) and sum up the calculated sales from previous year and do your percentage calculation based on the total sums  at the end.
    Hopefully you do have the sales of the actual year in your query as a separate key figure.
    Regards,
    Stratos

  • Presentation Hierarchy Grand Total Values

    Hi,
    We have the following scenario,
    Hierarchy Product A is created for Dimension Product A
    Hierarchy Product B is created for Dimention Product B
    Fact Product Measures is joined to Store Dimension , Dimension Product A, Dimention Product B and Fiscal Calendar
    Dimension Product A contains subset of Products that are existing at Fact
    Dimention Product B contains subset of Products that are existing at Fact
    and some products can exists both at Dimension Product A and Dimension Product B
    The issue we are facing is, when ever report is created using One of the Product Hierarchy and Fact. Product Sales (default aggregation is sum),
    the grand total level is showing sum of all Product Sales. It is not limiting to Products that are in Product Hierarchy selected in the report.
    But the sub levels are limiting based on selected Product Hierarchy which is causing not matching the roll up amount to grand total.
    Is it possible to limit the grand total level value of Presentation Hierarchy based on selected Product Hierarchy.
    Does anyone face similar issue.
    Thanks in Advance

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Total levels on pivot with dimension hierarchy column incorrect

    Hi,
    I have a pivot table based on a single subject area, based on an Essbase cube.
    The problem I have is that some of the totals against the collapsed dimension hierarchy column are incorrect, it is as if they remember the pre-updated state, even though I have bounced the services and turned all caching off.
    When I expand the node then the totals appear correctly, but when reverted to the collapsed state it shows nothing again.
    I have turned off caching via EM.
    I have tried all flavours of totals, default, server complex aggregate et al with the same result for all.
    I have double checked the results at source with an identical query in SmartView and the upper level dimension total is populated in its own right, as well as its children carrying totals which do not sum back to zero.
    Any suggestions please??
    thanks,
    Robert.

    Can you validate the query hitting to the database and compare the results?
    Mark if helps.
    Thanks,

  • Can we get subtotal and grand total by own calculation in a hierarchy ALV?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

    Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?

  • 10g Dimension Hierarchy with strange behaviour

    I have a Dimension Table (Calendar) with the following columns:
    Date------Year------Semester-----Desc_Sem-------Trimester-------Desc_Trimester--------Month------Desc_Month-------Day
    20110101---2011--------1-----------1st Semester----------1----------------1st Trimester---------1-------------January---------1
    20111231---2011--------2-----------2nd Semester----------4---------------4th Trimester--------12-------------December--------31
    My hierachy looks like this: !http://imageshack.us/photo/my-images/851/bmm.jpg/!
    What happens is that when i drill down everything is ok until the Month level but when i try to drill down from the Month level to the Day level it only shows results if i drill down on February!!!
    !http://imageshack.us/photo/my-images/830/drilln.jpg/!
    A bit more information to add here:
    - If on the hierarchy level "Month" instead of "Desc_Month" as the logical level key i choose "Month" (1,2...12) than i have no problems with the drill and it works perfectly...
    - I tried the same thing on the samplesales.rpd and the exactly same thing happens. The hierachy there is Year->Half->Quarter->Month->Week->Day and when we drill from Month to Week we also get no results.
    Any ideas here? I've searched for some time now and haven't seen anything that can help me here, to be honest i didn't even find a problem similar to this one.
    Thanks

    Not sure if this is the cause, but your hierarchy isn't strictly correct.
    In a hierarchy, the key of each node needs to relate to only one parent. You have Day 1 which could belong to January, February etc. This isn't a key, it's an attribute of the detail level. Likewise, your semester doesn't belong to one year, your quarter doesn't belong to one semester etc.
    With the data you have, the 'hierarchy' should be very flat:
    [Grand Total]
    --[Year]
    ----[Detail] (key is date, and day is an attribute)
    --[Semester]
    ----[Detail]
    --[Trimester]
    ----[Detail]
    --[Month]
    ----[Detail]
    You could define drills paths between levels to sort out your navigation.
    If you want your original hierarchy, then your calendar table needs key fields to identify the parentage.
    Eg Semester key is 2011-1, 2011-2. Description is 1st Semester.
    This is especially important if you move to 11g and want to use the hierarchy features.
    Regards,
    Robert
    Edited by: Robert Tooker on Nov 25, 2011 2:29 AM

  • A Question Related to Dimension Hierarchy

    Hi All,
    While going through some hierarchies, i found that some columns were associated with the levels in hierarchy but these columns were not part of level keys.
    I want to know that what is difference between the result when columns that are not level keys are associated with a logical level and when such columns are not associated with a logical level ?
    Does such columns affect the result when selected in BI Answer?
    For exp -
    Suppose i have below time dimension hierarchy -
    Time
    ->Grand Total Level 0
    ---> Year Level1
    Year (Level Key)
    Year Start Date
    Year End Date
    ---> QuarterLevel2
    Quarter(Level Key)
    Quarter Start Date
    Quarter End Date
    ---> MonthLevel3
    Month(Level Key)
    Month Start Date
    Month End Date
    ---> Day Level4
    Day (Level Key)
    Day Start Date
    Day End Date
    These start date/end date columns are not part of level keys.
    The same thing i have observed in other hierarchies too.
    I want to know that what would happen, if these columns are not present at these levels?
    So When should we associate columns those are not part of level key to levels and when we should not associate ?
    Thanks,
    Ashish

    Hi ,
    The non key columns used in each of the levels help in faster retireval for that aggregate level .
    If you look closely at these columns you will find these to be unique ,now having said that another point is that these levels are also used for aggreagation
    as we all know.
    For ex at the month level the key identifies all the unique moths but if data has to be shown for one particualr month then with the start momth date and end month date the retrieval would be still better :)

  • Value based dimension hierarchy in OBIEE 10G

    Hi,
    I am a user of OBIEE10G. I have to create a value based dimension hierarchy in my RPD. My hierarchy should be such that when I click on any VP Name, the respective employees working under him/her should be shown. But my columns of VP Name and Employee_Name are present in separate dimensions. Hence when I drag the column of VP Name to Employee dimension and then create the dimension hierarchy, I get an error of illegal cross join .
    Is value based hierarchy possible in 10G?
    Pls reply.
    Thanks
    Ankita
    Edited by: 848789 on Sep 28, 2011 8:40 PM

    Hi Ankita,
    As per my Understanding the VP column did't map to any LTS .
    When ever u have multiple LTS in Dim Admin tool won't create Dimension Hierarchy manually we need to create that.
    Follow these steps to resolve your Problem...
    1) give the simple join in physical layer for that two tables.
    2) Create one Dim table in to BMM layer drag all columns in 2 tables in to BMM Dim table so u can able to see all the columns is mapped in to their respective LTS.
    3) Now u can create hierarchy manually step by step.Like Grand total Parent ----> Child level .
    4) If u have any fact table joined with these dimension in physical layer give the logical joins in BMM layer and set the content levels properly.
    Let me know need any detail clarification.
    Thanks,
    Satya

  • Setting Dimension Hierarchy

    Hi All gurus,
    I am new to OBIEE and am currently trying my hands on Oracle By example tutorial. My query is why do you need to create Dimension Heirarchy and different levels for dimension table and also what is the criteria which decides which level will be after the total level and so on.....
    It would be great if I get some exmaples which might explain as to why & how the different levels created in Dimension table..
    Thanks
    Dharmendra Jha

    We must need dimension hierarchy in ever Business Model.
    Lets take a supply-orders Business Model
    we need to present Year & No.of dollars & also we need to present months & no .of dollars per that month
    so u need to define hierarchy for that business.
    Hierarchy follows as below
    Grand total(Parent Level)
    Year(Child of Grand Total)
    Month(child of Year)
    Day(child of Month)
    Suppose when u grill down year , automalically month should appear along with dollars per that particular month
    Like wise By grill down Months day wise dollars should appear on report.
    So Strictly we need Dimension Hierarchy

  • How to set Grand Total of a Measure when its aggregation rule is Max in Logical Layer

    Hi
    I have a Measure Column (Budget) and in Logical layer the aggregation rule is set as (Max) which looks like Max(Budget). But now it is included in the report and when my client is trying to see its grand total, it is giving the Max Budget figure of the report rather than giving the total sum(grand total).
    Kindly share some ideas in achieving the grand total without disturbing the actual aggregation of the measure.

    Thank You for your reply.
    In my case i don't have a problem with aggregation for Budget Measure(max(Fact_XXKC_SHIP_TO_BUDGET_CAT_F.SALESREP_BUDGET_YTD)). This is the aggregation rule applied on the Salesrep Budget YTD.
    Now i created a report with columns
    Salesrepresntative(Dimension),, Sales Invoices(Measure1),, SALESREP_BUDGET_YTD(Measure 2).
    In the above report the values are perfect, but when we used Grand total option at ROW level in table view, the grand total of Measure1 is cumulative of all the rows, but the Grand total of SALESREP_BUDGET_YTD (measure2) is the max of all the columns.
    What i require is the Grand total of SALESREP_BUDGET_YTD (measure 2) should be cumulative of all the columns.
    I have shared my SQL query, kindly verify it and share any idea.
    select sum(case when T97600.W_XACT_TYPE_CODE = 'Chargeback' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c1,
      sum(case when T97600.W_XACT_TYPE_CODE = 'Credit Memo' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c2,
      sum(case when T97600.W_XACT_TYPE_CODE = 'Debit Memo' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE end ) as c3,
      sum(case when T97600.W_XACT_TYPE_CODE = 'Standard Invoice' then T93664.NET_AMT * T93664.GLOBAL1_EXCHANGE_RATE when T97600.W_XACT_TYPE_CODE = 'Invoice Cancellation' then T93664.NET_AMT * -1 * T93664.GLOBAL1_EXCHANGE_RATE end ) as c4,
      T315597.XXKC_RESOURCE_NAME as c5
      from
      W_CUSTOMER_LOC_USE_D T315597 /* Dim_W_CUSTOMER_LOC_USE_D_Status */ ,
      W_SALES_INVOICE_LINE_F T93664 /* Fact_W_SALES_INVOICE_LINE_F */ ,
      W_XACT_TYPE_D T97600 /* Dim_W_XACT_TYPE_D_Sales_Ivclns */
      where ( T93664.XACT_TYPE_WID = T97600.ROW_WID and T93664.DELETE_FLG = 'N' and T93664.XX_SHIP_TO_LOC_USE_WID = T315597.ROW_WID )
      group by T315597.XXKC_RESOURCE_NAME
      ) D1 full outer join (select max(T313184.SALESREP_BUDGET_YTD) as c1,
      T315597.XXKC_RESOURCE_NAME as c2
      from
      W_CUSTOMER_LOC_USE_D T315597 /* Dim_W_CUSTOMER_LOC_USE_D_Status */ ,
      XXKC_SHIP_TO_BUDGET_CAT_F T313184 /* Fact_XXKC_SHIP_TO_BUDGET_CAT_F */
      where ( T313184.SITE_USE_WID = T315597.ROW_WID )
      group by T315597.XXKC_RESOURCE_NAME

  • What is the use of Grand total level in obiee ,

    hi ,
    i know that we can perform drill down from one level to another level, level base measures ,aggregate atble.................
    apart from that any other user if so pls give me one small example
    What is the use of Grand total level in obiee

    When you start to use multi-star models and none-conforming dimensions, you will use the grand total level to tell the BI Server what to do with the measures when you try and plot them all in the same answers request.
    Also consider any meaure you want to perform a '% of total' you will need the total mapped somewhere, this could use the Grand total level as a level based measure.
    Regards
    Alastair

  • Grand total values are not matching with Detail report

    Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
    Please provide your thoughts and insight on this issue..
    Thanks

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Wrong SSAS Grand Total Value Monthly Value base on Weekly Value

    Dear All, 
    I Have calculated measures in my cube base on Weekly and Base on Monthly and different
    Template Base .
    For grand Total Weekly is fine but for Monthly is bad one.
    Say calculated Measure Name "Weekly" with Syntax
    CREATE MEMBER CURRENTCUBE.[Measures].[Weekly]
     AS IIF(isempty([Measures].[Actual Quantity MTD]) or [Measures].[Actual Quantity MTD]=0 or isempty([Measures].[Original Plan Quantity  MTD])   , null ,
    IIF([Measures].[Original Plan Quantity MTD] =0 or isempty([Measures].[Original Plan Quantity MTD]),null,   
    IIF( 
     ([Measures].[Actual Quantity MTD]-[Measures].[Original Plan Quantity MTD]) > 0 , 1 ,[Measures].[Actual Quantity MTD]/ [Measures].[Original Plan Quantity MTD] ))) 
    The Result is good
    here the picture
    http://hpics.li/9fd22f2
    https://drive.google.com/open?id=0ByY5H-XcydgiWGp0RzdWYWp0M2c&authuser=0
    and for Monthly Calculation  it was AVG of Weekly base on Time, Plant, and PSL Dimension 
    My calculated Monthly Measure Name "Monthly" with Syntax
    CREATE MEMBER CURRENTCUBE.[Measures].[Monthly]
     AS AVG ( 
    DESCENDANTS([PSL].[PSL Description])*
    DESCENDANTS([Plant].[Plant])*
    DESCENDANTS([Finish Date].[Calendar],[Finish Date].[Calendar].[Month Year]) 
    , AVG(([Finish Date].[Calendar].CURRENTMEMBER.CHILDREN), [Measures].[Weekly]))
    The Result is Bad on Grand total 
    here the Picture link 
    http://hpics.li/5233b50
    https://drive.google.com/open?id=0ByY5H-XcydgicEhtT1FpekRsbW8&authuser=0
    Please help me why for the Result doesn't same. What do i Miss
    Thank You 
    Yan

    Hi Yan,
    According to your description, you create a calculated measure in your cube, the problem is that grand Total for Monthly is incorrect, right?
    In your scenario, the issue can be caused by that you used "*" and "/" in your calculated measure. In SSAS, one of the most common issues faced in mdx is grand total or sub total not coming properly when some arithmetic operations like
    measure1 [* or + or - or /] measure2 is used, please refer to the link below to see the details.
    http://vnu10.blogspot.jp/2011/01/mdx-grand-total-sub-total.html
    Regards,

  • How to show Grand total values in Chart view....

    Hi,
    I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
    column Metric1 Metric2
    AAA 10 20
    BBB 30 15
    CCC 20 15
    TOTAL 60 50
    so here i need the values 60 and 50 also also to be displayed in a line graph
    cheers

    Pretty simple to achieve :)
    In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
    Hope answered

Maybe you are looking for

  • Problem with WRT54GS

    Hey everyone.  I turn on my wireless router, which is connected to the normal router as it should be.  The internet works fine for like 5 or 10 minutes at most but then it just stops working.  My computer says that it is connected to the internet cuz

  • CS: DBDriver failed to load univ connection

    Windows 2008 (x64); AIX 6.1; BOXI31 SP3 I remote to a windows 2008 x86 environment where I have the BOXI31 SP3 client apps installed.  from here, I import a univ file from an AIX 6.1 server > works fine, however, my connections don't work, keep getti

  • PO Header level Descriptive Flexfields (DFF)

    Hi, We would like to define different sets of DFFs on PO Header level based on different nature of Purchase Orders. For example: Local Purchase Order (Cotton) Import Purchase Order (Cotton) Local Purchase Order (Chemicals) Service Purchase Order (Pro

  • Org Hierarchy Query

    Hii Gurus, Our client have the follwing requirement. They need to see the parent node of the 0ORGUNIT in a separate column. We do not know what it will take to accomplish this (enhancing 0ORGUNIT doesn't seem to be an option at this point), Can u giv

  • There was an error opening the database for the library "/Volumes/My Passport/Aperture Library.aplibrary".

    My computer has switched itself off and I am now unable to open my Aperture library as getting the above message!!