How can I subtract in formcalc sum(amount[0],amount[1],amount[2])
How can I subtract amount[3] from this sum? sum(amount[0],amount[1],amount[2])
sum(amount[0], amount[1], amount[2]) - amount[3]
Kyle
Similar Messages
-
How can i subtract budget and actuals amount from gl_balances in discoverer
I have a problem with a discoverer report.
The table is GL_BALANCES (Financials), and i tried to subtract data of current year and last year, same month, or data from actuals and budgets amounts.
Data from actuals have the "A" code in the ACTUAL_FLAG field, and budgets amounts have a "B" code. I construct a cross-tab report with ACTUAL_FLAG field in the "X" axis and the accounts segments in the "Y" axis (From GL_CODE_COMBINATIONS). The problem is: How can i substract budget and actuals amounts? Is the same field but differents columns in report.
I cannot use analytics function because the version of database does not support that .
Somebody told me: "...You need to construct a custom folder to handle this..."
I don't want to finish the reports in Excel...
Thanks.Hi Miguel
You can either create a database view or custom folder to do this using aliases for the two joins to the same table.
For example, you need something like this in the body of the SQL:
select
act.code_combination_id,
nvl(act.period_net_dr,0) actual_net,
nvl(bgt.period_net_dt,0) budget_net,
nvl(bgt.period_net_dt,0) - nvl(act.period_net_dr,0) diff,
act.period_name
from
gl_balances act,
gl_balances bgt
where
act.set_of_books_id = bgt.set_of_books_id and
act.code_combination_id = bgt.code_combination_id and
act.period_name = bgt.period_name
Of course you will still need to add your own joins to get the code combinations but I trust you get the gist.
Hope this helps
Regards
Michael -
How can I change a check sum in a tabular form
How can I change a check sum in a tabular form?
I have added an extra field and now get an error when updating because I need to change the check sum, how do you do it?Question asked and answered many times !
Insert a section break just before the page to move.
Insert a section break just after the page to move.
Select the page's thumbnail
cut
Insert a section break where you want to insert the page.
paste
The required infos are available in Pages User Guide which isn't delivered to help helpers to help you.
Yvan KOENIG (VALLAURIS, France) mercredi 5 octobre 2011 14:33:24
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
How can we remove asterix from the amount
i have problem wen i am trying to get amount it uis coming in this manner
***100000**
how can i remove it
pls let me knowHere is one logic:
data text type string.
text = '**1000**'.
replace all occurrences of '*' in text with ''.
write text.
Check out this link too:
do not want asterix to be padded in left of currency value..
Hope it helps you. -
HT1918 how can I cancel a monthly gift amount?
I need to cancel a reoccuring gift in itunes. It is for $10 ea. month. I no longer want this to occur.
Hello there, jenifern.
The following Knowledge Base article refers to iTunes Store Allowances and how to cancel it:
iTunes Store Allowance
http://support.apple.com/kb/ht2105
Manage allowances
Select View Account from the Store pull-down menu. You can view, change the monthly amount, suspend, and cancel any established allowances on your Account Information page.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
How can i subtract two numeric numeric numbers from two switch cases ?
I have two switch cases in my labView program. I can see them individually on front panel but i need to subtract them and see the result on front panel.
Can someone please help me out...
I am trying to display (Result1 - Result 2) on my front panel. Result1 and Result2 will change with time.
Regards,
Awais
Attachments:
play4.vi 122 KBMove result 1 and result 2 out of the case structures and subract them.
Right now result 1 or result 2 only get written to if its respective comparison is true. What do you want to do with the math if either comparison is false? You haven't defined your problem clearly enough. -
How can I do a user controlled amount of subvi instances?
Hello!
I'm trying to write a dynamic application where the user can control which sub-vis get selected to run in parallel. The problem I am having is that each sub-vi has it's own never ending while-loop, and that the execution of the first one prevents the execution of others. See the example attached.
Now I know at first glance you may say, "Why use the for-loop? Why not just have the two knobs control seperate conditional statements instead of an array that controls a single conditional inside a for-loop?" The answer to that is because in my application, the size of the Control array that spawn sub-vis gets selected by them also!* So I'm trying to take advantage of the for-loop's auto-indexing ability to spawn as many sub-vi instances as there are knobs in the Control array.
An alternative I thought of was to simply execute all the sub-vi's, and have the Control array simply select the correct outputs (outputs not demonstrated in the example attached), but I am running this in Real-Time on a FieldPoint unit, and the processor overhead of running all the sub-vi's that are not necessary will hurt my performance.
If you can understand the problem I am presenting (I may not be completely clear) and have a better way to spawn sub-vi's with internal while loops controlled by an array , I'd appreciate your help!
Thank You
*I'm doing this because the job I am working on will need to be modifiable after my contract is over, and the potential of expansion after I am gone is highly desired my my employer. Sure, I'd rather be rehired to change the code everytime changes are needed, but that's obvously not the best solution for my employer.
Attachments:
one_selected.vi 13 KB
example.vi 18 KB
zero_selected.vi 14 KBAwesome. I'll do that!
-
In the following sql, i need to subtract nvl(m.evaluation_rights,0) from ooc.installs (which is found in the subquery)
i continually get an error ORA01722, invalid number
select m.model||CHR(9)||
m.ej_sftwr_id||CHR(9)||
m.ej_sftwr_lic_ty_txt||CHR(9)||
m.ej_technology_owner||CHR(9)||
m.ej_technology_monitor||CHR(9)||
m.ej_appl_own_empl_id||CHR(9)||
ooc.installs||CHR(9)||
nvl(m.evaluation_rights,0)||CHR(9)||
ooc.installs-nvl(m.evaluation_rights,0) <--------my attempt at subtracting
from modelm1 m,
(select ej_sftwr_id, count(*) installs
from computer r
where ej_sftwr_id like '1%'
group by ej_sftwr_id) ooc
where ooc.installs>nvl(m.evaluation_rights,0)
and ooc.ej_sftwr_id=m.ej_sftwr_id
order by m.model;
any help would be greatly appreciatedIf you're sure to have only number in your columns :
SQL> select ename||sal-nvl(comm,0) from emp
SQL> /
select ename||sal-nvl(comm,0) from emp
ERROR at line 1:
ORA-01722: invalid number
Elapsed: 00:00:00.07
SQL> select ename||to_number(sal-nvl(comm,0)) from emp
SQL> /
ENAME||TO_NUMBER(SAL-NVL(COMM,0))
SMITH800
ALLEN1300
WARD750
JONES2975
MARTIN-150
BLAKE2850
CLARK2450
SCOTT3000
KING5000
TURNER1500
ADAMS1100
JAMES950
FORD3000
MILLER1300
14 rows selected.
Elapsed: 00:00:00.00
SQL> Nicolas. -
[Solved] How can i calculate all possible sums of an int array?
Hi,
i can't figure out the algorithm for that:
e.g. array=1,2,3,..n => P1=1+2,P2=1+3,P3=2+3,P4=1+2+3,...
For a program language i use Java.
thanks.
Last edited by br4 (2008-12-10 15:23:40)Idea:
Let V be the array and N the number of elements in V. Computing "sum_number_P":
-> Assume the binary representation of P is: bN b(N-1) ... b3 b2 b1 (where bJ = "bit number J", bN = MSB, b1 = LSB).
=> sum_number_P = bN * V[N - 1] + b(N-1) * V[N - 2] + ... + b1 * V[0]
Now compute sum_number_1, sum_number_2, .... sum_number_(2^N - 1)
An example: Let V = { 1, 2, 3 } ; N = 3.
sum_number_1:
-> 1 = 001 (in base 2)
=> sum_number_1 = 0 * V[2] + 0 * V[1] + 1 * V[0] = 0 * 3 + 0 * 2 + 1 * 1 = 1
sum_number_2:
-> 2 = 010 (in base 2)
=> sum_number_2 = 0 * V[2] + 1 * V[1] + 0 * V[0] = 0 * 3 + 1 * 2 + 0 * 1 = 2
sum_number_3:
-> 3 = 011 (in base 2)
=> sum_number_3 = 0 * V[2] + 1 * V[1] + 1 * V[0] = 0 * 3 + 1 * 2 + 1 * 1 = 3
sum_number_(2^3 - 1) = sum_number_7:
-> 7 = 111
=> sum_number_7 = 1 * V[2] + 1 * V[1] + 1 * V[0] = 1 * 3 + 1 * 2 + 1 * 1 = 6
Last edited by string (2008-12-08 16:46:47) -
How can I subtract a percentage?
Is there a way to subtract percentages? Here is an example of
what I need to do: 138 - 5% = 131.1
Some of what I have is...
<cfset HDQty = 6>
<cfset HDSAmplePrice = #getSamplePrice.HDPrice#>
<cfset HDSubTotal = #HDQty# * #HDSAmplePrice#>
<cfset HDDiscount = #getDiscount.DiscountAmt#>
This is where I don't know what to do, obviously if I just
subtract the discount it minuses 5 not 5%
<cfset HDTotal = #HDSubTotal# - #HDDiscount #>
Any and all help is greatly appreciated!!!quote:
Originally posted by:
ICSchaef
Is there a way to subtract percentages? Here is an example of
what I need to do: 138 - 5% = 131.1
Any and all help is greatly appreciated!!!
Write it out manually first.
138 - (138 * .05)
Then convert it to code. -
HT2736 How can I check the amount of a gift card
I purchased several gift cards , now I don't know what the amounts are. How can I get a card balance amount.
Unless the card's have their amounts written on them then the only way to know their values is to redeem them onto an account.
If you've already redeemed the card then the card is now zero, anything that you haven't spent should be on your account -
I want to check purchases with my visa card instead of my apple id. how can i do that?
i think my visa card being used by another apple id..
how can i check purchases frm my visa card instead of apple ID.I got the statement that amount paid to
Apple itunes.
How can i check for which application amount
Has been paid? -
Hi All,
can anybody tell me how can i remove this massage.
Amount is zero - line item will be ignored.
Thanks In advance
MuraliHi,
The message can be deactivated from the below customzing settings
- SPRO - Financial Accounting -Financial Accounting Global Settings-Document-Default Values for Document Processing--Change Message Control for Document Processing
Application area - F5 Click new netries
Messgage No 097
And in the online and batch columns select ' -' switch off message and save the same
after this change, the system will not throw that error message.
hope this clarifies
regards,
radhika
Edited by: kolipara radhika on Sep 18, 2008 8:27 AM -
How can I sum all the amount per line?
HI,
How can I sum all the amount per line?
EXAMPLE:
[code]
TOTAL:
1,000 2,000 5,200 $8,200
400 1,200 6,000 7,600
[/code]
THANKS!!If you are sure of the number of columns that you are gonna get then you can add them to a variable and display.
total = itab-col1 + itab-col2 + itab-col3.
If you dunno how many columns will come , you have to use field symbols.
Say the datatabse table has 16 columns which will contain your price and you have to calculate the sum of all those , then assign them to field symbols and calculate.
Have a look at the following code.
FORM GET_VALUES_FROM_COSS .
FIELD-SYMBOLS: <FS1> TYPE ANY.
DATA: V_COMPONENT1 TYPE I.
V_COMPONENT1=31. " your field of table from which amount field starts
Cumulate the posting values of all the 16 period buckets as to get
total production order cost. This is to handle the partial posting of
production order values in different periods.
DO 16 TIMES.
ADD 1 TO: V_COMPONENT1.
ASSIGN COMPONENT V_COMPONENT1 OF STRUCTURE COSS TO <FS1>.
IF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR1.
ADD <FS1> TO I_FINAL-PL_LABCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR1.
ADD <FS1> TO I_FINAL-ACT_LABCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR2.
ADD <FS1> TO I_FINAL-PL_MATCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR2.
ADD <FS1> TO I_FINAL-ACT_MATCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR3.
ADD <FS1> TO I_FINAL-PL_OPCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR3.
ADD <FS1> TO I_FINAL-ACT_OPCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR4.
ADD <FS1> TO I_FINAL-PL_FACCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR4.
ADD <FS1> TO I_FINAL-ACT_FACCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR5.
ADD <FS1> TO I_FINAL-PL_LABCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR5.
ADD <FS1> TO I_FINAL-ACT_LABCOST.
ELSEIF COSS-WRTTP EQ '05'.
ADD <FS1> TO I_FINAL-OTHER_PL_COST.
ELSEIF COSS-WRTTP EQ '04'.
ADD <FS1> TO I_FINAL-OTHER_ACT_COST.
ENDIF.
ENDDO.
ENDFORM. " GET_VALUES_FROM_COSS
Let us know if u need more inputs -
How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
For Example:
SHEET 1
A
B
$50
Dinning Room
$800
Dinning Room
$300
Kitchen
$1,000
Master Bedroom
$100
Dinning Room
SHEET 2
Display the total SUM amount of each Project based on Sheet 1
Project Name
Total Cost
Dinning Room
$950
Kitchen
$300Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
The Guide is available for every user thru the Help menu.
Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
Please :
Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Maybe you are looking for
-
Execute Javascript on load in OBIEE 11g
Hi , Is there any way where we can call javascript function as and when a page loads for all the dashboards without creating a text object in all the pages? Edited by: 938795 on Jun 13, 2012 7:37 AM
-
the program won't open. help
-
Screen Distortion (Horizontal lines) Across Display
For quite some time now my Macbook display has had horizontal lines along the right side of it. These lines go from the very top to the bottom and are about an inch or two in width. Sometimes goes away when i have a Pages document open. But is consta
-
How to use addBatch Method ?
Hi, I am using the Websphere Application server with DB2 version 7.2 in the backend and I am developing some JSP pages. When I tried using Batch Update functions like addBatch() and executeBatch() which will work only with JDBC 2.0 Drivers, It threw
-
When i will recive the ordered Recovery disk
Hi I have orderd ( at least ) a recovery cd through website with a prepayment amount, I transferd the cash through my bank since wednsday. How do i know if Toshiba recived the cash or not? and how i follow up with my shipment? My Order time 120100893