Grand total showing wrong results
Hello,
I am having one prblem,using obiee 11g.
Have a pivot table with 3 columns, one is month and other are showing numbers.
For month we show the 2 number columns
when i click grand total its showing the wrong total for the second number column.
I really don't understand why its happening?
Any help?
Thanks
Hi,
Set Aggregation Rule as Server Complex Aggregate may solve your problem, ie goto
Column -> Edit Formula -> Aggregation Rule -> Server Complex Aggregate
Thanks,
Balaa...
Similar Messages
-
Hi,
I found it is wrong for grand total of measure / calculated field? Here is my sample and data:
Here is the data:
TotalForecast:=CALCULATE(SUM([Qty]), Table1[Data Type]="Forecast")
TotalSales:=CALCULATE(SUM([Qty]), Table1[Data Type]="Sales")
Diff:=[TotalSales]-[TotalForecast]
ActualDemand:=if([Diff]<0,[TotalForecast],[TotalSales])
Is there something wrong for my expression?
Thanks
WilsonThe "problem" is that measures actually calculate individually for each cell in a pivot. What that means is that technically the grand total row in a pivot is not related to the rows above it. Intuitively, it seems like it is related
because often times the grand total is what you expect. This can be a little confusing at first but there are some blog posts out there that do a good job of explaining the concept.
Your current measure is looking at the Diff only as it pertains to the grand total row. It sees 9 and therefore returns the value of TotalSales.
The quickest fix is probably just to add one more measure that forces your current measure to evaluate itself in the proper context:
ActualDemand2:=
SUMX(
VALUES(Table1[Product Type]),
[ActualDemand]
In PowerPivot functions that end in "x" are called iterators. They let you change the granularity of a calculation by cycling thru the individual rows of a table you specify.
In this case, the table I am using is VALUES(Table1[Product Type]), which is a single column table containing the unique values of the Product Type.
Now your measure evaluates the sum for each Product Type (which ends up being the 4 results showing in your pivot table above for each Product) and adds those 4 results together for Grand Total. -
Clientinfo.jar shows wrong results !
Hi all,
Some time ago, I downloaded clientinfo.jar java beans file for the purpose of getting client's machine information (as suggested in this forum).
The information is okay only for the machine which has single Network Adapter (LAN Card Ethernet Adapter).
If machine has more than one Network Adapter, it creates problem and shows only 03 below parameters rightly;
- Operating
- Architecture
- OS Version
But, IP parameter shows IP address wrongly as 127.0.0.1 (instead of 192.0.0.150.....) always.
Other parameters as below show no results;
- MAC
- JAVAVERSION
- JAVAVENDOR
- JAVAVENDORURL
- JAVAHOME
- JAVASPECIFICATIONVERSION
- JAVASPECIFICATIONVENDOR
- JAVASPECIFICATIONNAME
- USERNAME
- USERHOME
Please guide me how can I get right information of my client's machine, if it has more than one LAN Card ?
or suggest me some alternate.
Thanks.
Bhatt.Hi, Libra:
I tried in my system, and it was working correctly. I can find the period interval information in the header of columns.
Which system are you working on?
Kind Regards, Lawrence -
I used with rollup to add a Grand Total in the result.
BEGIN select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),'GRAND TOTAL') AS InvoiceNumber, sum((Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0))) AS 'Total In Inventory',(Select ProjectCode from tblProjectmmc where id=ProjectId)as ProjectId,a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount, a.UserId as ProjectManager from tblinvoicemmc a inner join tblInvoiceItemDescriptionmmc b on a.InvoiceNumber=b.InvoiceNumber group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,a.ProjectId,a.UserId,a.BusinessUnit with rollup ORDER BY a.Invoicenumber DESC ; End
but giving error
Cannot perform an aggregate function on an expression containing an aggregate or a subquery.
SmsBEGIN
select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),
'GRAND TOTAL') AS InvoiceNumber, sum((isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) AS 'Total In Inventory',
p.ProjectCode as ProjectId,
a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount,
a.UserId as ProjectManager
from tblinvoicemmc a
inner join tblInvoiceItemDescriptionmmc b
on a.InvoiceNumber=b.InvoiceNumber
left join tblProjectmmc p
on p.id = a.ProjectId
group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,p.ProjectCode,a.UserId,a.BusinessUnit
with rollup
ORDER BY a.Invoicenumber DESC ;
End
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
TFS Build - Unit Test is showing wrong result
HI Team,
I have a build definition(“BDPR's Playground CI Build”) which is compiling 2 solutions and running the unit tests in them. Globally I have
6 unit tests that pass, 0 that fail and 2 that are inconclusive, which gives a total of 8 unit tests. When I run this build definition, what is reported in the build summary is “6/6 test(s) passed, 0 failed, 0 inconclusive”, which is obviously wrong. It looks
like inconclusive unit tests are completely ignored by the build system. Is this a bug or am I missing some subtle option somewhere in the build definition to get this right?
Displaying a given build summary in Visual Studio gives less information that in the web portal. The web portal reports the number of inconclusive
unit tests (but with a wrong value – see previous item) whereas Visual Studio doesn’t report the inconclusive unit tests at all. Example: for the build “BDPR's Playground CI Build_20150409.5”, web portal reports “6/6 test(s) passed, 0 failed, 0 inconclusive”
while Visual Studio reports “6 of 6 test(s) passed”! Is this a bug or is there some misconfiguration somewhere?
Regards
HemHi Hem,
Thanks for your post.
What’s the version of your TFS and VS?
Yes, as far as I know the inconclusive unit test result not show in TFS build summary by default. Bu you can view the TFS build
Diagnostic log to view which inconclusive unit tests be executed in build.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Lat Long Shows Wrong Result In Business Catalyst
Hi All,
We created a custom map on BC where we use lat and long to point the place on the map. However, in the case of Long Island the result always goes to the middle of the sea. Any ideas on how to rectify this?
Thanks.Thanks Chris - We have created a custom map lat and longitude for the website and even put in our on lat long fields. It still shows it wrong
The address is actually an island. As you can see below it is getting the right lat and longitude but showing up differently on the map.
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-e097dbc1-ed4c-c65a-3a1e-3f4ace568475", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
var geocoder;
var map;
function initialize() {
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(-20.393926,148.873329);
var mapOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
codeAddress('-20.393926,148.873329');
function codeAddress(address) {
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
} else {
alert('Geocode was not successful for the following reason: ' + status);
</script>
<script type="text/javascript">
I agree with you that BC's mapping is quite off when it comes to addresses.
BTW - the demo is great. Probably going to use it on our next maps project. -
Xperia lounge Sony football challenge is showing wrong results
I have xperia z1......My prediction against Ger vs Alg was 2-0. And Germany won game by 2-1. But in my xperia lounge result shown 0-0 and i didn't gt any point. after that my prediction against Agr vs Sui was 3-1 and Agr won match 1-0 again i didn't get any points and my xperia lounge result shown after match was 0-0. My prediction against Bel vs Usa was 1-1 again result showing 0-0. and match between last my againsts Netherland vs CRS results showing 0-0...Netherland won4-3... my prediction was 2-1 i didn't get any points... plz.. fix my points......sony.........plz
Solved!
Go to Solution.No,the correct number of points was awarded to you.Those scores were in ET,not in 90 minutes.What you say is wrong,just check with any betting company.This lounge football challenge followes the same rules,why didn't you read them?
All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien -
Quiz variables show wrong result on multiple quiz attempts
Hi everbody
cp4: I have a quiz with certificate at the end of my project. On the certificate the result is shown with the help of the variable cpInfoPercentage. The user has a maximum of 3 attempts to pass the quiz. Now, when he needs more than one attempt, the variable shows the sum of the results from each attempt. The same is true for the variable cpQuizInfoPointssored.
Has anyone made the same experience and knows a way arount it?
Thanks for your help.
PetraI'm just bumping this up because I am having a similar problem. cpInfoPercentage variable is not resetting on multiple quiz attempts, even though quiz results screen is showing correct score and pass/fail message. Is there a way to reset this variable, or some other workaround? THanks.
-
Esimated Number of rows totally show wrong
Hi
I have tuned a procedure to show list of bills , Its just 3000 every day When i use my development server the plan is correct and it shows correct estimated rows, but once i check the server in the site ,the estimated no of rows show all the
rows in the table 24956731 , I run index rebuild and statistics update but still remains same ,do i need to do any other thing
The version is SQL server 2012 both
please help me
Thanks & Regards ManojGood day,
Can you provide us DDL+DML (only relevant tables) and the query script and your execution plan on both servers. In some cases small change in the query or indexes can fix this behavior (by
the way in 2014 there is New and Improved Cardinality Estimator).
When you said "the plan is correct" is that mean the execution plan is the same?
wrong estimated number of rows might change the execution plan.
* check if this article hep you:
Slow in the Application, Fast in SSMS? Understanding Performance Mysteries
http://www.sommarskog.se/query-plan-mysteries.html
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Hello,
Using obiee 11g,
I am trying to build a report where i am trying do a count(distinct un),so i created a logical column for that and using that in my answers.
The un i am showing for over months.IS works fine except that the grand total shows wrong.
Grand total just adds the months total and not just do a count distinct for un.
Aggregation rule is set as default.
Would like to know how to do this?
ThanksHello,
Its not working that way.
Let me explain my case in detail.Problem is only in case of GRAND TOTAl.
I am showing different cases,users and export for each month.
So cases and users are used everywhere so i created a logical column in the RPD.
count(distinct caseid) and count(distinct userid) as cid and uid and using that in my answers.
export count since not used everywhere initially i took that column into my answers and then did a count(xportcount) in my answers
so i have now
cid-uid-count(xportcount) as 3 columns in my answers.But here the problem is my Grand total for uid comes wrong.
Instead of doing a distinct users for all the months selected it just shows the grand total as sum for users
Like jan-16 users feb -17 users then the total is 16+17 and not the distinct users from jan and feb.
Grand total for case and exportcount is correct because i need a sum in that case so aggregation rule as deault works fine here.
Here the problem which i feel is the count distinct which i am doing for caseid and uid and not exportcount.
In my second scenario i did like created a separted column count(exportcount) in the rpd, then used that in my answers.
But still no use
In my third sceanario i created a count(distinct exportcount) in the rpd and using that in my answers
now it feels it works fine.
I wnat to know is this the way BI works.
I am bit confused now.
Is there a way other then this to do.
I wanted first,second sceanario also to work but doesnt feel like working is there a way to make it work?
Thanks -
Please list out the solutions available to solve the Grand total issue.
These are the problems Im facing.
If I enable Grand total I find some rows missing in the report.
sometimes if i apply any calculations in report(fx) grand total is wrong and again some rows missing.
These same issues I faced in BISE1 and it is still continuing.
Any solutions?Hi sneha,
sometimes if i apply any calculations in report(fx) grand total is wrong and again some rows missing.Strange behaviour of missing rows,dint come across this......tell us the exact problem
These same issues I faced in BISE1 and it is still continuing.How did you solve this issue in BISE1.
By,
KK -
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 -
After migrating to oracle10g query is showing wrong result
SELECT PS, SUM(K) FROM
((SELECT 'F' PS, 0 K FROM dual
UNION ALL SELECT 'P' PS, 0 K FROM dual
UNION ALL SELECT 'R' PS, 0 K FROM dual
UNION ALL SELECT 'S' PS, 0 K FROM dual
UNION ALL SELECT 'W' PS, 0 K FROM dual )
UNION
(SELECT process_status PS, COUNT(*) K
FROM production_control p
WHERE p.process_group = 'SA_WEEKLY'
GROUP BY p.process_status))
GROUP BY PS
Wrong Result After Migration
P SUM(K)
W 0
R 0
P 0
F 0
S 254
Correct Result Before Migration
P SUM(K)
F 0
P 0
R 0
S 253
W 0Hi,
>>without order by it was giving correct result in another database.
Correct result ?? How can you know that is the right result ? Don't trust on a order of the rows when selecting, if you not using a ORDER BY clause on your select statement.
>>I am having problem with pariticular database only
This is not a problem. You need specify the ORDER BY clause on this query to guarantee the order of the rows (on all databases) when perform a select statement on this table.
Cheers -
Hide column result in pivot grand total row
Hello
Do you know if it is possible to hide the result of a particular column in a pivot grand total row?
I have several columns to which makes sense use a grand total row (as in a sum) but for others (such as average) it does not make sense in the light of the client business rules.
Any help on this matter is highly appreciated :)
Thanks in advance,
J MarquesI have a measure that represents the average time according to the dimensions it uses - and that works properly.
However, the grand total for that column shows me the average of the average times above. This is not correct that is why I want to hide it.As said by kishore, In pivot go to that time average time column -> Aggregation rule -> None, This won't affect the column avg value.
The grant total value will not come.
By setting this, are you getting wrong values?
Thanks,
Vino
Maybe you are looking for
-
With the older version of iPhoto there was a pull down menu of sizes to print. I would like to print 3x5 or 2x3 rather than the larger sizes. Is it possible to do this any more? If not is it possible to uninstall this version of iPhoto and go back to
-
Integration with Remedy ARS to SAP using web services
Hi! There have been made a wsdl file from a sap babi, this file is loaded into remedy and the fields are mapped (input and output). When doing a search from the remedy using the wsdl file, we get the error "No selection criteria specified", even if t
-
I have been interested in how lightroom uses the catalog so was poking around a backup of the catalog. I am a database administrator and I found it rather concerning that although the database (catalog) is pretty well designed, there is no referenti
-
Problem(e) mit Kurvengraphen
Hallo! Wir haben mit der grafischen Darstellung von Signalverläufen in unserer Software Probleme. Die an der X-Achse angezeigte Zeit läuft viel zu schnell ab. Daher habe ich das angefügte VI einmal zum Testen des einzelnen Graphen erstellt. Nun trete
-
Hammock tasks and Project Server
I am trying to create a hammock task for a project that resides on Project Server. (I am using Project 2013 and Project Server 2010) I can create the hammock, but when I try to check in the file I get an error saying: "Saving the file to the Project