Grand Total is Incorrect
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
Similar Messages
-
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 ?
RossYour 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 -
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> -
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 (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 -
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 -
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
YanHi 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, -
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.
-
Adding a grand total to the columns
Hi
I need to add a total to one of the columns in my report. I have set Aggregation rule as "Sum" but it is not displaying Grand Total.
Am I missing any thing or setting the rule incorrectly?
Please advise.
Thanks in Advance.
JasHi Arvindh
Thanks for your response. I am not using a pivot table I just tried to add total to the table which is created by just selecting columns required in the Define Criteria section.
We can add a total w/o creating the pivot table also. By the way, I have found the solution. The key lies in the second step. If u want me to explain in detail. Just let me know.
-Jas -
Pivot table - Grand total Error
hi,
I am getting incorrect totals in my Pivot table.
i.e The Grand Total is not giving the exact sum.
pls direct me..
My scenario: I need to calculate the total expenses per region and quarterwise.i havent used any aggregation rule.
In the Answers, i have designed the Pivot table in the below format
[i simply drag-dropped the Columns]
I should give the grand total regionwise and also quarterwise.but the grand totals arent displaying the proper results.
pls advise.
Ex:
region Q1 Q2 Q3 Region- Grand total
AAA 20000 50000 120000 xxxxxxx
BBB 22240 13456 111500 xxxxxxxxx
Qtr-Grand Total zzz zzzz zzzz nnnnnnnnn -
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 -
OBIEE11g Grand total not summing up correctly
hi all,
I have to display the grand total from the foll calculation : (total po numbers - total Recd on time PO numbers) / total PO numbers.
To get the total PO numbers - in the Edit formula - COUNT(PO numbers) and aggregation rule is set to SUM - this gives total correctly. eg : count of Total PO numbers - 15
To get the total Recd on time PO numbers-- In the edit formula fields - COUNT(Recd on time PO numbers) and aggregation rule is set to SUM . This also shows hte total correctly. Eg : Count of total Recd on time PO numbers 12
Now I do the division (Recd on time PO numbers/ total PO numbers ) Again in the Edit formula field SUM( COUNT(PO numbers))/ SUM(COUNT(Recd on time PO numbers)) - This gives incorrect results. output is 12.
12/15 should be .8 but it shows 12.
I am not sure why its not doing the calculation correctly.
Is there any way I can achieve this ?
Thanks
OBI_user* 1.00 => http://gerardnico.com/wiki/dat/obiee/int
-
OBIEE 10g - Unable to see data in the report view with grand total applied
Hi,
We're facing with a strange issue.
We're working on a report view.
We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
Please help.
Thanks in advance.
-RamaHi Dpk,
Thanks for your reply.
I included it in the instanceconfig.xml, but the issue still exists.
Couple of Observations
#1 - We noticed this issue when we drill down to the level which has really sparse data.
It works fine when we look at the enterprise wide report.
#2 - Works fine with few dimensional attributes and facts on the report
When we add a fact that doesn't have any value at that level, the issue starts to appear.
Thanks in advance.
-Rama -
% is not getting correctly for the Grand Total Row in OBI10g
Hi,We have a report in table view with the following structure.
Name Target Act %Ach
ABC 100 50 50
XYZ 200 10 5
Total 300 60 27.5
The value for the %Ach Total row should be 20% but in the report it is showing as 27.5.
any one observed this ,how to correct this??
ThanksHi,
To get grand total correctly..configure instanceconfig.xml and put..
<ReportAggregateEnabled>true</ReportAggregateEnabled> between <serverinstace>..
refer..
http://obiee101.blogspot.com/2009/09/obiee-grand-totals-with-calculated.html
Hope it solves ur problem
Maybe you are looking for
-
How to Get a list of pending deferred tasks
Hi all there is a bunch of unfinished threads here asking how to get a list/report of deferred tasks that are associated with user objects and scheduled for future execution. I need this list and I can't find out how to get it anyway. I don't care if
-
How to restrict group of workstations
Zenworks 3.2 sp2 & WinXP Novell Client 4.9sp2 User policy for Staff/Faculty accounts gives them DLU accounts wiht the Admininstrator's rights - the main reason is the fact that they use PCs mainly in the offices. Volatile User Cache is set to 366 day
-
Data Source for reused bounded task flow
Hi, I am using JDeveloper 11.1.2.4.0. I have a project from which I exported a bounded task flow to be used in other projects. When I include that bounded task flow in a separate project, its data source does not appear in the Databindings.cpx of the
-
How do i reorganise my full disk
I have a 250GB disc on my iMac but I also have a Terra Byte and a 500GB external drive. My files are not well organised and my iMac HD is nearly full. I would like to store my iPhoto library externally but it will not allow me to drag and drop it. Ca
-
i am new to JSF. can any body tell the flow structure in typical JSF application and tell me the differences between JSF and struts?