How to calculate total child of screen?
<?xml version='1.0' encoding='UTF8'?>
<data>
<screen id="" title="">
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
</screen>
</data>
I tried following code, but it's not working
var rows:XMLList = temp_xmldata.children();
trace(rows.length);
It's probably not working because temp_xmldata is not what i assumed it would be.
So now we'll assume temp_xmldata is the entire xml example you posted:
var temp_xml_data:XML =
<data>
<screen id="" title="">
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
<row>110011101</row>
</screen>
</data>;
var rows:XMLList = temp_xml_data.screen.row;
trace(rows.length())
Similar Messages
-
How to calculate totals in Blocked ALV Report
Hi All,
Can any body tell how to calculate totals & sub totals in
Blocked ALV Report[Blocked List].
Thanks in advance
Thanks & Regards,
Rayeezuddin.read this it might help
Sums
15. No_sumchoice(1) TYPE c : This parameter allows the choice for summing up
Only by fieldcatalog.
Value set: SPACE, 'X'
'X' = fields which are to be summed, passed by the calling program (FIELDCAT-DO_SUM = 'X'). The user should not be able to change this value interactively.
16. No_totalline(1) TYPE c : Removes the option of having totals after sub-totals.
Value set: SPACE, 'X'
'X' = no total record is to be output. Subtotals can still be calculated and output. The fields in the subtotals are flagged DO_SUM = 'X' in the field list.
17. No_subchoice(1) TYPE c : Does not allow the user to interactively change the field chosen for subtotals.
Value set: SPACE, 'X'
'X' = value whose change triggers subtotals, provided by the calling program. The user should not be able to change this value interactively.
18. No_subtotals(1) TYPE c : No subtotals possible
Value set: SPACE, 'X'
'X' = no subtotals.
19. Numc_sum(1) TYPE c : Totals only possible for NUMC-Fields.
20. No_unit_splitting TYPE c: No separate total lines by inh.units
21.totals_before_items TYPE c: Display totals before the items
22. Totals_only(1) TYPE c : Show only totals
Value set: SPACE, 'X'
'X' = only total records are output.
23. Totals_text(60) TYPE c : Text for 1st col. in totals
Value set: SPACE, string (max.60)
' ' = The first column in the total record contains an appropriate number of '*'s to indicate the total by default. If the first column is wide enough, the string 'Total' is output after the asterisks.
'String = The string passed is output after the total indicated by '*', if the column is wide enough.
24. Subtotals_text(60) TYPE c : Texts for subtotals
Value set: SPACE, string (max.60)
' ' = In the first column of subtotal records, the subtotal is indicated by an appropriate number of '*' by default. If the first column is not a subtotal criterion, the string 'Total' is output after the asterisks, if the column is wide enough.
'String = the string passed is output after the subtotal indicated by '*', if the column is wide enough and the first column is not a subtotal criterion. If it is a subtotal criterion, its value is repeated after the total, if the column is wide enough.
ELSE TELL ME I WILL PASTE COMPLETE HELP
regards -
How to calculate total number of pages in a script
hi
how to calculate total number of pages in a scriptJyothsna,
Date:-&sy-datum&
Time:-&sy-timlo&
Total No.of Pages:-&sapscript-formpages&
Page No:-&PAGE&/&SAPSCRIPT-FORMPAGES&
Give the above said lines in your text editor,and given the paragraph format.Better create one more window and give the above said lines in the text editor.
K.Kiran. -
How to calculate total no of days in List column
Hi,
I've start date and end date. Can you please help me how to calculate total number of days.
Column Name = Leave Start Date (05/02/2015)
Column Name = Leave End Date (19/02/2015)
Column Name = Total Days (This is calculated column)
I used below formula but its showing only 14 days however it should show 15 days
=DATEDIF([Start Date], [End Date],"d")
Thanks,I got the answer
Formula is
=DATEDIF([Start Date], [End Date]+1,"d")
Thanks.:) -
How to calculate total for field for particular day. in smart forms
hi,
pls help in this problem,
how to calculate cumulative totals for the particular field in samrtformsHi ,
Either you can calculate the sum in driver program with
Loop at where Condition .
Sum the required field .
endloop .
Then pass it to smartforms
Or
Double Click on table node .
In the conditions tab give the required condition .
select calculation tab.
In operation select Total , in field name give the name of the field you want to sum
and in targer field name specify the name of the field that should contain the result .
To convert the total in to words use the function module in program lines
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = w_total
IMPORTING
AMT_IN_WORDS = w_total_words
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
Regards -
How to calculate total time of mouse movement
Hi Everyone.
I am doing project on gesture recognition with touchpad. I need to find out the total time of completion of gesture on touchpad. For that I need to calculate total time of cursor movement on laptop touchpad. When cursor starts moving, that time I need to capture time and when it stops also. I need to find out difference between the start time and stop time. Please help me to do this task. Presently I am trying with event structure and timed structure but I am getting only present time only. I tried with counter but unable to get the difference.I missed the mouse move event when I saw this earlier, and for some reason I thought the first attempt would give you what you wanted.
Here is a different VI. It uses mouse move event with some logic that remembers the first mouse move event. Otherwise, you won't get the correct time.
Attachments:
Mouse Move Time.vi 11 KB -
Hello Good Evening,
Could you please help me here
how to write condition for self table year records, such 2012 name and acctno match with 2013 name and acctno then total, provided below,
create table #tab1 (MasterKey int, AcctNo varchar(12),name varchar(25), SumaofShares numeric, request_dat datetime )
--drop table #tab1
insert into #tab1 values (1000, 100,'Tom', 2500, '10/01/2012')
insert into #tab1 values (1001, 101,'Bat', 1550, '08/11/2012')
insert into #tab1 values (1002, 102,'Kit', 1600, '06/12/2012')
insert into #tab1 values (1003, 103,'Vat', 1750, '04/15/2012')
insert into #tab1 values (1010, 104,'Sim',200, '04/21/2013')
insert into #tab1 values (1011, 105,'Tim',500, '06/18/2013')
insert into #tab1 values (1012, 100,'Tom',800, '08/22/2013')
insert into #tab1 values (1013, 101,'Bat',550, '09/15/2013')
insert into #tab1 values (1014, 100,'Pet',200, '02/21/2013')
insert into #tab1 values (1015, 103,'Vat',150, '03/18/2013')
insert into #tab1 values (1016, 110,'Sun',800, '03/22/2013')
insert into #tab1 values (1017, 111,'Bet',550, '12/15/2013')
insert into #tab1 values (9999, 111,'AAA',110, '12/15/2014')
create table #tab2 (IssueKey int, totalOutstanding numeric, sharedBenefits varchar(1) )
--drop table #tab2
insert into #tab1 values (1000, 500, 'V')
insert into #tab1 values (1001, 150, 'U')
insert into #tab1 values (1002, 100, 'N')
insert into #tab1 values (1003, 170, 'U')
insert into #tab1 values (1010, 100, 'U')
insert into #tab1 values (1011, 200, 'K')
insert into #tab1 values (1012, 340, 'U')
insert into #tab1 values (1013, 560, 'N')
insert into #tab1 values (1014, 280, 'V')
insert into #tab1 values (1015, 150, 'V')
insert into #tab1 values (1016, 840, 'V')
insert into #tab1 values (1017, 530, 'N')
i would like to get 4 columns output
how to get sumofshares (#tab1) and TotalOutStanding(#tab2) summ up with these values please.,
MasterKey (#tab1) and IssueKey (#tab2) are like primary key and foreign key
so the request is
need to calculate, sumofshares (#tab1) and TotalOutStanding(#tab2) as below
1)ShareBenefist = U and year( request_dat) in (2012 , 2103) and (Name for 2012 should match with 2013 name and 2012 Acctno should match with 2013 accounno) in (#tab1)
then '2012 and 2013 accts UN Veriverted'
2)ShareBenefist = V and year( request_dat) in (2012 , 2103) and (Name for 2012 should match with 2013 name and 2012 Acctno should match with 2013 accounno) in (#tab1)
then '2012 and 2013 accts Veriverted'
3)ShareBenefist = N and year( request_dat) in (2012 , 2103) and (Name for 2012 should match with 2013 name and 2012 Acctno should match with 2013 accounno) in (#tab1)
then '2012 and 2013 accts NONVERT'
4)year( request_dat) =2102 and Name and Acctno not match with 2013 account name and acctno (#tab1)
then '2012 last year accounts'
5)year( request_dat) = 2013 and Name and Acctno not match with 2013 account name and acctno (#tab1)
then '2012 This year accounts'
for ex 1) the below accounts in #tab1 has both 2012 and 2013 and acctno same in both years and name is same in both years so it is condired as
insert into #tab1 values (1012, 100,'Tom',800, '08/22/2013')
for ex 2)
insert into #tab1 values (1013, 101,'Bat',550, '09/15/2013')
for ex 4) 2012 records there is not match acctno and name in 2013 recods
insert into #tab1 values (1002, 102,'Kit', 1600, '06/12/2012')
for ex 5) 2013 records there is no match of name and acct no with 2012 records
insert into #tab1 values (1010, 104,'Sim',200, '04/21/2013')
insert into #tab1 values (1014, 100,'Pet',200, '02/21/2013')
insert into #tab1 values (1016, 110,'Sun',800, '03/22/2013')
insert into #tab1 values (1017, 111,'Bet',550, '12/15/2013')
Expected Results (just for format)
AcctTypeDescription, SumofShares, OtotalutStand
'2012 and 2013 accts UN Veriverted',2700,234
'2012 and 2013 accts Veriverted' ,2890,234
'2012 and 2013 accts NONVERT' ,4533,325
'2012 last year accounts' ,2334,567
'2012 This year accounts' ,2222,877
Please
Thank youy in advance
asitaAs I understand it, your sample output was only to show the format, and did not pretend to be give the exact result given the sample data. This is pity, because means that I was not able to verify that my query below gives the desired result.
The exact relation between #tab1 and #tab2 is not clear to me. I'm making the assumption that a row in #tab1 may have zero or one row in #tab2, but not many.
My solution has two CTEs. The first simply joins the tables together and extracts the year. In the second CTE, I perform a self-join over the first CTE which I have divided in two by year. This is a full join, since an account may appear for only one of
the year. Note that it is instrumental to extract the year data in inner queries first.
The final query is just an aggregation over the categories.
create table #tab1 (MasterKey int, AcctNo varchar(12),name varchar(25), SumaofShares numeric, request_dat datetime )
--drop table #tab1
insert into #tab1 values (1000, 100,'Tom', 2500, '10/01/2012')
insert into #tab1 values (1001, 101,'Bat', 1550, '08/11/2012')
insert into #tab1 values (1002, 102,'Kit', 1600, '06/12/2012')
insert into #tab1 values (1003, 103,'Vat', 1750, '04/15/2012')
insert into #tab1 values (1010, 104,'Sim',200, '04/21/2013')
insert into #tab1 values (1011, 105,'Tim',500, '06/18/2013')
insert into #tab1 values (1012, 100,'Tom',800, '08/22/2013')
insert into #tab1 values (1013, 101,'Bat',550, '09/15/2013')
insert into #tab1 values (1014, 100,'Pet',200, '02/21/2013')
insert into #tab1 values (1015, 103,'Vat',150, '03/18/2013')
insert into #tab1 values (1016, 110,'Sun',800, '03/22/2013')
insert into #tab1 values (1017, 111,'Bet',550, '12/15/2013')
insert into #tab1 values (9999, 111,'AAA',110, '12/15/2014')
create table #tab2 (IssueKey int, totalOutstanding numeric, sharedBenefits varchar(1) )
--drop table #tab2
insert into #tab2 values (1000, 500, 'V')
insert into #tab2 values (1001, 150, 'U')
insert into #tab2 values (1002, 100, 'N')
insert into #tab2 values (1003, 170, 'U')
insert into #tab2 values (1010, 100, 'U')
insert into #tab2 values (1011, 200, 'K')
insert into #tab2 values (1012, 340, 'U')
insert into #tab2 values (1013, 560, 'N')
insert into #tab2 values (1014, 280, 'V')
insert into #tab2 values (1015, 150, 'V')
insert into #tab2 values (1016, 840, 'V')
insert into #tab2 values (1017, 530, 'N')
go
WITH joined AS (
SELECT a.MasterKey, a.AcctNo, a.name, a.SumaofShares,
year(a.request_dat) AS year, b.totalOutstanding, b.sharedBenefits
FROM #tab1 a
LEFT JOIN #tab2 b ON a.MasterKey = b.IssueKey
), categories (category, sumofshares, totaloutstanding) AS (
SELECT CASE WHEN A.MasterKey IS NOT NULL AND
B.MasterKey IS NOT NULL
THEN '2012 and 2013 accts ' +
CASE B.sharedBenefits
WHEN 'U' THEN 'UN Veriverted'
WHEN 'V' THEN 'Veriverted'
WHEN 'N' THEN 'NONVERTED'
ELSE ''
END
WHEN A.MasterKey IS NOT NULL THEN '2012 last year accounts'
WHEN B.MasterKey IS NOT NULL THEN '2013 this year accounts'
END,
coalesce(A.SumaofShares, 0) + coalesce(B.SumaofShares, 0),
coalesce(A.totalOutstanding, 0) + coalesce(B.totalOutstanding, 0)
FROM (SELECT * FROM joined WHERE year = 2012) AS A
FULL JOIN (SELECT * FROM joined WHERE year = 2013) AS B
ON A.AcctNo = B.AcctNo
AND A.name = B.name
SELECT category, SUM(sumofshares) AS sumofshares,
SUM(totaloutstanding) AS totaloutstanding
FROM categories
GROUP BY category
go
drop table #tab1, #tab2
Erland Sommarskog, SQL Server MVP, [email protected] -
How to calculate total in multi-row block
How can I calculate and display the total amount in a multi-row
block that records are not yet save into database?
nullKanekan (guest) wrote:
: How can I calculate and display the total amount in a multi-
row
: block that records are not yet save into database?
Hi,
I worked with similar type of requirement. If you are
working with Forms5.0 there is a new property of formula/summary
in property palette of text item. In the same block or in
control block create non database item( It's non base table item
in forms4.5). In it's property palette give the data type as
number and set the source item name and set summary property.(
opetions are max,min,sum etc available). This value will change
when you navigate from the source item( I mean after validation).
I think this is informative.
Nag
null -
create table ITEM1(
LCONTID VARCHAR2(15 BYTE) NOT NULL,
ITEM1NUMBER VARCHAR2(13 BYTE),
UNITS VARCHAR2(10 BYTE),
DATELET DATE,
QTY Number(12,3),
BIDPRICE Number(13,5),
DESCR VARCHAR2(60 BYTE)
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100183 ', '2013601/00010', TO_DATE('07/23/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 95000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100183 ', '2013601/00010', TO_DATE('07/23/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 70000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100183 ', '2013601/00010', TO_DATE('07/23/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 77000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100024 ', '2013601/00010', TO_DATE('04/02/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 105000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100024 ', '2013601/00010', TO_DATE('04/02/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 125000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 13000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 19750);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 3140);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 20000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 25000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100037 ', '2013601/00010', TO_DATE('03/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 26445);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100020 ', '2013601/00010', TO_DATE('02/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 30000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100020 ', '2013601/00010', TO_DATE('02/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 33000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100020 ', '2013601/00010', TO_DATE('02/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 32000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100020 ', '2013601/00010', TO_DATE('02/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 58837);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('100020 ', '2013601/00010', TO_DATE('02/12/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 25000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 1726);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 2000);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 2400);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 2973.42);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 3500);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 2500);
Insert into ITEM1
(LCONTID, ITEMNUMBER, DATELET, DESCR, UNITS, QTY, BIDPRICE)
Values
('20100003 ', '2013601/00010', TO_DATE('01/22/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'SURVEY EQUIPMENT', 'LS ',
1, 4500);
COMMIT;
SELECT DISTINCT ItemNumber,
descr,
UNITS,
qty,
SUM (bidprice) OVER (PARTITION BY (lcontid)) bidPrice,
AVG (bidprice) OVER (PARTITION BY (lcontid)) avgb,
MIN (bidprice) OVER (PARTITION BY (lcontid) ) minb,
MAX (bidprice) OVER (PARTITION BY (lcontid))maxb,
COUNT (lcontid) OVER (PARTITION BY (lcontid) )COUNT
from item1
I would like to get one row of total amount of quantity, total price, and total count. if you run my query it returns 5 rows.
I am wondering how i can make a changes to the query to do that. I am working with oracle 10g
Edited by: 893601 on Mar 2, 2012 11:34 AMItemNumber lcontid Desc units quantiy bidprice count
2013601/00010 100183 SURVEY EQUIPMENT LS 1 148837 4
2013601/00010 100020 SURVEY EQUIPMENT LS 1 230000 2
2013601/00010 100037 SURVEY EQUIPMENT LS 1 107335 6
2013601/00010 100024 SURVEY EQUIPMENT LS 1 242000 3
2013601/00010 20100003 SURVEY EQUIPMENT LS 1 23099.42 8
desired output
ItemNumber Desc units quantiy bidprice count
2013601/00010 SURVEY EQUIPMENT LS 5 751271.42 23
bidprice = (148837 +230000 +107335 + 242000 +23099.42)= 751271.42
count = 4+2+6+3+8 = 23
as you can see the reason why I get 5 rows is because of the lcontid field. what i would like to do is to sum quantities and bid price and
count gives me the number of bidders for each contract (lcontid).
desired output
ItemNumber Desc units quantiy bidprice count
2013601/00010 SURVEY EQUIPMENT LS 5 751271.42 23
sorry for the typo. I really appreciate for your time -
How to calculate Total Price based on a sqm rate with different price points?
Hi,
I'm guessing this is a script solution but I've never done any scripting so though I'd ask you guys...
I have a form where I'd like to calculate the total price of some carpet based on the price per sqm.
- The user enters the carpet quanitity required.
- There are different price points for 1-20, 21-60, 61+sqm (each with their own hidden fields containing the price value).
- The Total Price field assesses the quantity ordered, and multiplis it by the relevant square metre rate.
Is this achievable?
I'm guessing any solutions are placed into the "Custom Calculation Script" field too?
Thanks in advance!Yes. You can use something like this as the custom calculation of the total price field (you might need to adjust the field names):
var sqm = Number(this.getField("SQM").value);
var rate = 0;
if (sqm>0 && sqm<=20) rate = Number(this.getField("Rate1").value);
else if (sqm>20 && sqm<=60) rate = Number(this.getField("Rate2").value);
else if (sqm>60) rate = Number(this.getField("Rate3").value);
event.value = sqm * rate; -
How To calculate Total Number of Employee in shift wise
Dear Gurus,
my requirement is calculate the total no.of employees present & absent in shift wise.
My output like this.
Department Shift Present Absent
Information Technology GSFT 56 24
Engine Shop ASFT 124 26
BSFT 155 45
CSFT 80 20
Thanks,
Rajkumar.AHi,
You can make a custom report for this.
If you want to know generally there is a head count report available in OM -
How to calculate total no of customers
Hi All,
I have created an infoset using 0SOLD_TO Infoobject and a customized z cube (based on SAP table VBRP). I have to create a report that can show total no of customers and no of customers with invoices.
How can i do that?
Please respond.
Kind Regards,
AI.Hi,
you can make use of counter to know the total no,.of customere.
this can be achieved at reporting level or modeling level as well;
Modeling level
Just make one characterstic and assign a value constant 1..It wil give count 1 against each customer,then at query level u can show the total count.
Same thing can be achieved at query level also.
Just make one formula and put 1 then hit aggragation tab--> exception aggregatin count of all values and refernce charactersitc as customer.
Hope it gives you some idea.
Regards,
AL -
How to calculate total stock quantity in cube
Dear Master
I want to verify the data between BI report and cube whether correct or not.My report name is stock summary. It's giving report for Total quantity stock (0TOTALSTCK) for paricular date. This KF(0TOTALSTCK) inflow is 0RECTOTSTCK and outflow is 0ISSTOTSTCK. Somebody telling to get the Total quantity stock (0TOTALSTCK) value, I have to use following formula 0RECVS_VAL (Value Received into Valuated Stock) - 0ISSVS_VAL (Value issued from valuated stock). Please advice me which formula should I use to get the total stock quantity?.
Thanks a lot in advance
RajaPlease let met understand better, you have the following keyfigures:
- Receipts (Cumulative)
- Issues (Cumulative)
- Difference (Cumulative) populated during URules = Receipts - Issues (any routine with elaborated calculation behind?
- Stock (non-cumulative InFlow = Receipts, OutFlow = Issues)...
Is this correct?
Olivier. -
How to calculate Total Shipping Volume in Sales Order ?
Hello,
Please give me suggestion for calculating Total Shipping Volume or Total Shipping Quantity in Sales Order.
And suggest if there is any existing report available to get “Total Shipping Volume”.
Thank You.
Regards,
MeghanaHi,
Thanks for your reply.
I am not asking of account assignment group for material.
My problem is when i am creating Sales Order at item level in Account assignment category there is one field for Fund Mangement account assignment grp.
I want to activate this field and i have to enter FM area in that field.
Plz send some solution for the same.
Thanks & regards,
Pankaj -
How to calculate total value in categories?
I know Numbers let you do subtotal in categories.
However at the end of the table, i want a nice total value in a single row that is not in under any category.
For example, Number's Home Inventory Template, when you want open a new file.
It has Master bedroom category and living room category with subtotals for each and total value below both categories. The total value itself is not in under a specific category. Note that C11 is blank yet Numbers does not create another category from that cell.
The sum formula is pretty simple too in that file. =SUM(total replacement value). However when i tried that, it includes its own cell and giving me error message.
i hope my question make sense. Please help. THANKS!Brownie,
You appear to be asking about an iOS device in the OSX iWork discussion, but this answer by work for you anyway. Note that the formula in the Total Replacement Value column Footer row is: =SUM(J)
Since the totals row, Row 12, is a Footer Row, a special type of row in Numbers, it isn't included in the sum. That's handy because then you can use =SUM(J) without row 12 being included in the range. If you explicitely include Row 12 in the SUM expression, you will get an error. For example, =SUM(J2:J12) written in J12 will fail.
Jerry
Maybe you are looking for
-
HOW TO IMPROVE PERFORMANCE ON SUM FUNCTION IN INLINE SQL QUERY
SELECT NVL(SUM(B1.T_AMOUNT),0) PAYMENT,B1.ACCOUNT_NUM,B1.BILL_SEQ FROM SELECT P.T_AMOUNT,P.ACCOUNT_NUM,P.BILL_SEQ FROM PAYMENT_DATA_VIEW P WHERE TRUNC(P.ACC_PAYMENT_DATE) < '01-JAN-2013' AND P.CUSTOMER_NAME ='XYZ' AND P.CLASS_ID IN (-1,1,2,94) ) B1 G
-
Hello, when I connect my macbook pro to my TV with mini disply to DVI cable, the laptop cannot connect to internet. When I disconnect it with TV, internet works fine again. could anyone help me out?
-
Differences between application export files
Hello Background: I want to check if an application in DEV environment is exactly the same as the one in TEST environment. Both envs have Apex version 3.0.0.00.20, on Oracle EE 10g. To do this, I exported the application from both environments and I
-
How to get stuff from Performa HD to newer computer?
I was surprised (well, stunned) to find that a friend has a Performa and wants to get his files off the 160 MB hard drive to an iBook or something. I don't know the model number, but it looks like the only potentially useful ports they had were SCSI.
-
Problem with mission control after 10.7.2 update
After I updated to 10.7.2, when I swipe into mission control then select a different app with the spacebar then swipe back out of mission control, the menu bar on the top does not switch to the new app, it stays as the previous open app. But, if I cl