Grand Totals are incorrect
I have two facts : Income & Forecast
I have two dimensions : Date & Organisation
I have a report for 2007 that shows the following data:
Week Income Forecast
Week1 100 100
Week2 100 100
Week3 100 100
Week4 100 100
Week5 100 100
GTotal 10000 10000
I know that the grand total is wrong as I have NOT selected the report based total, so it is totaling for all years, not the year that I have filtered for.
When I change to report based totals I get:
Week Income Forecast
Week1 100 0
Week2 100 0
Week3 100 0
Week4 100 0
Week5 100 0
GTotal 500 0
The foreign keys and joins for income and forecast are the same.
Any ideas ?
Ross
Your forecast values rollup properly if you do not have the grand total? Add another criteria which would basically do the summation of the forecast and the amount values(add filters depending on what you have in the first criteria). Combine it with the first criteria using union all. Check whether this produces your output properly(if the grand total gets interspersed with the data, add some logic to make it appear at the place you want). This will help us understand where it is going wrong.
Thanks,
Venkat
http://oraclebizint.wordpress.com
Similar Messages
-
Hi,
I am having some problems using Grand Total on calculated columns (presentation calculations) with a TOP 25 page filter.
I basically have my calculated columns filtered by the Current Week repository variable, and then I want to add a filter to show only the top 25. That all works fine, but the grand total on my report is showing the total of all records, not just the top 25. If I add a normal (non-calculated) column from my subject area, the grand total works fine with the top 25 filter.
Is there any explanation or workaround for this?Hello!
I had the same problem, and this fix solve one part of my problem with grand totals.
The other one is not solved:
We have a strong request to compare total_year measures against part_year measures (dinamicaly navigated with dashboard prompt).
I have a report in dashboard which includes 3 measures:
- plan_year_total (which is created in admin as measure of sales and at time_dimension logical level is year - and this works ok)
- sales_part_of_the year (which is navigated through dashboard prompt between)
- plan_part_of_the_year (which is navigated through dashboard prompt between)
Problem is when I want to show share in grand total row like:
plan_year_total / sales_part_of_the year
It gives out totaly wrong result.
Is there any other idea or workaround?
Gorazd -
Grand totals are not displaying...
hi guys
for cross tab reports grand totals (rows and columns) are not displaying.
is there any fix to resolve.I have faced a similar issue in Cross tab reports.
Try using Cell Sum/Cell Sum distinct function instead
of the usual Sum function while calculating the grand total that function is working for Grand Total at bottom but not working for Grand Total on right [i] -
Subreport totals are not displayed correctly in Preview
I'm using Crystal Reports 2008. I have a subreport that sorts hiearchically. It is placed in the Report Header of the main report. Within the subreport, it has calculated totals for each hiearchy grouping. When ran, those totals are incorrectly displayed in the Preview; however, when I click on the subreport, those totals are displayed correctly in the preview of the subreport. Also, if I go to the subreport design, pretending I'm editing the subreport, then go back to the main report preview, those totals are correct.
Has anyone experienced this issue? Please provide help/advise. Thanks.Shwu, The subreport does not process any value based on the main report. I also observed that if the group extends to next page, the totals are incorrectly displayed. I have both 'Keep Group Together' and section 'Keep Together' selected, but still the data extends to next page. The subreport is sorted with 'Hierarchical Grouping'. For example, below 2 lines are printed at bottom of a page:
North America
Sales department
then Crystal prints the rest of departments belong to North America onto next page as:
Marketing
Consumer
Government
etc.
I was hoping if I could get Crystal to not print the group if there's not enough space on the page, but rather print on next new page, the incorrect totals would go away. Any idea how I would do page break for hierarchical groupings? -
How to display grand total only on the last page of my report
Hello
I need to display the grand total amount of the invoice only on the last page of every report. If the report has 1 page then the grand total will be displayed on the 1st page. If the report has 2 pages then a subtotal will be displayed on the 1st page adding up all the amounts on page 1 only, and the grand total will be displayed on the 2nd page, adding up all the amounts of page 1 and 2. If the report has 3 pages then the a subtotal will be displayed on page 1 adding up all the amounts of page 1, and another subtotal on page 2 adding up all the amounts of page 2, and the grand total are displayed on page 3 adding up the amounts of every page.
supplier amount
xx 100
yy 100
subtotal 200
page 1 of 2 --here i need to display only the total amounts of page 1
supplier amount
subtotal brought forward 200 --then i need to bring total of page 1 over to page 2
qq 300
zz 300
total 800 --here i have reached the end of the report and
need to display the grand total
page 2 of 2
--Currently i am displaying this on my report
supplier amount
xx 100
yy 100
total 800 --this one gives the problem cause it displays the grand total
---------- on page 1 of 2 even before you can see the amounts on the
next pages
page 1 of 2
supplier amount
qq 300
zz 300
total 800put the grand total in a frame and set it to print on the last page of the enclosing object.
-
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])
ENDHi 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 -
Grands totals for % Columns coming incorrect in pivot view .
Hello ,
I have the below scenario . Iam trying to get the calculated grand total for % column . I tired several ways ...like report aggregates enabled in instanceconfig,tried creating cal colum using physical columns as well as logical columns in RPD , changing the aggregation rule. The row wise values (%) are coming correct but iam unable to get correct % grand total (36.8%) instead iam just getting the sum of the % total ( 83.3%) . I have tried the above options in my previous reports and those conditions work perfectly right but for this report they are not able to . kindly please let me know if anybody has a solution for this issue .
Department ...USD CAD Variance (USD/CAD)*100
XYZ 10 20 50%
ABC 25 75 33.3%
Total 35 95 36.8% ( 35/95)
Thanks
KarthikJust to cross check
Do you have following tag in your instanceconfig file ? if its not there then you may encounter grand total incorrect calculations.
<ReportAggregateEnabled>true</ReportAggregateEnabled> -
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..
Thanksis 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? -
Incorrect GRAND TOTAL (with COUNT DISTINCT)
Hi,
I'm getting wrong results in the GRAND TOTAL of a COUNT DISTINCT measure column.
I have 5 distinct customers in Paris and 10 distinct customers in NYC, I want the grand total to retrieve the sum of both, that's 15.
But OBIEE is calculating the distinct customers for all cities, so if there are customers in both Paris and NYC the result is wrong.
This is the result I'm getting:
City Number_Distinct_Customers
Paris 5
NYC 10
GRAND TOTAL 12
12 is the number of all the distinct customers.
The correct GRANT TOTAL should be 5+10=15
Thanks
RegardsSo just as a weird question...from a business standpoint, what does the "15" mean?
It's not a count of distinct customers, which is what this measure is supposed to be.
If I were to come up with a business description for what's being described, it's "a count of distinct customers by city....summed up so that it is no longer a count of distinct customers". What and/or how exactly would anyone use such a number?
Not trying to be a pain, just trying to figure out how this would be used.
Thanks,
Scott -
Can anyone pls tell how to fix the issue of Incorrect Grand total ?
Especially for calculated values.If any formula is applied then the grand total should also be executed with the same formulas.
Pls helpThanks Madhan and MMA.
Madhan
I've already tried adding <ReportAggregateEnabled>true</ReportAggregateEnabled> and even after restarting the services no use. My server version is 10.1.3.2.1.Is there any alternate solution?
MMA
I tried with Server complex aggregate also.But no use.
Pls suggest if there is any alternate solution. -
Incorrect grand total when drilling down
Hi,
I have a simple crosstab report showing budgets and costs against consortia. The consortia names are the row headers.
There is a heiracrhy of practices within consortia.
I have a 'grand total' calculation at the bottom.
When I drill down from any consortium to the practices within it, the total is fine - even if I drill down from all the consortia, as long as I drill down from each consortium one at a time.
BUT - if I drill down to practice level in one go (from the heading bar above the consortium names), the total is doubled!
Has anyone else had this problem? Any solutions?
ThanksHi,
The total is doubled because the level1 itself is a total of level2. So, the report will looks like this:
Consortium 100
Practice1 50
Practice2 50
The solution, I would suggest is first have subtotals for each change in Consortium and then add a calculation as SUM(subtotal). Dont display the subtotals.
This is just a workaround though.
Hope this helps,
Yogini -
IN WHICH TABLE WAGE DESCRIPTION,GRAND TOTAL PAYROLL ARE THERE
HI,
EVERYBODY CAN ANYBODY TELL ME IN WHICH TABLE WAGE DESCRIPTION,GRAND TOTAL PAYROLL,GENERAL FUND,TOTALS,GENERAL ,EMPLOYER CONTRIBUTION ARE USED.
PLEASE TELL ME THE TABLE NAMES FOR ABOVE FIELDS
THANKING U ALLHi,
check this link:
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYNZ/PYNZ.pdf#search=%22IN%20WHICH%20TABLE%20WAGE%20DESCRIPTION%2CGRAND%20TOTAL%20PAYROLL%20ARE%20THERE%20in%20abap%22
regards,
keerthi. -
Grand total feeding from Multiple Subjects Area
Hi,
I have to create a report that displays Grand total = sum of values from one subject area + sum of values from another subject area. How do i achieve this.
ThanksCreate a prompt based on the report(incl criteria) from SA1, include the measure column in the prompt, the value of the measure is based on the 'contrain' of each column in the prompt and assign to Presentation variable.
Call Presentation variable in the report which is from SA2.
ex: Report 1 from SA1 is like: $amount by year, by prodcut,by org
Report 2 from SA2 is like: $OrderAmount by year, by prodcutType,by org
Report1 by Prompt: Year->constrain, PRoduct->Constrain, Org-Constrain, $Amount as PS Var 'amt'
Report 2 as reqular report, try to call @{amt} in the report for addition. -
Hi, I have a pivot table with several measures and grand totals. The problem is that there is one measure where the totals show up incorrectly. By incorrectly I mean that this shouldn't be sum of rows, but a different calculation and I haven't found a way to define separate calculation for this total.
Is there a way to hide totals for this one measure? Or is it still somehow possible to use some different value/calculation in there?In the Pivot Table I'm currently using sum, because I'm combining different queries with union. In the actual query these values are calculated by row using Count Distinct. Now in the total it just sums up individual Count Distinct values but the correct value should be Count Distinct for total data set.
-
Hi,
I have a Report for GL Reconciliation and it shows Source System Balances and GL Balances along with the Variance in these two and % Variance.
Sample data is as follows:
Year Month SYS Source System Bal GL Balances Variance % Variance
2010 MAY A 66,100,676,002 60,994,246,811 -5106429191 -8.37%
2010 MAY B 29,081,192,665 29,066,650,415 -14542249.78 -0.05%
2010 MAY C 218,856,115 212,416,688 -6439426.71 -3.03%
2010 MAY D 14,601,939 -100.00%
2010 MAY E 808,716,681 822,453,990 13737309.05 1.67%
2010 MAY F 5,874,200,259 6,856,456,401 982256141.3 14.33%
2010 MAY G 2,181,160,124 2,164,379,222 -16780901.26 -0.78%
2010 MAY H 10,505,609,797 23,529,905,894 13024296097 55.35%
2010 MAY I 1,566,030,457 1,565,502,039 -528418.48 -0.03%
2010 MAY J 1,479,284,089 100.00%
2010 MAY K 10,939,680,559 7,481,930,011 -3457750548 -46.21%
2010 MAY L 8,774,737,817 8,831,160,339 56422521.84 0.64%
2010 MAY M 1,117,717,954 548,331,847 -569386106.3 -103.84%
2010 MAY N 73,670,961 55,680,430 -17990531.39 -32.31%
2010 MAY O 4,583,263,229 4,562,122,752 -21140477.19 -0.46%
2010 MAY P 204,382,965 206,288,734 1905768.97 0.92%
2010 MAY NULL 332,763,879 100.00%
MAYTotal 142,044,497,524 148,709,573,543 6665076018 4.48%
Now This is how the Report will work as Normal...
What the user wants is Instead of Variance he wants to see the Absolute variance. So If I run absolute function on This Column, I will get following results:
ABS(Variance)
5,106,429,191
14,542,250
6,439,427
13,737,309
982,256,141
16,780,901
13,024,296,097
528,418
3,457,750,548
56,422,522
569,386,106
17,990,531
21,140,477
1,905,769
6665076018 --- -This Total is Incorrect as it is showing only the Absolute value to the Total, where as it should be More than this and to achieve this, I changed the Aggreegation Rule to SUM
to Get the correct sum of the figures mentioned ablove which will show following output:
ABS(Variance)
5,106,429,191
14,542,250
6,439,427
13,737,309
982,256,141
16,780,901
13,024,296,097
528,418
3,457,750,548
56,422,522
569,386,106
17,990,531
21,140,477
1,905,769
23,289,605,688
Now Till this point everything is correct and can be achieved. The problem is with the % Variance:
Bydefault % Variance ( Calculated using Variance/GL Balances )*100 Is as follows:
% Variance
-8.37%
-0.05%
-3.03%
-100.00%
1.67%
14.33%
-0.78%
55.35%
-0.03%
100.00%
-46.21%
0.64%
-103.84%
-32.31%
-0.46%
0.92%
100.00%
4.48%
But the Users wants that The % variance be calculated on Variance Column and GL Balances Column ( Variance/ GL Balances)*100
But the Grand Total values at the bottom should be based on ( Grand Total of ABS(Variance)/ Grand Total of GL Balances ) *100
to get the Desired results as :
% Variance
-8.37%
-0.05%
-3.03%
-100.00%
1.67%
14.33%
-0.78%
55.35%
-0.03%
100.00%
-46.21%
0.64%
-103.84%
-32.31%
-0.46%
0.92%
100.00%
15.66%
(23,289,605,688/1,48,709,573,543)*100
If someone can help me with this...
Edited by: help-required on Oct 1, 2010 1:14 AMOK, there are a couple of things that have to be pointed out before getting to the actual problem. First of all, the column you named "Variance" is not a variance, but a "difference" and should be labeled as such. Second, what is the variance you are trying to calculate?
If the variance is from the "Source System Bal," then the calculation is ("GL Balances" - "Source System Bal")/"Source System Bal"
If the variance is from the "GL Balances," then the calculation is ("Source System Bal" - GL Balances")/"GL Balances"
You have ("GL Balances" - "Source System Bal")/"GL Balances" so do you know what you are measuring? Make sure you get this part right first. Now on to the issue itself.
This is the point of confusion with some I think: you want the individual rows of the "% Variance" column to display the +actual+ variance, positive or negative, but in just the total at the bottom, you want the "% Variance" to reflect the "absolute values of the differences, summed, and then divided by the GL Balances."
You can't have two different calculations on the same column like that, one for the rows and a completely different one for the total.
Here's a workaround. Uncheck the "totals" for the pivot table completely and just show the rows. (Make sure you change the name of the "Variance" column to "Difference" or something similar.)
Now create another pivot table view, but take out all the attributes so the measures sum up. Add an additional column called "ABS % Variance" and make this calculated column (do this in Criteria in the fx of a "dummy column"):
(ABS("GL Balances" - "Source System Balances")/"Source System Bal")*100.00
Don't forget to change the data format to "percentage."
Now place this pivot table view directly below the one with the individual rows. You should now have what you are looking for.
Edited by: David_T on Sep 30, 2010 10:58 AM
Maybe you are looking for
-
Portege (XP) Crashes on Start Up
My Toshiba Portege 400-S4034 w XP SP3, 100 GIG HD with 80 GIG free, 1 GIG RAM, almost always gives me a blue screen crash when trying to start up. The blue screen says STOP: 0x000007f, 0x00000008, 0x80042000,0x0000000,0x0000000 At this point I have t
-
HELP PLEASE - "itunes has stopped working" message....
When I open itunes it opens up but after about 2 seconds a message comes up from Windows saying "itunes has stopped working" and that Windows is checking for a solution to the problem. It then stops checking and a new message comes up saying "A probl
-
How to delete pictures in iPhoto
How do I delete pictures in iPhoto?
-
alias for discussions: lolobacsi iTunes wont launch now that I have upgraded it a short time ago. I am running OS10.6.8 on an older MacBookPro I use primarily for iTunes
-
Command to goto primarylist from secondarylist
hi, what is the command/transactioncode to move from secondarylist to basic/primarylist and what happens if we create 21 secondarylist will the control goto 21st from 20th , on selecting a field will it directly goto 21st list.