How to insert a KPI by comparing two columns
I want to compare the value of date under "Start" column and value under the column 'BL1 Start' date and if they are same I want to use an indicator in another area and if not even, then one other indicator should be displayed in the same field.Kindly let me know how to do it.
Concerning
It is true that you can not use all of the 2 parameters (defined by the user and P6 standard fields as well incidentally) on both sides of the operator 'is' in the section 'if' of global change as a condition.
and since the use cases is there, personally I see no reason why this is impossible. If any-to-any field comparisons are allowed, any comparison without meaning of different data types should just return 0 as their value of truth (unfulfilled condition) or generate errors of global change report
Otherwise, more elegant solutions could include more complex "sentences" used as conditions, with more than one driver
for example if param_1< param_2="" -="">
where param_n is a field any (standard or user-defined)
also the choice of any parameter, but also the operators of drop-down lists should be limited depending on the data type of the or the previously selected parameters
to answer your original question, the only solution I can think of is for you:
* 1.* create a user-defined field: my_kpi
* 2 use global_change_1 to calculate the value of my_kpi, based in any other number n standard, udf fields, and/or custom values, including PS, CD, current_date_time, substring(), etc to meet your needs.
Use 'then' as many lines as needed. No line 'if' required.
for example
my_kpi = param_1 + param_2
my_kpi = my_kpi * param_3
my_kpi = my_kpi - some_other_udf
my_kpi = my_kpi / {custom} division by 0 should be avoided as it will generate errors
It's the equivalent of
my_kpi = ((param_1 + param_2) * param_3 - some_other_udf) / {custom}
you will probably need one ore two lines with simple divisions or added to calculate a relevant value for my_kpi.
for example
my_kpi = CD - planned finish
my_kpi = my_kpi - {contingency}
* 3.* create another udf: my_indicator
* 4 use global_change_2 to assign values of color my_indicator
If my_kpi< minumum="" threshold,="" then="" my_indicator="red," else="" my_indicator="">
If you want a 3-color scale, you will need a more global change which will present the yellow flag.
the major drawback of this is that P6 does not (not even v7) solutions (scheduled tasks), action-triggered or even conditional running of global change as defined.
It would be nice to have lots of global change and have global_change_n triggered by the completion of the global_change_n-1, or even incorporate a global change (a reference to its definition) in the lines "then" or "else" to another planetary change.
This could improve significantly (or completely screw up :) the business logic of P6
concerning
Published by: [email protected] on October 7, 2009 19:08
Published by: [email protected] on October 7, 2009 19:12
Tags: Oracle Applications
Similar Questions
-
Can anyone tell how to insert a string between the two another string...?
Can anyone tell how to insert a string between the two another string...?
For example: String1 = 'ABC '.
String2 = "XY".
I want that the chain of output like "AXYBC".If you have the Position where you want to place your chain, this might work:
SQL> r 1 declare 2 vStr1 varchar2(20) := '123456789'; 3 vStr2 varchar2(20) := 'aa'; 4 nInsertPos number := 3; 5 vResult varchar2(20); 6 begin 7 vResult := substr(vStr1, 0, nInsertPos) || vStr2 || substr(vStr1, nInsertPos+1); 8 dbms_output.put_line(vResult); 9* end; 123aa456789
If you want to insert it after a special character, you can search for the position of your character with the help of instr
concerning
-
How to compare two columns in Xl
I want to compare two columns in the file of Xl. column A contains phrases and column B contains the words
For example
Column A Column B Column C
I have an Apple and I'll eat every day Apple Apple
I have a banana and eat weekly banana papaya
Oranges are rich in nutritions cauliflowers Oranges
Papaya is good for health Grapes Papaya
Oranges
Lichi
Banana
I want to check each value of column B in each cell in column A, and if it matches then it should return the corresponding value in the result to me. Column C should Look Like as shown above.
Can someone point me in the right direction here of what formula to use for this Xl.
Thank you
This is a forum for Mac OS X technologies, so here's an Applescript solution:
- Copy-paste the script in the Script Editor
- Select the cells in columns A and B
- Command + c to copy to the Clipboard
- Click on the button "run" in the Script Editor
- Click once in the top cell in column C where you want the data
- Command + v to paste
Here are the results:
There is no verification error here. You must select and copy to the Clipboard before the race.
SG
the value LstOfLsts to makeListOfLists (the Clipboard as a 'class utf8 ')
the value theSentences to getCol1Vals (LstOfLsts)
the value collected in getCol2Vals (LstOfLsts)
game of theMatches to «»
Repeat with I in collected items
If theSentences contains I then ¬
the value of theMatches to theMatches & i & return
end Repeat
Set the Clipboard for theMatches
to getCol1Vals (LofL)
game of col1Vals to «»
Repeat with en LofL points
the value col1Vals to the col1Vals & "" & i point 1
end Repeat
end getCol1Vals
to getCol2Vals (LofL)
the value col2Vals to {}
Repeat with en LofL points
If i's point 2 is not "" then ¬
i copy point 2 to the end of col2Vals
end Repeat
return col2Vals
end getCol2Vals
at makeListOfLists (theTxt)
value was to theTxt paragraphs
the value text point of delimiters
the value theListOfLists to {}
Repeat with I from 1 to count was
the value theListOfLists to the theListOfLists & {the was point i text elements}
end Repeat
the value point text delimiters to «»
return theListOfLists
end makeListOfLists
-
target table (emp_target)source(emp) ----- ename d_ename -------------------------- john john chris joe mary mary
--------------------------
f_ename - must fill in the value function ename and d_ename. compare two columns if the column is null, then take the column which is not null. If the two columns are populated then take all of the column. It will have the same values.
Please help me how can I have f_ename value in the emp_target table.
compare two columnsexpected output f_name ----- john chris joe mary
and take what is not nullHello
Nordine Show, you can use NVL, or the function COALESCE sometimes more fast.
If you are filling out the table emp_target with the values of the emp table, then you can use NVL (or COALESCE) in an INSERT statement like this:
INSERT INTO emp_target (f_name) SELECT COALESCE (ename, d_ename) FROM emp ;
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
If you ask a DML statement, such as INSERT, sample data will be the content of the or the tables before the DML, and the results will be the State of the or a modified tables when it's all over.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum {message identifier: = 9360002} -
How to compare two columns in OBIEE?
Hello
I have two columns like "abc" and "def". I want to display only the rows where the value of 'def' is greater than the value of 'abc '. How to perform in the analysis? How to use the operator for comparison for the columns in the analysis?Try this:
Criteria-> column-> Filter tab-> Advanced-> 'Convert this SQL filter' and the two columns with condition.Appreciate if you mark as correct
Published by: Srini VIEREN on 23 January 2013 06:58
-
Hi friends
I have a requirement
I have a table with 4 columns in that two columns starttime and endtime
for Ex: starttime is 11/30/2010, 3:02:45 and endtime is 11/30/2010, 3:23:28
I want to add two condition is
(1) the starttime and endtime must be on the same date for EX: if the starttime is 30 means the end time must also be 30, but the duration may vary
(2) the endtime not null
How can I write a query for this
Please guide me
Thanks in advance
BeatriceTry this query
Select * from your_table
When trunc (starttime) = trunc (endtime)
and enddate is not null;
/ -
ViewCriteria comparing two columns of the table to create
Anyone know how I can create a ViewCriteria where clause that compares the two columns of the same table?
For example if I had two columns of integers (MINSAL and MAXSAL) and wanted to see if they are equal. Normally, I would do the following SQL below.
SELECT * EMPL
WHERE MINSAL = MAXSALTry to link any of them to an expression of groovy.
Timo
-
How to insert unique random values in 2 columns?
I have a table with 2 columns
Create table code_for_code)
first_code varchar2 (10) unique not null,.
second_code varchar2 (10) not null unique);
and I want to make PL/SQL code to Insert unique values at random in two columns , for example 20 record... How can I do something like that?DECLARE i NUMBER := 0; BEGIN LOOP INSERT INTO code_for_code SELECT first_code, second_code FROM (SELECT DBMS_RANDOM.STRING ('U', 20) first_code, DBMS_RANDOM.STRING ('U', 20) second_code FROM DUAL) a WHERE NOT EXISTS ( SELECT 1 FROM code_for_code WHERE first_code = a.first_code AND second_code = a.second_code); i := i + 1; EXIT WHEN i >= 20; END LOOP; COMMIT; END;
-
Compare two columns and get the percentage of cells that match
Hello
I'm looking to take two columns of data from different tables in the same document, which should have a high enough percentage of boxes and have another cell tabulate the corresponding percentage. I can the of seem to figure out how to do this, but it seems really possible.
Any help is greatly appreciated.
Thank you!
C1 = A1 = B1
It's shorthand dethrone select cell C1 and type (or copy and paste it here) the formula:
= A1 = B1
Select cell C1, copy
Select the column C, paste
Select cell E2, and then type 'TRUE '.
Select cell E3 and then type "FALSE".
F2 = COUNTIF ($C, E2)
F3 = COUNTIF ($C, E3)
G2 = F2÷SUM(F$2:F$3)
G3 = F3÷SUM(F$2:F$3)
-
Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?
Guessing
Select nvl (x.col_a, y.col_b) the_column
from table_1 x,.
table_2 y
where x.pk = y.pk
Concerning
Etbin
-
Presentation of master-detail Spry insert cannot get more than two columns?
Ive been trying to get more than two columns only experiment with spry data sets and can not with the option to «insert master/detail layout» layout
What I am doing wrong?
??????
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
"< html xmlns ="http://www.w3.org/1999/xhtml"" xmlns: spry = "http://ns.adobe.com/spry" > ""
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > Untitled Document < /title >< script src = "SpryAssets/SpryData.js" type = "text/javascript" > < / script > "
< script src = "SpryAssets/SpryHTMLDataSet.js" type = "text/javascript" > < / script > "
< link href = "SpryAssets/SpryMasterDetail.css" rel = "stylesheet" type = "text/css" / > "
< script type = "text/javascript" >
DS1 var = new Spry.Data.HTMLDataSet ("benefitsdata.html", "bizben", {firstRowAsHeaders: false});
< /script >
< / head >< body >
< div align = "center" >
< div class = "MasterDetail" >
< div spry: region = "ds1" class = "MasterContainer" >
< div class = "MasterColumn" spry: repeat = "ds1" spry: setrow = "ds1" spry: hover = "MasterColumnHover" spry: select = "MasterColumnSelected" > {column0} < / div >
< / div >
< div spry: detailregion = "ds1" class = "DetailContainer" >
< div class = "DetailColumn" > {column1} < / div >
< div class = "DetailColumn" > {Column2} < / div >
< div class = "DetailColumn" > {Column3} < / div >
< / div >
< br style = "" clear: both "/ >"
< / div >
< / div >
< / body >
< / html >____________
Spry framework all related examples are available here: http://adobe.github.com/Spry/samples/ you can take a look.
On a sidenote, Spry has been deprecated and is no longer officially supported by Adobe: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
I would recommend that you switch to a jQuery library to your other needs.
-
compare two columns a substring corresponding to a football match
Hello world
I need to match the addresses structured and unstructured. In a databases, addresses are held as number of street, the street etc. In other databases, they are held in line 1, line 2, etc. To do this, I want to check if each element of the structured address is present everywhere in the unstructured address lines.
FOR EACH address element structured address
CHECK if this element occurs anywhere in the address lines unstructured address
IF all the elements
THEN
We have a match
ON THE OTHER
Does not match
END IF
END FOR EACH
Question 1: How to check if a field is a substring of another field. for example must be the following: "52" IS a substring OF "52 Smith Street.
Question 2: What is the best way to browse the fields and lines?
TIA!
eddiec :-)
Edited by: 866928 07/04/2011 17:58866928 wrote:
We're in Oz, so would need to the QAS AusPost module correctly, do we not :-(Why not pl/sql?
http://search.cpan.org/~pauamma/geo-PostalAddress-0.04/PostalAddres
Do I need to say more?
-
How to divide the lines based on two columns...
Hi all...
I have a requirement.
I have the product, sale, purchase price column... (total of three columns) in a data set.
my data set is in such a way that... If the sale price is... There is no purchase price and vice versa...
I need too present in a report, two tables:
Table 1 includes only the elements of retail price
Table 2 should only contain the right elements.
Please see the below photo for good understanding...
Is this feasible? Where do we need to impose a condition? I tried to impose a condition, but it doesn't seem to work
http://i51.Tinypic.com/29xfdc6.jpg
Help, please.Can you send me the xml file and the model of [email protected]? I can try to help.
Have you tried to filter the records by the sale or purchase price is not equal to null column price?
Thank you
Bipuser -
How to insert Mutiple data in a single column
I have an E_CTIC_DTA table with a clob column
I want to insert all the data from EMP in this clob column that too in a single line
When each series of records must be in a new line.
for example: 121 AH 5000 50 131 MACIEL 1000 10 141 KING 5000 50
The text file should look like below when we choose the CLOB
121 50 5000 SALOME
131 1000 10 MACIEL
141 KING 5000 50
Any reference links or suggestions please...
Thanks in advance...Hello
A simple example:
DECLARE v_clob CLOB; v_line VARCHAR2(4000); BEGIN FOR reg IN (SELECT * FROM employees e) LOOP -- Loading new line (maybe using a procedure, etc). v_line := reg.employee_id || reg.first_name; -- Adding the line to the clob v_clob := v_clob || v_line || CHR(13); END LOOP; -- Inserting into the table INSERT INTO E_CTIC_DTA VALUES v_clob; COMMIT; END; /
Kind regards
-
How to compare two fields in two separate databases
Hello
Can we compare two columns in two separate databases with a single script.
See you soon
SexyHello
If you mean Oracle to SQL Server while you'd have to put the hand in the Pocket and buy ODBC connectivity for this...
If it's just one large may export your data and import into an Oracle table and make your unique comparison.
Kind regards
Robert.
Maybe you are looking for
-
Hi people, A few weeks ago I noticed that when I use the microphone button of Dictation on the keyboard (next to the space bar) that is no longer 'bumps' when it starts and when I'm done prescription. Now it of just silence when I press the microphon
-
Windows 7 - error Code: 80070005 (cannot install KB980408)
I have tried to update KB980408 for my window 7 for x 64 based system but kept to message that failed. I found that the error code 80070005. How can I solve this?
-
Computer laptop HP 2000 series and drivers Win7
Hello HP Rep I have Lady I know the district knows I'm into computers and asked me to get rid of windows 8 for her. She is an older Lady and has trouble with understanding computers initially. WIN8 is too difficult for someone with a slight know how
-
How to remove and reinstall Outlook
How to remove and reinstall Outlook
-
How to use the upgrade of official ICS on ideapad K1?
How to use the upgrade of official ICS on ideapad K1? Since the post of 'k1_ics_source_code.tar.gz' Open Source Code - IdeaPad Tablet K1 on the official web site I want to improve my K1 to ICS Android