Display the Sum in the break header
Is it possible to display the Sum in the break header instead of the breaker footer? Thanks.
You can put a sum calculation anywhere you want. Insert a cell, and copy (or move) the existing sum formula into your newly created cell(s). If you stay within the block (table) then the numbers will stay the same. If you move outside the block (into a stand-alone cell, for example) then you may have to set the context of the calculation.
Note that a running total may return different results than a standard total, which makes sense.
Similar Messages
-
The cumulative balance displayed in FS10N does not match the sum of the det
Hello,
The cumulative balance displayed in FS10N does not match the sum of the details. For example, we have a GL disbursement account that has a ***. Balance of 8 million. The debit is 2 million and the credit is 10 million. But, when you drill down on the ***. Bal. for the current period, the sum of the details is 9 million. According to our users, the 2 balances should equal. I did a search in this forum and found 1 post stating they had the same issue and the answer was to run f.16. Has anyone experienced this and if so, how did you handle it? I'm not sure how f.16 functions. Do we have to run it for each consecutive year? I'm not a FI specialist. I'm responsible for data archiving and the users think it's related to archiving. However, we have a test system that was resynced with production prior to when archiving was done and it shows that this issue is pre-existing.
Thank you very much in advance,
LourdesHello,
There is a possibility that you have activate line item display for some of the accounts at a later stage. Meaning that earlier postings were not be shown for the earlier postings but only totals will be made available. Therefore, obviously there is bound to be difference between line item report and totals report.
You need to identify which accounts are being changed with line item display at a later stage.
In case if you forget to keep GL Line item display for an account, but the posting are already made the following steps you would required to get the line item display retrospectively.
1. Note that you are NOT required to make the balance of that GL account to ZERO. Please do not confuse with Open Item Management.
2. Put the check box line item display for the account in FS00. Make sure you are entering right company code.
3. Block the account for posting in COA Segment and Company Code Segment in FS00
4. Go to SA38 and run program RFSEPA01 (Give correct GL Account and Company Code)
5. Now, remove the block you kept on the GL Account in FS00.
This will reset the line item display retrospectively.
Hope this will solve your problem.
Regards,
Ravi -
Hi,
I am using Project Server 2010. I have a project schedule that has been baselined and no actual work has been charged to it. The project has 3 resources. I am in the Resource Usage View. With 2 of the three resources, the hours in the Baseline Work Column
on the left side of the view do not equal the sum total of weekly hours in the Timephased Grid. For instance, for resource JB the Baseline Work hours column says 1,392. When I total his weekly hours in the timephased grid I get 1368 hours; a variance
of 24. Resource RS has 794.5 hours in the Baseline Work column but the sum total of his weekly timephased grid hours is 710.5, a variance of 84 hours. In both cases, the sum of the hours in the timephased grid is less than the hours in the Baseline Work column.
What would be causing this? (I am cutting and pasting the weekly hours in the timephased grid into Excel and using the Excel sum function total). Is there a better timephased view I should be looking at to try to find the "missing
hours"? I have seen this before in project and it really has me stumped. Thanks.
Judy WashingtonHi Judy,
I could not reproduce your issue. Is your Project Server patched with the latest SP and CU?
Also can you reproduce this unexpected behavior with another project?
Can you split your screen from the resource usage view, display the resource form and click right on the grey part selecting "schedule"? Then you'll have the scheduled start and finish dates for the resource's assignments. This is to be sure that
you are not missing any parts of the assignments due to a wrong zoom in the timephased grid.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
The sum of the confirmed quantity exceeds the sum of stock items
Hi,
I have two sales order. Material is same. Both of them related project stok.
First sales order's qty=1. I created purchase order and post goods receipt.
Second sales order's qty=2. I created only purchase order.
I cannot create delivery for first sales order. System giving message.
Information message : The sum of the confirmed quantity exceeds the sum
of stock items
20000978 10 Only 0 ST of material 7ML18301CF available
20000978 10 An item with no delivery quantity is not permitted. Item will be deleted.
But I have a 1 qty on project stock.
Please help me.hi,
this is to inform you that,
please run this report in SE38, SDRQCR21 if you have any inconsistencies in the system.
it seems there is an issue with MARD-DISKZ & please correct it.
but i have a doubt MB51 is material document llist. why you are checking stock there.
please confirm.
regards,
baljia
Edited by: balaji timmampalli achari on Nov 17, 2010 9:00 AM -
How do you get the percentage of one number compared to the sum of the total in an array in ipad numbers
On the iPad my example looks like this:
To fill the formula down you tap cell and then Fill:
And drag the bottom part of the yellow rectangle down:
Wayne's example would look similar.
SG -
My hard drive on my Imac keeps clogging up automatically. The personal folder is now 925 GB which is much larger than the sum of the underlying subfolders. I cannot see what"s causing this. Anyone?
You may try one of these utilities to spotlight exactly where the hard drive usage has gone crazy.
DaisyDisk- http://itunes.apple.com/us/app/daisydisk/id411643860?mt=12
DiskFalcon - http://itunes.apple.com/us/app/disk-falcon/id421781596?mt=12
Items to check manually:
Duplicate iTune libraries, or music files that are in itune folder AND loose on the harddrive
Download folder that hasn't been emptied
Backup software location -
Getting the sum of the elements in an array
Hello all,
Any ideas on how to easily get the sum of the elements of an array of floating points (or any data type for that matter ) this is to be part of a method.
arrayName (float [] floaters)
Thanksint total=0;
for(int a=0; a<array.length; a++){
total=total+array[a];
}now is that so hard?
or even as a method
public int addUp(int[] array){
int total=0;
for(int a=0; a<array.length; a++){
total=total+array[a];
return total;
}to be used as
int total=addUp(array);just write your own! -
Get every 10 sec a int.value and need to take the sum of the last 18 values
Hi,
i get every 10 sec a int.value and need to take the sum of the last 18 values (3 minutes).
the programm should work permanently.
I tried with a 1d-array but didn´t get a result. Could anyone help me?
Best regards
kascheUse the example in the posted link, then add another shift register for your sum of all elements. Dont add all the elements every time, add them to a running total when they come in. You will need to evaluate how big this number is going to get, however, and decide if you should use an I64 for your running total of all elements. Even this will overflow eventually.
So your code would look like that posted by GerdW in the above link, then add a shift register with a starting value of 0. Then add your input value to the value comming from this shift register and send the output to the shift register's output terminal. This creates your running total of all values. The code by GerdW provides your "last 18 elements" total in a very efficient manner, just change the 15 to an 18.
I have attached a sample bit of code to make it clear. I saved it in LV 8.0 so more people can open it.
CyberTazer
Software Systems Engineer
Attachments:
Running 18 total.vi 11 KB -
Displaying different sums in the same row based on date ranges
Say I had a table like this
DECLARE @t1 TABLE (RowId INT PRIMARY KEY IDENTITY(1,1), BusinessType VARCHAR(100), SalesPerson VARCHAR(100), Category VARCHAR(100), OrderAmount DECIMAL(10,2), OrderDate DATETIME )
Now I want to get a result that is grouped first by BusinessType, then SalesPerson and include derived columns that are sums based on different date ranges.
Month-to-date = from the start of the current month to today
Month-to-date previous year = from the start of the current month to today 1 year ago
DECLARE @today DATETIME
DECLARE @today_prev_year DATETIME
DECLARE @year_start DATETIME
DECLARE @year_prev_start DATETIME
DECLARE @month_start DATETIME
DECLARE @month_prev_start DATETIME
SET @today = GETDATE();
SET @today_prev_year = DATEADD(YEAR,-1,@today)
SET @year_start = CAST('01/01/' + CAST(DATEPART(YEAR,GETDATE()) AS VARCHAR(10)) AS DATETIME);
SET @year_prev_start = DATEADD(YEAR,-1,@year_start)
SET @month_start = DATEADD(month, DATEDIFF(month, 0, @today), 0); --gets the first of the current month
SET @month_prev_start = DATEADD(YEAR,-1,@month_start); --gets the first of the current month
SELECT t.BusinessType,t.SalesPerson,t.Category
SUM(CASE WHEN o.OrderDate > @month_start AND ac.DocumentDate < @today THEN o.OrderAmount ELSE 0 END) AS MTDActualAmount
SUM(CASE WHEN o.OrderDate > @month_prev_start AND ac.DocumentDate < @today_prev_year THEN o.OrderAmount ELSE 0 END) AS MTDPrevActualAmount
FROM @t1 t
Hope this is clear as to what Im trying to do. Im ultimately going to pull this into an SSRS report, so im wondering if I can do this different SUM values in the report and handle the grouping there.
Thoughts?Based on your example (with a group by added) it should work.
However, if you incorperated a calendar table (http://social.technet.microsoft.com/wiki/contents/articles/29260.tsql-calendar-functions-and-tables.aspx)
you could lose all those manually set parameters:
DECLARE @t1 TABLE (RowId INT PRIMARY KEY IDENTITY(1,1), BusinessType VARCHAR(100), SalesPerson VARCHAR(100), Category VARCHAR(100), OrderAmount DECIMAL(10,2), OrderDate DATETIME, DocumentDate DATETIME)
INSERT INTO @t1 (BusinessType, SalesPerson, Category, OrderAmount, OrderDate, DocumentDate) VALUES
('A','Joe','CatA',10,'2015-01-01','2015-01-01'),('A','Joe','CatB',10,'2015-01-02','2015-01-01'),('A','Joe','CatA',30,'2015-01-03','2015-01-04'),('A','Joe','CatB',40,'2015-01-04','2015-01-01'),('A','Joe','CatA',100,'2015-02-01','2015-02-01'),
('A','Joe','CatB',100,'2015-02-02','2015-02-01'),('A','Joe','CatA',300,'2015-02-03','2015-02-04'),('A','Joe','CatB',400,'2015-02-04','2015-02-01'),('A','Bob','CatA',1,'2015-01-01','2015-01-01'),('A','Bob','CatB',1,'2015-01-02','2015-01-01'),
('A','Bob','CatA',3,'2015-01-03','2015-01-04'),('A','Bob','CatB',4,'2015-01-04','2015-01-01'),('A','Bob','CatA',10,'2015-02-01','2015-02-01'),('A','Bob','CatB',10,'2015-02-02','2015-02-01'),('A','Bob','CatA',30,'2015-02-03','2015-02-04'),
('A','Bob','CatB',40,'2015-02-04','2015-02-01'),('B','Joe','CatA',10,'2015-01-01','2015-01-01'),('B','Joe','CatB',10,'2015-01-02','2015-01-01'),('B','Joe','CatB',40,'2015-01-04','2015-01-01'),
('B','Joe','CatA',100,'2015-02-01','2015-02-01'),('B','Joe','CatB',100,'2015-02-02','2015-02-01'),('B','Joe','CatA',300,'2015-02-03','2015-02-04')
SELECT t.BusinessType,t.SalesPerson,t.Category,
SUM(CASE WHEN OrderDate >= monthStart AND DocumentDate < today THEN OrderAmount ELSE 0 END) AS MTDActualAmount,
SUM(CASE WHEN OrderDate BETWEEN prevMonthStart AND prevMonthENd AND DocumentDate >= yearStart THEN OrderAmount ELSE 0 END) AS MTDPrevActualAmount
FROM @t1 t
INNER JOIN calendar c
ON today = CAST(CURRENT_TIMESTAMP AS DATE)
Group by t.BusinessType,t.SalesPerson,t.Category -
How can I calculate the sum of the first two rows in a table?
I have a table with a repeating row that, when data is merged, always has three rows:
Support type 1
1,234,456
Support type 2
221,556
Interest
11.222
I have a field where I want to show the sum of Support types 1 and 2.
I do not want to add the interest to this.
I'm using FormCalc with the following script on the calculate event of the Total field, which is in the same subform but not in the table:
data.JP_Page1.subform_Hidden.sub_SupportTotals.NumericField1::calculate - (FormCalc, client)
$.rawValue = Sum(subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0].SUBTOTAL, subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBTOTAL)
I've tried this using both decimal and numeric field types, neither work.
I feel like I must be hitting a syntax issue, but the code checker isn't exposing it.
Can anyone help me figure out what is wrong with my script?
Thanks!
JanetYou don't need to do Sum for this, you should use Sum for all rows purpose only..
$.rawValue = subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0]. SUBTOTAL + subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBT OTAL -
How to use the AGO function to calculate the sum of the last 12 months?
year | month | amount
2009 | 01 | 100
2009 | 02 | 150
2009 | 03 | 120
2009 | 04 | 110
2009 | 05 | 155
2009 | 06 | 180
2009 | 07 | 105
2009 | 08 | 145
2009 | 09 | 200
2009 | 10 | 205
2009 | 11 | 150
2009 | 12 | 120
2010 | 01 | 225
SUM OF THE LAST 12 MONTHS OF 201001=>225+120+150+205+200+145+105+180+155+110+120+150 *1.865*
How do I do this? Could anyone help me?
Thanks.hi,
Create a dummy column in Fx
Use *Filter ( amount_col using date col= TimeStampAdd(SQLTSI_MONTH, -12 ,date_col)*
If u want to show at grand total level
Go with combine with similar request
same as u mentioned (1st criteria)
date_col, month, use the above formula (2nd criteria)
try this and let me know
Thanks,
Saichand.v
Edited by: Saichand Varanasi on Oct 7, 2010 7:27 PM -
Divide a column by the Sum of the Column
Hi!
I have a challenge in dividing a column by the total of that same column. What I wan to archive is first check if a column is zero before dividing by the total of the column and then multiply by 100 to get the percentage of total contribution.
Below is a sample image. I equally will want to round up to 2 decimal places. As it below, the percentage contribution column is derived from the CountOfProduct column
Thanks so much for the help
ZionliteUse the SUM() OVER() window function, e.g.:
DECLARE @tablename TABLE
product VARCHAR(30) ,
category INT ,
prodcnt INT
INSERT INTO @tablename
VALUES ( 'PROD1', 1, 11 ),
( 'PROD2', 1, 10 ),
( 'PROD3', 2, 13 ),
( 'PROD4', 2, 40 ),
( 'PROD5', 3, 1 );
SELECT O.product ,
O.category ,
O.prodcnt ,
1.0 * O.prodcnt / ( SELECT SUM(I.prodcnt)
FROM @tablename I
FROM @tablename O;
SELECT O.product ,
O.category ,
O.prodcnt ,
1.0 * O.prodcnt / SUM(O.prodcnt) OVER ( )
FROM @tablename O;
SELECT O.product ,
O.category ,
O.prodcnt ,
1.0 * O.prodcnt / ( SELECT SUM(I.prodcnt)
FROM @tablename I
WHERE O.category = I.category
FROM @tablename O;
SELECT O.product ,
O.category ,
O.prodcnt ,
1.0 * O.prodcnt / SUM(O.prodcnt) OVER ( PARTITION BY O.category )
FROM @tablename O;
Data by
Prashanth.
Caveat: For further processing avoid to formatting of the fraction to percent. Do this in the front-end. -
How to calculate the sum of the values of some columns of a table
hi
i want to get in the column averages just the average of the values of some columns not all the columns of the table.what i have to change exactly in this block diagram.even if the size of the table is 25,i want the division to be the number of values in each column(= number of rows)
just like that:
Solved!
Go to Solution.
Attachments:
operations on some columns.vi 10 KBi did exactely what u told me, i think i missed something because i don't get the average value of the rows i want
Attachments:
average.vi 11 KB -
"For explaination , like this
1 1 1 1 1 1 1 ....... to 640
+2 2 2 2 2 2 2 .......
+3 3 3 3 3 3 3 .......
=6 6 6 6 6 6 6 ....... this is the final 1D array of summed elements."
Appreciate the sample VI's but I can't open them ( I have Labview 5.01 )Here is Mikael solution, expanded to include rows and ready to use as a subVI. Now all is needed is the polymorphic version
www.vartortech.com
Attachments:
Sum_rows_or_colums.vi 25 KB -
Query to grab the sum and the most recent values?
hi,
Just wondering if its possible to have a query on the temp table,
which fetches school,most_recent(sub1),sum(sub2),sum(sub3) group by school
table temp
SCHOOL DATE1 SUB1 SUB2 SUB3
ABC 01-AUG-07 1 5 6
ABC 02-AUG-07 2 5 6
ABC 03-AUG-07 3 5 6
ABC 04-AUG-07 4 5 6
ABC 05-AUG-07 5 5 6
XYZ 01-AUG-07 6 7 8
XYZ 02-AUG-07 7 7 8
XYZ 03-AUG-07 8 7 8
XYZ 04-AUG-07 9 7 8
XYZ 05-AUG-07 10 7 8
Just wondering if its possible to have a query on the temp table,
which fetches school,most_recent(sub1),sum(sub2),sum(sub3)
required output
SCHOOL SUB1 SUB2 SUB3
ABC 5 25 30
XYZ 10 35 40
thanksI think you want this:
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-12-1981 950 30
7902 FORD ANALYST 7566 03-12-1981 3000 20
7934 MILLER CLERK 7782 23-01-1982 1300 10
7876 ADAMS CLERK 7788 12-01-1983 1100 20
4 rows selected.
real: 63
SQL>select * from emp order by deptno;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 09-06-1981 2450 10
7839 KING PRESIDENT 17-11-1981 5000 10
7934 MILLER CLERK 7782 23-01-1982 1300 10
7369 SMITH CLERK 7902 17-12-1980 800 20
7876 ADAMS CLERK 7788 12-01-1983 1100 20
7902 FORD ANALYST 7566 03-12-1981 3000 20
7788 SCOTT ANALYST 7566 09-12-1982 3000 20
7566 JONES MANAGER 7839 02-04-1981 2975 20
7499 ALLEN SALESMAN 7698 20-02-1981 1600 300 30
7698 BLAKE MANAGER 7839 01-05-1981 2850 30
7654 MARTIN SALESMAN 7698 28-09-1981 1250 1400 30
7900 JAMES CLERK 7698 03-12-1981 950 30
7844 TURNER SALESMAN 7698 08-09-1981 1500 0 30
7521 WARD SALESMAN 7698 22-02-1981 1250 500 30
14 rows selected.
real: 141
SQL>select * from emp a
2 where a.hiredate in (select max(b.hiredate)
3 from emp b
4 group by b.deptno
5 );
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-12-1981 950 30
7902 FORD ANALYST 7566 03-12-1981 3000 20
7934 MILLER CLERK 7782 23-01-1982 1300 10
7876 ADAMS CLERK 7788 12-01-1983 1100 20
4 rows selected.HTH
Ghulam
Maybe you are looking for
-
I can log into iTunes and App Store but NOT iMessage. What gives?
I'm currently using Wifi with my 3rd gen iPad. iOS 6.0.1. I'm not home so I don't have access to my iMac (actually currently at 30k ft somewhere over Virginia :) ). Anyway, I can log into iTunes, access the App Store, sign out of those, log back in.
-
External Links in KM Repository
Hi, How to create external links in KM repository in Web Dynpro Java application? Thanks Sundar
-
How to implement custom methods on form submit
I'm a newbie to ADF environment, coming from pl/sql world. I have already tried default drag and drop functionality for forms. But, with new requirements, I need to write some custom code to create and update form. I read about managed beans, but did
-
Select/Update taking far too long to run, how can I get it to go faster?
Hello all, I am trying to do an update/select on a table that returns 16 million records. So far most of the time it takes forever to complete or never finishes. Initially I was trying to do it as one big select, but when that didnt work, i broke it
-
everytime i try to log in to gmail an alert comes up that says that there is an unsecure certifcate-the 1st for google that said it expired in 2009 and the next for mozilla that said it expired in 2010 and it won't let me enter into my gmail account