Formula as inlist operator parameter

hi all,
i'm using webi XI 3.1 on an OLAP universe.
My question is this:
is it possible to use a formula as a parameter of inlist operator?
like this
[measure] where([dimension] inlist([formula]))
I want to use a formula that lists the values of a dimension in every section on that dimension
thank you very much
Alessandro

Its Not possible becoz the inslist parameters take the value as string .How can u give formula to the String value. suppose if you given the formula like
measure where (dimension  inlist( measure where dim=" "))
THE inlist patameter takes string value so the entire formula is displayed as string instead of return value .
Edited by: K.sunil on Oct 24, 2011 1:08 PM

Similar Messages

  • Inlist operator vs join

    Dear Sirs, hope question will be new in this forum.
    I've found out following :
    select count(*) from TEST_TAB s
    where hash_key = :hk
    and( R$APP in (x1, x2, ..., x10 )
    or R_CALLS_LOG in ( y1, y2, ..., y756)
    run time: 380 sec
    select count(*) from TEST_TAB s
    where hash_key = :hk
    and( R$APP in (x1, x2, ..., x10 )
    or R_CALLS_LOG in ( select n from BUF_TAB)
    ), where BUF_TAB contains list of values of 1st query
    run time: 17 sec.
    Description of TEST_TAB
    SQL> desc TEST_TAB
    Name Type Nullable Default Comments
    LDN NUMBER
    CID NUMBER Y
    R_CALLS_LOG NUMBER Y
    TRANSAC NUMBER Y
    R$APP NUMBER Y
    STRT DATE Y
    ROW_ID ROWID Y
    DEST_HASH_KEY NUMBER Y
    HASH_KEY NUMBER Y
    INDEXES: NO
    LIST-PARTITIONED: BY "HASH_KEY"
    RECORDS in tested section: ~ 1.5 mln
    It seems that INLIST operator in WHERE works dramatically slowly that join with the same list stored in separate table.
    Is it true for all cases or there is optimal amount of elements in filtration list when INLIST operator will be still best choice?
    Thanks in advance.

    user618999 wrote:
    Is it true for all cases when question has only 1 parameter - amount of items in list, while
    TEST_TAB has no indexes ...As rgeier pointed out don't think that one query technique is better than another in all circumstances. You can over time see what usually works, but nothing is always true. You've found a situation where the inlist iterator works less efficiently but based on other circumstances the join might not work as well.
    An indexed lookup for a table join or subquery is usually a good choice for faster retrieval than a full table scan - unless you need to access all of the rows in the list, in which case it will probably be slower. Without an index an in list might be faster.
    I personally don't use in lists a lot, preferring joins or correlated EXISTS subqueries when the subqueries are properly lindexed. If I remember correctly a hard-coded in list has a limit of 1000 items anyway. In lists might be more efficient if they return a very small set of rows, perhaps less than 5 for fewer rows to search through, and if the underlying query (if any) can only be executed once to produce the list.
    Adding to the confusion of tuning is that fact that recent versions of oracle can perform query transformations before execution. That is, the query can physically change before execution if the optimizer thinks the change will work better. Thus, in lists and table joins can sometimes be converted to the other. In some cases entire table joins can be added or eliminated.
    Edited by: riedelme on Oct 1, 2009 12:55 PM

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • Error when using "inlist operator" in the query filter of Webi 3.1

    Hi,
    We are currently in the process of migrating Deski to webi (BOXI 3.1).
    The problem is, Deski is using the "inlist" operator which is working fine but after migrating to webi the inlist operator in the query filter is throwing the below error,
    *Error Message :*
    A database error occured. The database error text is: ORA-00907: missing right parenthesis. (WIS 10901)
    Appreciate your assistance on this.
    Thanks !
    Regards,
    Perialt

    Karthik ,
    Yes I am seeing an additional paranthesis in Webi SQL query.
    For example plz consider the product table below,
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
    Product.Name IN ( @Prompt('4) Name:','C','Product\Name-M',multi,free)  )
    As a work around in Custom SQL, If I remove the paranthesis the below query is running fine in webi
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
      Product.Name IN  @Prompt('4) Name:','C','Product\Name-M',multi,free) 
    But I want a permanent solution.

  • The query contains a formula with the operator SUMCT

    I m trying to get query ready for Webi, getting the error as 'The query contains a formula with the operator %RT. Therefore, the query cannot be released for OLE DB for OLAP'
    I have not used any kind of s %GT, %RT, %CT, SUMGT, SUMRT, SUMCT and LEAF, also i have suppressed results / over results from the query, over to it, i have removed the calculate results as 'summation' feature and set to 'not defined' for all of my key figures.
    Still getting the error...
    Please suggest.
    Niraj

    hi,
    Ensure that all Link IDs are visible in the lsdal.ini file  located in the \Windows\system directory of the PAS Server as those are then available to all users. The lsdal.ini file may not be correctly updated if: - You have created the BI Link IDs while using PAS in Client Server Mode - You have enabled multi user access for remote desktop. In this case an additional lsdal.ini file may appear in the user specific Windows directory of someone who may have remotely connected to the system to create the Link ID. That additional lsdal.ini file will only be valid for that specific user.
    Also try adding  "ODBOSECURITY=0" entry to the end of the c:\windows\lsserver.ini file on the server.
    hope it helps
    regards
    laksh

  • IN operator parameter in Reports

    Hi all,
    i had a report query parameter like this;
    " where empno in (:eno) "
    when i assign single value to :eno, it runs report perfectly, but whenever i give more than one value to same variable, the report previewer comes out without any data, ( a blank report) and some time give error
    how can i successfully use a list with "IN" operator
    Edited by: user581618 on Jan 22, 2009 11:09 AM

    Use lexical parameter for multiple values,
    where empno in ( &p_empnos )
    and set P_empnos an initial value, say "12345, 54321".

  • IN Operator Parameter using stored procedure

    Hi Guys,
    I'm running a reporting services report using stored procedure and I'm facing a dilemma with the IN Operator in the stored procedure.
    Can someone please help me out debugging the statement below? (run it on AdventureWorks Database)
    Can I have the @Title Parameter based on another select statement something like this 
    Set @Title = SELECT Title FROM TableTitle
    DECLARE @Title varchar(1000)
    set @Title = 'Design Engineer', 'Tool Designer', 'Marketing Assistant'
    SELECT FirstName, LastName, e.Title
    FROM HumanResources.Employee AS e
    JOIN Person.Contact AS c
    ON e.ContactID = c.ContactID
    WHERE e.Title IN (@Title)
    Appreciate all the help on this.
    Thank you
    John

    Hi John,
    For your problem, we can use dynamical statement to solve the issue.
    Here are 2 options to be clarified:
             1. A multi-value parameter will return an array value.
             2. It is not able to pass an array in a stored procedure.
    To solve the issue, we can use the following steps:
    1.              Cconvert the array into string that delimited by “,” using the function “Join” in SQL Server Reporting Services.
    2.              Pass the string in the stored procedure.
    3.              Combine the parameter and the statement into one simply string.
    4.              Execute the simply string.
    Here are the detailed steps for your reference:
    1.       In Report Designer, create a new dataset as “SELECT Title FROM TableTitle”.
    2.       Create a new multi-value parameter, set the available value from the dataset above.
    3.       Set the query of the main dataset as :
    ="spSelect_Title "&Join(Parameters!para.Value, ",")
    4.       Change the stored procedure as:
    ALTER PROCEDURE [dbo].[spSelect_Title]
             -- Add the parameters for the stored procedure here
             --@Query NVarchar(Max),
             @Title NVarchar(MAX)
    AS
    BEGIN
             -- SET NOCOUNT ON added to prevent extra result sets from
             -- interfering with SELECT statements.
             SET NOCOUNT ON;
             DECLARE @Query Varchar(Max)
             SET @Query = 'SELECT FirstName, LastName, e.Title
             FROM HumanResources.Employee AS e
             JOIN Person.Contact AS c
             ON e.ContactID = c.ContactID
             WHERE e.Title IN (' + @Title+ ')'
    --       PRINT ' QUERY = '+ ISNULL(@Query,'NULL')
             Execute sp_executesql @Query
    END
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin
    Jin Chen - MSFT

  • Value of an operation parameter depending on the characteristic value

    Hi,
    Is it possible to set the value of the Normal Duration (or any other parameter of the operation) depending on the value of one characteristic?
    For example: The value of my characteristic A is 2, so I want to set Normal Duration = 10*(Value_of_A) = 20 for the first operation of the standard network. Is it possible in standard SAP???
    Thanks in advance,
    Luis.

    Your question is quite clear, Please go this links may be helpful.
    Tcode realted to variant configuration
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/bc/f48e3823f46f51e10000009b38f842/frameset.htm
    Help materal  related to variant configuration
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/92/58c3fc417011d189ec0000e81ddfac/frameset.htm
    Regards
    Nitin
    Edited by: Nitin  Patoliya on Dec 3, 2008 9:56 AM

  • Formula interpreter logical operator

    Dasylab 10
    I'm capturing voltage from a daq, using formula interpreter to make calculations and then generating a XY graph. As the values are being generated I am wanting to display in a digital display the Y peak value and the corresponding X value. I therefore thought of writing to a variable each time the new value measured is greater the last one and then transmitting this to the display...
    Problem: I don't know how to use the formula interpreter and the logical operators
    e.g. IN(0)>=${VAR1}
    When true, I'm expecting to see the output of the formula interpreter to go high and then I can trigger an action event. However whatever I have attempted so far hasn't worked, so I'm guessing there is something I don't understand
    Can anyone show me an example of how this works?
    Thanks

    Sorry, wrong forum !!

  • Formula Node & Array Operations

    Hello,
    I'm trying to use the formula node to subtract the previous term from the current term (or the next term minus the current term), but I can't figure out how to
    use the array index to do it. 
    I've something along the lines of z_array[i+1]-z_array[i], but it only returns the difference of i+1-i....
    Please see the attached picture.
    Thank you,
    Solved!
    Go to Solution.
    Attachments:
    Formula node.JPG ‏23 KB

    That would be so easy to do in pure Lv code.
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How can we change the default inlist operator in condition pane to equalto

    When a user creates a condition in a WebIntelligence report, the                                            
    default operator is "In List". Can this default be changed to "Equal                                                      
    To" for all users?

    No.
    Sincerely,
    Ted Ueda

  • Web Services.........XML schema of operation parameter?

    This is a generic question :)
    If my implementation fucntion is accepting a XML how can we embed the schema of the input XML in the WSDL so that it can be discovered by user/client?
    Is it possible to define the input XML schema in the element binding? and how?
    In contrast if the implementation function is accepting primitive types as input data , the how does the user/client encode(XML marshall) the information in his post or soap message so as to be understood by the web service.
    Or
    the user can directly write a client program and pass primitive parameters,marshall unmarshalling is done automatically?
    No need to worry about how the data is carried in the post and soap messages?
    Also what are the differrent ways in which a web service can be used and consumed?
    If the user doesnot want to write a client program, but directly pass an http post or soap message, how will the user know how to write the POST/SOAP message in appropirate format(with the rigth XML format in the post body/soap message)!

    Hello,
    There's not one. The primary vision for the web-services.xml file
    was/is to be a linkage between wsdl/soap and the j2ee environment. It
    was not intended to be a starting point for building an application, but
    a semi-private intermediary.
    HTHs,
    Bruce
    Toni Nykanen wrote:
    >
    Hi there!
    I'm just curious to know whether there exists any dtd or schema
    for wls 7.x web-services.xml file?
    The diagram in
    http://e-docs.bea.com/wls/docs70/webserv/wsp.html#1001373
    shows one order for the contents of the web-service element,
    whereas the examples reflect another (being types,
    type-mapping, components, operations).
    Why are the example web-services.xml not tagged with the
    information of the location of the schema?
    Of course building web-services.xml manually is not the first
    thing to try, but since the contents are documented and since
    it gives the best control over the process, it makes sense.

  • Confirmation of a formula in work center in the confirmation

    Hi All,
              I want a result of a formula of work center of particular operation in confirmation. Can any body guide the steps

    Hi Vachanala,
                           1. You create a standard value parameter in OP7B which is to be used in the formula.
                           2. Your standard value key created through OP19 should be containing this parameter which you have created and this key should be assigned in the basic data in the work center. Check generate box before saving the SVK.
                           3. You define the formula which uses this parameter through OP21. You should check allowed for calculation box.
                           4. In the costing tab of work center you maintain the formula against this parameter. If you want to cost it In that case  and should also maintain an activity through KL01 and maintain a price for it through KP26. This activity should also then be maintained against the parameter in the costing tab of work center. Also check the reference indicator against the parameter.
                           5. Assign this work center to the operation in routing.
                           6. Create order, release and do confirmation, if you click actual data system should propose you the quantity as per calculation. Cost will be calculated if you maintained as per point 4, in the planned cost against the order.
                               Please check and revert.
    Regards
    Sm.

  • Report parameter field value has a single quote. need to escape before pass

    Report has a parameter whose value might have a single quote in it. If I pass that value directly into the SQL Command... like
    where ... user_name = {?parm_user_name}...
    which would translate to
    user_name='O'Donnel Honda'
    I am getting an error... so would like to convert this parameter value into 'O''Donnel Honda' before passing into the query.
    I created a formula called parse_user_name with following:
    Replace ({?parm_user_name}, "'", "''")
    And used in the query like
    where ... user_name = {@parse_user_name}...
    I am getting an error like invalid SQL92 character...

    I think you should use the condition like this
    where ... user_name = '{?parm_user_name}'
    keep the parameter in single quote at the command level itself.
    Now use the same formula like
    replace({?Parameter},"'","''")
    This works only if the parameter is a single value parameter but not multi value parameter.
    Regards,
    Raghavendra

  • Dealing with an empty string parameter

    I'd think this should be simple but is driving me nuts. I have a string parameter (lets call it Foo) that is being passed from my C# application to a CR subreport. For this parameter field I have a formula associated with "Display String" similar to this:
    if (IsNull({?Foo}) or (length({?Foo}) = 0)) then
        "Value is empty"
    else
        "Value is " + {?Foo}
    I can never get the "Value is empty" line to appear! I've tried lots of suggestions:
    1. trim and check result equal to '' (two single quotes)
    2. test if equal to "".
    3. Adding false to Suppress.
    It appears that if this parameter is the empty string CR simply does nothing with my formulas and the entire parameter field is skipped.
    If I pass "null" (or any other special string) instead of "" from my C# code and then change the above test to check for that value as shown below things work properly.
            if (IsNull({?Foo}) or ({?Foo} = "null") then
    However I really don't like testing for a special string as there is the remote possibility that it could be the actual value of the parameter.
    Any help most appreciated.
    Dick

    Not surprised and willing to bet there will be a simple answer to this!
    There is something most odd happening when the string value is empty.
    Let me answer your questions.
    1 - How are you setting your parameter value?
    Since I want to be able to pass parameters to the base report as well as its subreports I'm using this method:
            protected void setParameter(string parameterName, object value)
                ParameterFields fields = report.ParameterFields;
                for (int i = 0; i < fields.Count; i++)
                    if (fields<i>.Name.Equals(parameterName))
                        string reportName = fields<i>.ReportName;
                        if (string.IsNullOrEmpty(reportName))
                        {   // give to base report
                            report.SetParameterValue(parameterName, value);
                        else
                        {   // give to subreport
                            report.SetParameterValue(parameterName, value, reportName);
    2 - What OS and service pack are you on?
    Windows XP, SP 3. All updates from MS installed.
    My development environment is either of these two:
    a. VS 2008. Version 9.0.30729.1 SP. ,NET Framework 3.5 SP1
    b. VS 2010 Version 4.0.30319
    3 - What platform are you targeting?
    For now just running on my XP PC but have tested our app on XP, Win7, and Vista. 32 and 64-bit version of each.
    4 - Is this a win or web form application? Win app
    5 - What is the version of your CrystalDecisions.CrystalReports.Engine?
    Version: 12.2.0.290, Product Type: Full
    6 - What is the version of crpe32.dll do you have on your machine?
    I only have one instance of this file in this directory:
         C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    7 - Did you have one of our betas on this machine? No
    Edited by: dcowan on Dec 7, 2010 2:10 AM
    I needed to finish this so I'm closing it.
    In my C# code I placed the following:
                        if (string.IsNullOrEmpty(value))
                            value = "!_Empty_!";
    and in the CR formula I used:
           (IsNull({?CoBrandName}) or ({?CoBrandName} = "!_Empty_!"))
    Everything is now working just as I want. Not an ideal solution but I gave up.

Maybe you are looking for

  • Java application -  processing files on different unix server

    Hi, I was wondering if it is possible to a) read a file that is on a different unix server to the one that my java application is on b) move a file from one directory on the remote unix server to another directory on the remote unix server Regards, s

  • Parse xml cannot handle first line of " ?xml version="1.0" encoding="UTF-16

    Hi, I'm trying to use applescript to parse a few element values from an xml file. It only works if the xml file does NOT have an "<?xml...?>" entry on the first line. The production xml files I use will always have the <?xml...?> entry on the first l

  • Z3 orange hue near "return/back" button on bottok left corner

    Hi, after 3 days of usage, orangy hue has appeared on bottom right of screen near return button location. I figured this could be ips burn so I ran an rgb app but did not fix the problem. I read that the sony Xperia s had a similar issue with yellow

  • Junk Mail from a specific individual making me insane....how can I block it

    I'm getting junk mail from a friend of a friend, and I mark his messages as junk EVERY TIME I GET ONE. Yet, somehow, alas, every message from him gets through to my inbox. How can this (and a homicide) be prevented? If you mark a message "Junk" why i

  • Rendering Ae clips does not complete

    When rendering multiple items in timeline that are After Effects dynamic linked items, render halts in the middle. I have to switch to Ae and then back to Pr to make rendering resume. Anyone else have this? If you do, PLEASE file a bug report https:/