Can an Input Parameter be used as Target Value in Chart ?

Hi All,
It seems like a target value can only be entered as a fixed value, and not be pulled from an input parameter. It seems like input parameters can only be used for filters. Is this true?

Uhm, ok, I got it.
In fact, the target must be a constant value and as you said, there isn't a easy way to change it.
One tricky idea would be use a combo chart (bar and line).
Create a new dataObject called "target", add a column called "target" for target value and other column called "group" for the value used in your bar chart to grouping the series, and values with the same target for every possible group.
Then, change your view to combo chart, configuring the same bar chart and add the new dataObject "target", configuring as line chart, using the same grouping.
You can also expand this idea and include a date column if you can search for some historical data, so you can see in the graph the "evolution" of your target against the data.
Just one idea...

Similar Messages

  • What kind of input parameter is used in SUM function?

    Hi Everyone,
    As we know sum is a predefined oracle function. But what these oracle guys have used for the input parameters. How they have done this?
    I mean we can write this sum fuction like so many ways like as mentioned below. Please give me some ideas how to do that.
    SELECT SUM(salary) as "Total Salary" FROM employees;
    SELECT SUM(DISTINCT salary) as "Total Salary" FROM employees;
    SELECT SUM(income - expenses) as "Net Income" FROM gl_transactions;
    SELECT SUM(sales * 0.10) as "Commission" FROM order_details;Regards,
    BS2012

    BS2012 wrote:
    Hi Everyone,
    As we know sum is a predefined oracle function. But what these oracle guys have used for the input parameters. How they have done this?
    I mean we can write this sum fuction like so many ways like as mentioned below. Please give me some ideas how to do that.
    SELECT SUM(salary) as "Total Salary" FROM employees;
    SELECT SUM(DISTINCT salary) as "Total Salary" FROM employees;
    SELECT SUM(income - expenses) as "Net Income" FROM gl_transactions;
    SELECT SUM(sales * 0.10) as "Commission" FROM order_details;Regards,
    BS2012As others have said, your question is not quite clear.
    There are many aspects and angles to looking at what you are asking.
    Primarily, from a top-level, the sum function simply takes a number value as it's argument, so all those examples you have given have expressions in them that evaluate to a numeric value before being supplied to the sum function. (As someone else already mentioned you can have non-numeric datatypes, just so long as they can implicitly be converted to a numeric value).
    From a statement parsing and execution perspective, the contents of the expression inside the brackets will be evaluated before being passed to the sum function. It is not the sum function that itself takes the expression and evaluates it. The sum function just expects a single numeric value.
    Internally, what the sum function does, is more than just a single... call function and return value, because it has to deal with multiple values being passed in as part of the aggregating group. As such, it needs to have the ability to know when to start it's summing, to accept multiple values as input so it can sum them together, and to know when to stop summing inputs and pass the result back.
    If we write our own user defined aggregate function (other people have already provided a link to explain such) we can see what is happening internally. In this following example, we'll write a user defined function that multiplies the values rather than sums them...
    create or replace type mul_type as object(
      val number,
      static function ODCIAggregateInitialize(sctx in out mul_type) return number,
      member function ODCIAggregateIterate(self in out mul_type, value in number) return number,
      member function ODCIAggregateTerminate(self in mul_type, returnvalue out number, flags in number) return number,
      member function ODCIAggregateMerge(self in out mul_type, ctx2 in mul_type) return number
    create or replace type body mul_type is
      static function ODCIAggregateInitialize(sctx in out mul_type) return number is
      begin
        sctx := mul_type(null);
        return ODCIConst.Success;
      end;
      member function ODCIAggregateIterate(self in out mul_type, value in number) return number is
      begin
        self.val := nvl(self.val,1) * value;
        return ODCIConst.Success;
      end;
      member function ODCIAggregateTerminate(self in mul_type, returnvalue out number, flags in number) return number is
      begin
        returnValue := self.val;
        return ODCIConst.Success;
      end;
      member function ODCIAggregateMerge(self in out mul_type, ctx2 in mul_type) return number is
      begin
        self.val := self.val * ctx2.val;
        return ODCIConst.Success;
      end;
    end;
    create or replace function mul(input number) return number deterministic parallel_enable aggregate using mul_type;
    /So, our user defined aggregate function is based on an aggregate object type.
    This object holds a value ("val" in our example).
    It has an Initialize method, so when the SQL engine indicates that it's the start of an aggregation of values it can set it's value to an initial value (in this case null).
    It has an Iterate method, so as the SQL engine passes values to it as part of the aggregated set of values, it can process them (in our case it multiplies the input value with the value it already has for this set of aggregations (and takes a base value of 1 for the first iteration))
    It has a Terminate method, so when the SQL engine indicates that the aggregate set of values is complete, it can return the result.
    The last method in there is a Merge and is a mandatory requirement, so that when aggregation is done using parallel evaluation (to improve performance internally), the results of those parallelly executed aggregations can be combined together (see http://docs.oracle.com/cd/E11882_01/appdev.112/e10765/ext_agg_ref.htm#ADDCI5132). As we're multiplying numbers, in our case, it is simply a case of multiplying one result with the other.
    And to see it working...
    SQL> with t as (select 2 as x from dual union all
      2             select 3 from dual union all
      3             select 4 from dual union all
      4             select 5 from dual)
      5  --
      6  select mul(x)
      7  from t;
        MUL(X)
           120

  • How to use stored procedures in DIAdem and Can the stored procedures be used to return values?

    Can anyone please tell me how to use stored procedures in diadem and to return values from it. Its really important, can you please answer it at the earliest.
    Thanks In advance
    spiya

    Hi Spria,
    I'm very sorry for the mix-up, I thought Allen was going to answer you back with the particulars that we found out. Check out the attached Word document and the below tidbits:
    The built-in DIAdem ODBC functions {SQL_...()} can only call stored functions, which return a scaler result {found then in SQL_Result(1,1)}. The syntax for this with an ORACLE db is
    "select function(parameters) from package"
    ...where package defaults to "dual" if you don't use your own package.
    There might be exceptions to that though, and the syntax will be different for other databases. Note that stored ORACLE procedures can NOT be called from the ODBC functions, instead you must use either ADO function calls in the DIA
    dem VBScript or the OO4O COM wrapper that ORACLE provides (this is described in further detail in the below Word document).
    Hope this helps,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Calling_ORACLE_Stored_Procedures_from_DIAdem.doc ‏28 KB

  • How can i dynamically select columns based on the input parameter?

    I have an input parameter which takes single numeric value.
    Based on this value i have to dynamically select table-columns .
    For eg: if i have following fields in my table :
    SEM_1
    SEM_2
    SEM_3 and SEM_4.
    And if i give numeric input as 2 , then i have to select "SEM_2" column only.
    if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
    how do i achieve this dynamic feature in the "Select .....  From...... table...." statement in the ABAP??

    Hi,
    you should try something like this.
    TYPES: cond(72) TYPE c.
    data: condtab TYPE TABLE OF cond,
             condw type cond.
    data: lv_field(30) type c value 'SEM_'.
    write p_num to lv_field+4(1).
    condw = lv_field.
    append condw to condtab.
    SELECT (CONDTAB) FROM table INTO.....
    Kostas
    Message was edited by:
            Kostas Tsioubris

  • Multiple values as Input Parameter

    Hi All,
    I need some help on how to implement
    Create or replace Pr( p_id in varchar2)
    is
    begin
    select empname from emp where empid = p_id;
    end;
    The above will work fine if i pass one value how to handle if i want to pass multiple id's (comma seperated or tab ).
    I tried it with dbms_utility.COMMA_TO_TABLE the output is not consistant.
    Can some one please give inputs
    Thanks

    You can give input parameter as a String, then just split by coma seperator or something else...
    You can use the following split function in your procedure..
    FUNCTION SPLIT (p_in_string VARCHAR2, p_delim VARCHAR2) RETURN t_array 
       IS
          i       number :=0;
          pos     number :=0;
          lv_str  varchar2(50) := p_in_string;
       strings t_array;
       BEGIN
          -- determine first chuck of string  
          pos := instr(lv_str,p_delim,1,1);
          -- while there are chunks left, loop 
          WHILE ( pos != 0) LOOP
             -- increment counter 
             i := i + 1;
             -- create array element for chuck of string 
             strings(i) := substr(lv_str,1,pos);
             -- remove chunk from string 
             lv_str := substr(lv_str,pos+1,length(lv_str));
             -- determine next chunk 
             pos := instr(lv_str,p_delim,1,1);
             -- no last chunk, add to array 
             IF pos = 0 THEN
                strings(i+1) := lv_str;
             END IF;
          END LOOP;
          -- return array 
          RETURN strings;
       END SPLIT; After spliting you will got an array of values... Just use them in loop or wherever you want

  • G3 imac HD found using firewire target - NOW WHAT?

    I finally can see my HD in my G3-600 imac. Had the folder at startup and tried all methods to see the HD. I can now finally see it using FW target. I used Diskwarrior on it and copied all contents off of it. Tried starting up but still same folder at startup. NOW WHAT? Do I reformat? Is it the controller? Any help would be appreciated.

    Robb 1,
    Well you got the info off so that's good. Were you able to graph the drive? any flaws?
    If it looks good you should probably reformat it and check SMART to see if it's ok.
    Then if all's well you could reinstall your OS but be aware it went bad before so it would be suspect as far as I'm concerned.
    Richard

  • Target Value

    Dear All:
    How can I use the target value of any characteristic as a trigger for an order or a notification?
    Thanks

    Hefni,
    Then you will need to utilise user-exit [IMRC0001|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (MeasPoint/MeasDoc: Exit before update (after COMMIT WORK)) to create a notification.
    This must have been done a hundred times before: has anyone got some ABAP code to share?
    PeteA

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Date Format on OWB 11.1.0.7 to use for input parameter for a mapping

    All,
    What is the Date Format on OWB 11.1.0.7 to use for passing in an input parameter for a mapping to execute?
    I have tried '01-01-2010','01-JAN-2010','01.01.2010', 01/01/2010 and I get the following error:
    Error RPE-01003: An infrastructure condition prevented the request from completing.
    Error RPE-01038: Failed to evaluate expression declare l_expression DATE := 01/01/2010;begin :result := wb_rt_conversions.from_date(l_expression);end;. Please modify the expression, redeploy and retry again.
    RA-06550: line 1, column 32:
    PLS-00382: expression is of wrong type
    ORA-06550: line 1, column 24:
    PL/SQL: Item ignored
    ORA-06550: line 1, column 90:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 1, column 51:
    PL/SQL: Statement ignored
    I am using a Mapping Input parameter object and have a START_DATE_IN as a DATE and an END_DATE_IN as a DATE
    Any information you could provide would be greatly appreciated.
    Thanks,
    Shaun

    Hello Shaun,
    The function wb_rt_conversions.from_date is (at least in OWB10.2) overloaded and can with input-types as
    date, timestamp_unconstrained, timestamp_tz_unconstrained, timestamp_ltz_unconstrained or varchar2.
    If it doesn't work with varchar2 I would try Date:
    For example: to_date('2010-01-01','YYYY-MM-DD')
    I also found this thread:
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=608257
    Hoping this helps...
    Guenther

  • Can a method be an input parameter?

    inside
    ActionPerformed(ActionEvent e) {
      Object src = e.getSource();
         PlcManager.setWaitCursor(this);  
         try{
              if(src == getBtnInquiry()){     
                   onActionInquiry(true);
                   saveLogFile();
         } catch (Exception ex) {
                   ex.printStackTrace();
         } finally {
                   com.hmm.manager.PlcManager.setDefaultCursor(this);  
    }I want to make it as:
    ActionPerformed(ActionEvent e) {
          Object src = e.getSource();
          showWaitCursor(getBtnSave(), onActionSave());
    }Putting aside the tidieous issue of what is PlcManager,
    private void onActionSave()  {
      System.out.println("SAVE!"); 
    }just focus on the method can have another method as an input parameter.
    Please, let me know asap. Thanks -

    // *** Your Interface ***
    public interface BtnAction
        public void doAction(); // Put any signature you like
    // *** Implementing classes
    public class BtnDelete implements BtnAction
        public void doAction() // Use signature from interface
            // Do your button delete
        // Can have other methods
    public class BtnSave implements BtnAction
        public void doAction() // Use signature from interface
            // Do your button save
        // Can have other methods
    public class BtnPrint implements BtnAction
        public void doAction() // Use signature from interface
            // Do your button print
        // Can have other methods
    public class BtnInquiry implements BtnAction
        public void doAction() // Use signature from interface
            // Do your button inquiry
        // Can have other methods
    // Etc...in your Pic thingie...public void showWaitCursor (JButton button, BtnAction action) // Can have other parameters or signatures...
        // Yada yada yada...
        action.doAction(); // Call the polymorphic method with your signature
    }and to call:// Yada yada yada
    BtnSave saveBtn = new BtnSave();
    // Pass saveBtn as a BtnAction interface; the BtnSave doAction will be invoked.
    showWaitCursor (new JButton(), saveBtn);Note that the Btnxxxx classes can still extend another class as well as implementing your interface. They can even implement other interfaces as well.

  • Using table comparison transform can you point to multiple tables as target

    Using table comparison transform can you point to multiple tables as target tables?
    Thank you very much for the helpful info.

    If you want to feed the output to multiple tables, you can do so, but you have to be cautious enough on which table to be used as a comparison table in this case. The comparison table provided inside Table Comparison will be compared against the input data set for generating opcodes (Insert / Update / Delete) to input rows.

  • In Which scenario do we use Input parameter and Variable in HANA?

    Hi Every one,
    Can any one let me know in which scenario do we use the Input parameter and Variables in HANA.??
    Do variables does the same functionality as like Input paramater.
    Is there any major differences between these??
    Thanks and regards
    Sanjay

    Hi
    Have a look on this:
    Input Parameters and Variables in SAP HANA Modeling
    Regards,
    Krishna Tangudu

  • How can I pass Recordsets as input parameter to a Function ?

    Hi Gurus,
    I want to create a function that receive recordsets as input parameter also returns recordsets as output.
    I have a requirement to do stock taking for all order items of one Order number in one single query execution (to avoid row by row basis).
    From the post in the forum I know that a function can return recordsets / query result using REF CURSOR or pipelined table function.
    My question is : how to pass the recordsets as input parameter to that function ?
    (because I could have 75 rows item in one order number)
    Below is the DDL and the query :
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    insert into stocks values('P001', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P001', 'WH002', '01-dec-2006', 50)
    insert into stocks values('P001', 'WH002', '01-jan-2007', 50 )
    insert into stocks values('P001', 'WH001', '01-Mar-2007', 150)
    insert into stocks values('P002', 'WH003', '01-dec-2006', 25)
    insert into stocks values('P002', 'WH003', '15-Jan-2007', 50)
    insert into stocks values('P002', 'WH003', '01-Mar-2007', 75)
    insert into stocks values('P003', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P003', 'WH002', '15-Jan-2007', 40)
    insert into stocks values('P003', 'WH003', '01-Mar-2007', 50)
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    The query for stock taking :
    select product,warehouse,expireddate, least(qty_available-(sm - qty_ord),qty_available) qty
    from ( select product,warehouse,expireddate,qty_available,qty_ord, sum(qty_available) over(partition by product order by s.product,expireddate,decode(warehouse,priority_wh,0,1),warehouse ) sm
    from stocks s,order_detail o
    where s.product = o.product_ord order by s.product,expireddate,decode(warehouse,priority_wh,0,1) )
    where (sm - qty_ord) < qty_available

    Hi,
    This my requirement :
    I have (simplified)Order_Detail as below :
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    Then I want to do stock taking from my STOCK table (described on my first post on this thread)
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    The rule is : The stok taking is on First In First Out basis, on expireddate.
    And I want to do it in single query.
    I want to make this a Function / Stored Procedure so that other transaction can also make use of this query.
    That is why I need to pass the 3 rows oy mr Order_Detail above, do the query, and return the result.
    Then INSERT the result into ORDER_DETAIL_PER_EXPIRED_DATE table.
    I hope this clear my requirement, is this possible ?
    Thank you,
    xtanto

  • Help with Input/Output Parameter Size using OLE DB Provider

    I am using the OLE DB Provider for 9i in an Active Server Page to call a stored procedure in a 9i database. I pass have an input/output parameter (adVarChar with adSize=30) in which I pass a two digit number in, and expect to get a character value greater than 2 characters in return. However, when I execute the stored procedure call, it appears the value being returned in the parameter is being truncated to the size of the value I passed in (2 characters). Is there a way I can insure the parameter will return the entire length of the result regardless of the length of the input value?

    cmd.Parameters.Add("retstatus", OracleDbType.Varchar2, 200, ParameterDirection.InputOutput); It seems to me that you're trying to use an OracleParameter constructor with parameter name, parameter type, parameter SIZE, and parameter direction. But OracleParameter class does not have any such constructor. Therefore, your test tries to use another constructor incorrectly.
    OracleParameter has two constructors with four parameter ...
    public OracleParameter(string parameterName, OracleDbType type, object obj, ParameterDirection direction)
    public OracleParameter(string parameterName, OracleDbType type, int size, string srcColumn)
    ... and none of these matches your constructor. One way to solve this problem is to use appropriate constructor or OracleParameter properties.

Maybe you are looking for