3 Step Formula
Hello,
When using Adobe X Standard to write formulas in the Custom Calculation Script field, can you create a 3 step formula? Basically I want for it to be v1+v2-v3=v4.
Thank you for your help!
You can specify the number of decimals for the "Number" format. Setting the "Decimals" to 2 will round up at 0.50 or greater and truncate for values below.
If you want the value of the field to be rounded, then you need to use the custom JavaScript calculation and use the 'util.printf" method or write a function to perform the task. JavaScript's "Math.round" method has a known issue.
To get both the rounding and the decimal alignment:
var v1 = Number(this.getField("v1").value);
var v2 = Number(this.getField("v2").value);
var v3 = Number(this.getField("v3").value);
var nResult = v1 + v2 - v3;
console.show();
console.clear();
console.println("nResult = " + nResult);
var sResult = util.printf("%,0 .0f", result)
console.println("sResult = " + sResult);
console.println("event.value = " + Number(sResult))
event.value = Number(sResult);
Similar Messages
-
BI 7.0 Workbook excel 2003 formula for comparision
Hello Friends I have a requirement to create a workbook in BI where I have 7 columns on left side of excel workbook and 7 columns on right side of excel workbook in the same sheet of workbook. so Requirement is to put the Code 0, 1, 2, 3,4,5,6
if column 1 on left match with column 1 on right and like that column 2 on left match with column 2 on right
But the below excel formula is not working it always give me 7 which is a false value even though the data in columns 1 & 1 match each other
Can u please suggest me the step by step formula or any VB Code that I can put to get this done. I am not good in VB so please tell me the exact steps. thanks for all sdn help
formula not working
=IF((E15=V15),0,IF((F15=W15),1,IF((G15=X15),2,IF((H15=Y15),3,IF((I15=Z15),4,IF((J15=AA15),5,IF((K15=AB15),6,7)))))))
Thanks
SoniyaI'm afraid I haven't made my question understood clearly.
What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
Please advice.
Thanks in advance,
Shady -
Hi All,
I want to create a final value based on the formula created from the table:
STEP
OPERATOR
VARIABLE
VAR_VALUE
1
A
10
2
0
B
20
3
4
C
30
5
D
40
6
7
0
E
50
8
-0
9
F
60
10
G
70
11
The Formula that i am creating is
SELECT LISTAGG(operator || variable)
WITHIN GROUP(ORDER BY step) formula
FROM bharat_formula;
The result is A+B*(C/D)+E-(F*G)
and the formula with value that i am creating is :
SELECT LISTAGG(operator || var_value)
WITHIN GROUP(ORDER BY step) formula
FROM bharat_formula;
and the result is 10+20*(30/40)+50-(60*70)
Now i want to formulate the formula as 10+20*(30/40)+50-(60*70) and get the calculated value of the formula as -4125.
Can any body please help me in how to create the formula and calculate the value in a single statement?May be
SQL> with t
2 as
3 (
4 select 01 step, '' operator, 'A' variable, 10 var_value from dual union all
5 select 02 step, '0' operator, 'B' variable, 20 var_value from dual union all
6 select 03 step, '*' operator, '' variable, null var_value from dual union all
7 select 04 step, '(' operator, 'C' variable, 30 var_value from dual union all
8 select 05 step, '/' operator, 'D' variable, 40 var_value from dual union all
9 select 06 step, ')' operator, '' variable, null var_value from dual union all
10 select 07 step, '0' operator, 'E' variable, 50 var_value from dual union all
11 select 08 step, '-0'operator, '' variable, null var_value from dual union all
12 select 09 step, '(' operator, 'F' variable, 60 var_value from dual union all
13 select 10 step, '*' operator, 'G' variable, 70 var_value from dual union all
14 select 11 step, ')' operator, '' variable, null var_value from dual
15 )
16 select replace(sys_connect_by_path(str, ','), ',') formula
17 , xmltype
18 (
19 dbms_xmlgen.getxml
20 (
21 'select ' || replace(sys_connect_by_path(str, ','), ',') ||
22 ' val from dual'
23 )
24 ).extract('/ROWSET/ROW/VAL/text()') val
25 from (
26 select step
27 , ' '
28 || decode(operator, null, ' ', '0', '+', '-0', '-', operator)
29 || ' '
30 || to_char(var_value) str
31 from t
32 )
33 where connect_by_isleaf = 1
34 start with step = 1
35 connect by step = prior step + 1;
FORMULA VAL
10 + 20 * ( 30 / 40 ) + 50 - ( 60 * 70 ) -4125
SQL> -
Help! How to Download Existing Website into DW8?
Anybody got a simple 4-step formula to do this? The support team for my IP/server doesn't have any idea of how to do it?
I need a complete file for DW8 so I can edit existing site. Current server has lost all of my files? Got to switch to new server?
Here is existing site I need to get accurate files into DW8. www.affordablehealthinsur.com Thanks.If the website is live, then I'm not sure how the files are lost - they are visible by visiting the link you provided.
Do you have access to the host server - with details how to log in?
If you do, then you download them (by using GET).
1. Create a Site Definition in Dreamweaver
2. Insert the Remote information (login in details to the server)
3. GET the files from the server
Define a site:
http://kb2.adobe.com/cps/140/tn_14028.html
Getting files from a Remote Server -
Removing background noise from photographs
Hello -
I have a handful of photographs that contain background annoyances such as basketball hoops, doors, etc. I am new to Elements 7 and was wondering if there was a simply way to address this issue. Again, I am a newby and not yet thoroughly famliar with the Elements tool set. I've provided an example of what I'm attempting to correct.
If I could get a step-by-step formula, that would be great!
Thank you.There are many ways to remove unwanted items and this is a whole topic in itself. However since your example has so many things going on in the background and since it is such a great group shot I tried a studio portrait look:
Here's how:
1. Add a blank layer above the picture.
2. Set the Foreground/Background colors (color chips at bootom of toolbar) to light and dark shades of brown.
3. Apply the Clouds filter to this layer to get the portrait-like background. If the cloud effect looks to harsh it can be softened with a Gaussian Blur.
4. Add a Levels adjustment layer above the picture layer but do not make any adjustments, Just click OK.
5. Group the background layer and Levels layer.
6. At this point all you see is the background. Now actvivate the Levels layer and fill with black. This restores the picture.
7. Set the Foreground/Background colors to their white/black defaults.
8. Use the Brush tool with a hard brush and paint with white to reveal the background. If you paint to far and cover one of the persons, switch to black and paint to restore him/her. While painting you can type "X" to toggle between the black and white. Note that for the subject's hair the results looked more natural using a soft brush.
9. I also used the Clone tool to remove some flash spots on the faces and glasses.
10. Finally cropped to a 8x10 proportion.
If you like this I uploaded the full size picture to
http://www.pixentral.com/show.php?picture=1RI3O47sxKtNYqO0xth1CES4djZvFU
Right-click it to downlaod to your PC.
I can also send you the psd file if want to tweak it some more. -
Schedule a process chain on last saturday of every month
Hi Guys,
My requirement is to schedule process chain on last saturday of every month. Is there any way to do this?
I am already aware of below document. So please do not reply with the same. But please let me know if I am missing on anything.
I have a requSchedule a Process chain on specific weekdays
Thanks,HI R P,
As mentioned in 'Schedule a Process chain on specific weekdays' document to use decision step. You can go with it just before setting actual data flow PC steps. Here a help for you.
Logic for decision step-
Create a new custom function/method (say ABC) to calculate last Saturday of every month by using Standard Method 'FIRST_DAY_IN PERIOD_GET' (this gives last Sunday of every month) and use code logic accordingly to get last Saturday.
Now, pick this ABC function from 'User- Defined function' section for your decision step formula.
Hope this help.
Thanks!
Pratish -
Process chain for updating a cube with last month's data everyday.
Hi everybody,
I need a suggestion on designing the process chain. I have the cube Zxx_xx. I will explain my requirement with an example. Suppose I uploaded the cube with data up to 201103. Each night in May, I want to upload the cube with April's data. So each night the previous request should be deleted. When May finishes, this time, each night I need to upload the cube with May's data. I handled everything except deleting the data from PSA. I need the data loaded in the cube stay at PSA. In this case the request including data till 201103, the request loaded for April, and finally in June, I need to see the request loaded for May. In the last step of the process chain I added the process for deleting PSA data choosing my infosource, but I have no option for deleting the requests where I have uploaded from same infopackage with same selections. Please help handling this situation.
thanks in advance.
Yasemin.hi,
You can achieve this by loading the cube through two different DTP's.
DTP1 to have in the routine to pick data for month-2 i.e. in june it picks up April data.
DTP2 to restrict the month in routine to month-1 i.e. in june it picks up May data.
Now the design of process chain will be as follows:
process chain to have an step "Decision Between Multiple Alternatives "
in this decision step you can write formula to check if sy-datum is 01, first of every month.
if step: formula
( RIGHT( 2, Current Date ) = '01' )
On first of every month load for month-2 as well as month-1 and delete overlapping request for month-1. Variant described below. DTP1, DTP2 and then Delete overlapping request step
Else part of Decision Between Multiple Alternatives will be executed for all other days
load only month-1 and delete overlapping request from cube. DTP2 and then Delete overlapping request step.
in the pc there is variant "Delete overlapping request"
in that choose variant type DTP, give the technical name of DTP2 and save it.
this way the whole data loading will be automated and you need not intervene to delete data manually,
regards,
Arvind. -
Formula to calculate SAPS from dialog step
Hi All
Can anyone let me know the formula to calculate SAPS from dialog steps
Regards
Brijesh PrasadHi
you may use material quantity calculation to achieve this. Have a look at the help files: http://help.sap.com/saphelp_erp60_sp/helpdata/en/05/603bc6462311d182b50000e829fbfe/frameset.htm, then Process Orders > Material List Components > Material Quantity Calculation. See the "Example: Calculating Product and Component Quantities".
Good luck
Eivind -
Steps to create a simple formula for 2 KF
Hi, Can someone please give me steps to create a formula for 2 KF or redirect me. Do I need to create a formula variable? I just need to add KF1 + KF2. I RClicked on KF structure in columns and i can see only structure elements and formula variable. I don't see my KF. I am in netweaver 2004s.
Thanks,
RadhaNo it isn't new in Netweaver 7.0.
Left hand side - > Keyfigures - > Calculated Keyfigures - > Right Click - " CKF "
You shud see keyfigures existing on the Infoprovider & other RKF's , CKF's existing on the query under "Available Operands "
When u create a formula ( which is local ) u may not see the keyfigures which doesnot exist in columns - u shud hav the keyfigures in the Columns to use them in the formula - u can use in the formula & to avoid them on the report jst hide em.
Message was edited by:
Jr Roberto -
5 step easy formula for anyone to use webstart
Hi,
I want to know in easy 5 steps as to how you can fully program using java webstart.(I have to make a tutorial for this)
eg
1)make .java file.
2)make .jar file
3).jnlp file
etc
An example will be higly appreciated and thanked.
Regards,
Jimmy ThakkarIf you want to know how java web start works, then I suggest you read this document:
http://java.sun.com/products/javawebstart/docs/developersguide.html.
The steps you take pretty much depend on what kind of security you want, but the main steps are:
1. build your application
2. put your application in one or more jar files
3. digitally sign the jar files (optional depending on security)
4. create your jnlp file
5. put a link to your jnlp file in a web page
Rhys -
How to apply a similar formula to many fields instead of step by step?
for field “c” the «rude» script is:
(function() {
// Get the field values, as numbers
var v1 = +getField(“a”).value;
var v2 = +getField(“c”).value;
// Perform the calculation
var result = v1 * 100 \ v2
// Set the value of this field to the result
event.value = result;
But it this form it involves 20 operations...
It is possible to make a more logical and fast solution?Dear try67:
Firstly, thanks again.
For some designers with a minimum of knowledge of scripting this seems a very complicated situation.
We need to help the customer but the investment of time (in this case) sounds excesive.
For many times you wrote detailed scripts and is a shame always asking the same.
Perhaps if now you may provide a bibliographical/internet reference for this situation with examples, perhaps we can solve.
It is like a matrix (?) and perhaps it has a classical formulae.
Thank you for all and the point on the errata. -
Issue in Member Formula after enabling parallelization
Hi all,
System Details :
SAP BW - 731 Release - SP9
CPMBPC - 801 Release - SP4
EPM Excel - 10.0 SP 15 Patch 1
Model Details :
Periodic Model
Background Information :
Sometimes back I had a performance issue in my BPC 10.0 report. So I implemented the steps mentioned in the SAP NOTE 1854228. After this, the report performance increased very signifiacntly.
Issue Details :
There are few reports where in the Column axis we were trying to fetch data of both Periodic and YTD Measure along with Time Period. and in the row Axis I have accounts.
My Issue is if in a single report I keep accounts :
CATEGORY 1 - Don't have member formula
CATEGORY 2 - have member formula : but accounts used in the formula of member formula are of same account type
CATEGORY 3 - have member formula : but accounts used in formula are of different account types ( e.g mix of INC and AST )
Then the values fetched for any accounts for YTD measure is same as Periodic Measure.
But If I separate this single report to 2 different reports, where
1. In one report I kept accounts of Category 1 & 2.
2. In 2nd report I kept accounts of Category 3
Then the values for both YTD and Periodic are same.
As an developer I can do this. But this creates problem when user creates some Adhoc reports, where they want all there category of accounts in a single report. So if any body has any idea about how to overcome this issue, then it's very much appreciated.Thanks Valdim. I was really expecting some respose from you.
Example :
ANNUAL CHURN = ( Disconnection / Avg Base YTD ) * -12.
Where Disconnection : EXP type account
Avg Base YTD : AST Type Account.
= Avg Base Periodic / Month Num of Current Month. -
IF ELSE Statement in Member Formula
I believe that I am in my final step of completing my database. But, I need to create a member formula that converts lbs to kg. I have gotten help on this question in the past and have a basic formula that works. However, I have 2 exceptions to the formula that are not successfully calculating.
This much of the formula has been tested and works when isolated:
IF (@ISMBR(@LIST(AccountCapacityTypeX,AccountCapacityTypeY,AccountCapacityTypeZ)))
"LBS"/2.2046;
ELSEIF ((@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB) )) and (@ISMBR(@LIST(MbrNm1, MbrNm2,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Qtr1","Qtr2","Qtr3","Qtr4"))))
@round(("LBS"/2.2046),0);
else
@round(("LBS"/(2.2046*5)),0)*5;
ENDIF
However, the following checks out when I verify my syntax, but when it is added to the above formula the formula does not load:
IF ((@ismbr(MbrNm3)) and
(@ISMBR(@LIST("Region1","ParentOfRegion1","GrandparentOfRegion1","Y2008","Y2009","Y2010","Y2011","Y2012","Y2013","Y2014","2015","Y2016","Y2017","Y2018")) and (@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB)))))
105;
ENDIF
IF ((@ismbr(MbrNm4)) and
(@ISMBR(@LIST("Region1","ParentOfRegion1","GrandparentOfRegion1","Y2012","Y2013","Y2014","Y2015","Y2016","Y2017","Y2018")) and (@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB)))))
425;
ENDIF
Members MbrNm1-4 are all stored, zero level members of the same dimension. My years, months, and qtrs are dense dimensions, everything else is sparce. AccountCapacityTypes contain both calculated and stored members. Region dimension contains all stored members. Also lbs are a stored member.
Any ideas on how to make these 2 exceptions work?
Thank you,
C-LoHello Cameron Lackpour,
I have tried several iterations of this calc script, and gotten it to mostly work. The issue that I have is that it calculates everything correctly, but when I @remove the one year that want the calc script to calculate differently that year retrieves values for #missing as desired, but when I try to write a calc script for that single excluded year the second calc script still doesn't run for the whole condition that is defined. I don't know if any of that makes any since, but below is an example:
FIX("JOLEFINS_JCP")
FIX(@REMOVE(@RELATIVE("Years", 0), @Member("Y2008")))
*"KMT"*
IF (@ismbr(@list("MajorTurnarounds","InventoryCtrl","Feedslate/ProdMixImpct","ActsOfNat","Fdstk/RawMtlAvail",
*"OtherExtEvents","ExternalLPOs","InternalLPOs","PlndMntc","Mech/ProcLoss","AbvCapProd","Other","Actual","Adjusted","MaxDmstdCap")))*
*"MMLBS"/2.2046;*
ELSEIF(@ISMBR("Published Capacities","EOY_PubCap"))
*@round(("MMLBS"/(2.2046*5)),0)*5-1.25;*
ENDIF
ENDFIX (everything in bold is calculating correctly)
FIX (@RELATIVE("Years", 0), @member("2008"))
+"KMT"+
+(+
IF (@ismbr(@list("MajorTurnarounds","InventoryCtrl","Feedslate/ProdMixImpct","ActsOfNat","Fdstk/RawMtlAvail",
+"OtherExtEvents","ExternalLPOs","InternalLPOs","PlndMntc","Mech/ProcLoss","AbvCapProd","Other","Actual","Adjusted","MaxDmstdCap")))+
+"MMLBS"/2.2046;+
ENDIF
IF(@ISMBR("Published Capacities"))
+@round(("MMLBS"/2.2046),0)/1.08;+
ENDIF This portion in italics returns #Missing . However, the loaded data ("MMLBS") does return data for this year.
IF (@ISMBR("EOY_PubCap"))
*8.75;*
ENDIF This portion seems to be calculating as well.
ENDFIX
ENDFIX
CALC ALL;
Any additional suggestions?
Thanks,
C-Lo -
Can someone tell mr the steps to write a formula to calculate a product of the cells? I cannot figure it out.
You double click the cell the product is to be placed in.
Then click the "=" from the little bar that appears above the numeric keyboard.
Then click cell B4. That should place its reference in the bar to the right of the equal sign.
Then click the "x" from the function guide next to the numeric keypad.
Then click cell B5.
Then click the "x".
Then click cell B6.
Finally click the green check mark on the right. Done. -
Hi
I'm creating a report wich shows the Commit, Paid, Budget, etc. in PS module. I will take these column values from severel PS reports generated with the 'Report Printer' tool, wich allow to calculate the values vía a 'semantic formules' using key figures, Characteristic values, etc. (For example report S_ALR_87013532).
I need to know how to translate these formules to code (tables); but i really don't know anything about Report Printer, Key Figures, etc.
Any idea ? Does somebody knows how to translate the Report Printer formules to code reading tables ?
Any help will be apretiated !!
Regards
FrankHi Frank,
I saw your earlier post for Changes a peport created via Report painter. You can do via T/code GRR2.
Please go thru the documantation this will provide you step by step approach on Report painter.
<a href="http://www.virtuosollc.com/PDF/Get_Reporter.pdf">Peport painter</a>
<a href="http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp">Report painter--test report</a>
Need more information please let me know.
Lanka
Ps: Please allocate the points if this answer helps you.
Maybe you are looking for
-
I recently ran an updatedafter being prompted multiple times. Now I find there are a number of songs that I cannot sync to my iPhone. Some are songs purchased from iTunes. Is there anyway to remedy this? I'd really prefer not to have to repurchase
-
I am really freaked out here. It's 2am and my ipad2 is still updating photos but I got no clue whether or not I have lost all my ppt in keynote. I was planning on showing a short clip (video) in my class tomorrow and teach a lesson already saved in
-
Hi, I need a sql query based on po amendment and need the following records VEND NAME SITE VEND CODE PO_DATE PO_NO Destination Inventory IT CODE DESC AMEND DATE OLD QTY NEW QTY Receipt Qty Balance Qty RATE currency Curr. Rate Need By Date Promised Da
-
How to do a circle with a jagged edge
Can anyone point me in the direction or quickly share how I can produce circles like the ones here, for a kind of sale / discount graphic? Like these Cheers, Iain
-
How to view SSL - Conn IDs in ACE
Hi, Can any body tell how to view SSL CONN IDs in ACE?