Formula Column with Prompt

Hi,
I have a doubt in Column formula. I have a grid with a prompt selection so that users can select a list of members which will be displayed as the columns. The grid also have a total column(formula column) at the end.
For example, If the user selects three members then the grid will show the selected members and the total column. The total column should be sum of three members similarly when I select 5 members the total should be the sum of 5 members.
Is there a way to achieve this when the number of columns will be dynamic based on the user's selection?
Thanks in advance.

Just choose the sum of particular column e.g. if in Column A you are selecting RTP as 5 members then at the run time it would be 5 columns , but for the summation purpose it is a single column so choose SUM([A]).
If I am not wrong it will solve your problem as I have used it long time back.
Please let me know if doesnt solve your problem.
Thanks
YSP

Similar Messages

  • URL defined in formula column not converting as proper HTML tags

    We are migrating a report to 10Gr2 (10.1.2.0.2) from reports 9i (9.0.2.03); This report has to route to a different web page. For this we have a formula column with meta tag call to refresh;its Contains HTM property set to Yes. But when run, the view source of HTML shows as if the tag is truncated and put in <tt> tag around it.
    Any help on this is very much appreciated.

    Hi svee,
    Thanks for the reply.
    For an example i tried with the bold option in the edit formula inorder to portray the html tags problem while exporting it to the pdf inspite of using the default bold option within the column properites like u said.
    Suppose if i used html tags like
    <br>, </br>
    in the edit formula section or if i used any other html tags which is not present as a default option in bi like bold. At that time while exporting the report to pdf i can face the issue.
    And also i need ur suggestion regarding with the values disappearing for the numeric column if a tooltip is used in it while exporting it to the pdf.
    Regards,
    Saro

  • Can text be displayed in a formula column using mathematical functions?

    I am working with Financial Reports version 11.1.1.3 and I'm trying to accomplish the following scenario:
    Column D is a data column
    Column E is a text column containing the value "TEXT"
    Column F is a formula column with the following formula: IfThen([D]=0,[E],[D])
    What I want to see happen is if the value in column D is 0 then I want the value "TEXT" to appear in column F, otherwise; I want to show the data value that is in column D. Is it possible to display text in a formula column and if so, what is the syntax for that? Or does anyone have another way to accomplish this? Any help would be appreciated.
    Thanks!

    Short answer: No.
    For your particular issue, I would suggest putting your TEXT value in the #zero and #missing overrides in Report Studio.
    In general, Hyeprion Reporting does not do any real text validations or functions like you could use in Excel.

  • Question about formula column

    Trying to use formula column with an nvl. The problem is that if the record is not there the nvl will not work. How do I force the formula column to return something when the record is not there. Below is the formula.
    function CF_1FORMULA0028 return Char is
    myComments varchar(50);
    begin
    select nvl(erActRelData.VALUE,'') into myComments
              from      dpss_gdats.er_activity eractivity,
                                  dpss_gdats.er_activity_relevant_data erActRelData,
                                  dpss_gdats.er_activity_rel_data_name erActRelDataName
                   where eractivity.er_case_id = :case_number
                   and eractivity.date_created is not null
                   and eractivity.ER_ACTIVITY_ID = erActRelData.ER_ACTIVITY_ID
                   and erActRelData.ER_ACTIVITY_REL_DATA_NAME_ID = erActRelDataName.ER_ACTIVITY_REL_DATA_NAME_ID
                   and erActRelDataName.NAME = 'Comments';     
                        return myComments;
    end;

    Modify the last statement to
    return nvl(myComments,'Null Value');

  • Logical Agregated Column with formula

    Hi all,
    I need to create an agregated column of a field that have a formula. I know you haven't understood anything so here is an example :)
    Source Table:
    A B C
    001 'ZZ' 'ZZ'
    001 'ZZ' 'ZZ'
    001 'ZZ' 'YY'
    002 'XX' 'TT'
    003 'JJ' 'JJ'
    Desired Result: (E is--> SUM(CASE WHEN B=C THEN 1 ELSE 0 END)) )
    D E
    001 2
    002 0
    003 1
    What I have tried:
    In the Business Model, I created a column with the option: "Use existing logical columns as the source" where I typed the formula: SUM(CASE WHEN B=C THEN 1 ELSE 0 END)), that rises the following error: "State: S1000. Código: 10058. [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general error has occurred. [nQSError: 22019] Function Sum does not support non-numeric types. (S1000)".
    I changed the formula adding CAST operators for 1 and 0 to be INT but it didn't work.
    * Creating the column "E" in Answers with the formula -->SUM(CASE WHEN B=C THEN 1 ELSE 0 END)) works but I would like to have "E" already in the repository.
    Thanks in advance.

    Use (CASE WHEN B=C THEN 1 ELSE 0 END) using physically mapped columns and not through "Use existing logical columns as the source".
    Then specify sum as aggragation rule.

  • User Prompt in a Formula Column?

    Is there a way to have an user prompt in a formula column in HFM? For instance, Column E = Column B / User Prompt Entry.

    Hi Simran,
    Query properties Supression zero rows /columns would be working only when the entire row or column has zero value and not when one cell among then is zero.
    If you are not interested to see zero values in the formula, I think you should be able to use "zero value display".
    Naveen.A

  • HT3354 How do i create a column with a percentage formula

    Im really struggling creating a line of columns with different formulas.
    colin

    The title of your post and the text of your post sound like two different questions. One is about creating a column of percentages and the other is about a "line of columns with different formulas".  Neither gives enough information about the problem for anyone to provide a good answer, unless we guess at what you are asking. Here is my guess:
    If B2 has a number in it and C2 has the formula =B2*5%, C2 will be 5% of B2. If you copy/paste or fill-down that formula to the rest of the column, C3 will be 5% of B3, C4 will be 5% of B4, etc.
    I have no idea what "a line of columns with different formulas" means so I'm not going to hazard a guess.

  • Table with a column with RANK formula does not sort properly

    Hello,
    I have a table in excel with Rank function that reference another column with numerical values. The results in the column (called Rank) with rank function are as expected but Sorting (ascending or descending) doesn't
    work as expected on the column .  The Rank gets sorted in the following order: 1,15, 2,19, 8 , 4......
    Few things that I've verified are:
    1. Verified that there are no text values in the column.
    2. Tried changing the format to number but this still doesn't resolve the sort issue.
    3. Copied the values from the Rank column to a different sheet and applying sort works as expected.
    Does anyone have any idea on what could be wrong? Appreciate your help!
    Thanks!

    Resolved the issue. I had an incorrect formula in one of the that was referenced by the Rank column.

  • Suppress Missing Data not work in web form with formula column inside

    Dear All,
    I've a planning web form with formula column inside to calculate the variance and % variance. But missing cell can't be suppressed, although I've checked the 'Suppress Missing Blocks' and 'Suppress Missing Data' options.
    Anyone have face the same problem..?? and how to fixed it..??
    thanks.
    Regards,
    VieN

    There is a known issue that sounds like the problem you are experiencing
    10358200 - If a formula column exists in a data form, selecting the Suppress missing option does not hide rows that do not contain data.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Passing columns with UTF8 code on fx formula

    Hi! I'm using obiee 11.1.1.5.0
    I have an analysis that contains HTML Code, some code is passed to a URL, so I need to convert diferent symbols like ó to %C3%B3 etc. I have a lot of symbols...so I can't use REPLACE function in my formula column of my analysis.
    Is possible to use URLEncoder.encode("parameter value", "UTF-8") in my analysis?? How?
    Anyway...which is the best solution to achieve this?
    Thanks!

    Append &charset=utf-8 to the URL.
    If helps mark

  • Prob with formula column plz help!!!!!

    hi
    iam working on a finance report
    where there is a need for opening balance and closing balance colum, i have designed the column the out put comes but the prob is after displaying the opening balance closing balance it again displays a nil opening balance and closing balance for all the values given as input
    its liek this
    opening balance=0.00
    closing balance=0.00
    i have attached the formula which i have written pls help me wats wrong in the formula column
    for opening balance
    function CF_total_dr1Formula return Number is
    begin
    IF :cf_total_dr - :cf_total_cr > 0 THEN
    RETURN(:cf_total_dr - :cf_total_cr);
    ELSE
    RETURN( 0 );
    END IF;
    end;
    similarly for closing balance too

    cf_total_dr is again calculated using a formula.. similarly cf_total_dr
    i have specified the formula below, again this debit balance is a formula column
    function CF_total_drFormula return Number is
    v_bal NUMBER;
    BEGIN
    v_bal := debit_balance(:p_from_date);
    RETURN(v_bal);
    END;

  • User input formula variable with greater than/less than operators for KFG

    Hello all,
    I have used a formula in my query that is a difference of two key figures .For e.g:
    Difference = tax from system A  -  tax from system B.
    Now when the users run the report they should be prompted for the 'Difference' threshold for seeing the report say where difference is greater 100 or equal to 10 and so on.Currrently I have created a formula variable with 'user input' and created a 'condition' to display 'Difference' greater than the user entered value.
    However,it is required to have various selection options for setting the threshold of difference.For e.g User should be able to set say 'equal to'/'greater than/less than/not equal to operator for 'difference' in the initial selection screen of the report.
    With the current user-input formula variable I am not getting these 'greater than' etc operators.Any ideas on how to achieve this?

    Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
    SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
    EG ...
    Show the records where
    the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
    the "End_Year-Wk" data is greater than or equal to "2009-04"
    ... to give everything that was running in that 5 week period whether or not it starts within that time frame
    I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
    So ... there's gotta be a hidden tweak for operators somewhere ...

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Formula Variable with Replacement Path - drillup ref.char and still working

    Hi all,
    I have a requirement, where formula variable (with replacement path) shouldn't work when I remove the reference characteristic from the rows. But this is not the case at the moment
    I have 'Brand' and 'Material' in the rows and there is 'Material Indicator' in the columns. This 'Material Indicator' is a formula and there is formula variable in it with the type replacement path.
    Reference char is 'Material'; Replace with 'Attribute Value' is selected also. As attribute I am selecting one of the attributes of the 'Material'.
    In the report output, I am seeing relevant attribute values when Material is in the rows. But when I remove the Material from the report, I still see the values for this Material Indicator column. But I expect to see blank instead..
    Can you please share your comments?
    Thanks in advance.
    S.P.

    hi,
    Irrespective of the drilldown on Material, the fomula variable will be replaced by material value. This is how replacement variable should behave. You might have to change the design. For  more inputs, let me know your requirement exactly.

  • Formula Column help please - URGENT

    I'm trying to create a formula column as follows:
    function NO_REPLIESFormula return Number is
    NOREPLY number;
    begin
    SELECT COUNT(reply) INTO NOREPLY
    FROM letters
    WHERE reply = 'N'
    GROUP BY ltrtype, batch;
    RETURN (NOREPLY);
    end;
    This PL/SQL compiles fine, but when I run the report, I get the following messages:
    REP-1401 no_repliesformula FATAL PL/SQL error occured. ORA-01422 exact fetch returns more than requested number of rows.
    If I remove the GROUP BY ltrtype, batch, I don't get the error messages, but the result I get is the total no_replies instead of the total no_replies for each ltrtype/batch grouping.
    Could someone please help me with this?
    Thank you.

    Hi irish,
    I think i am not sure about what you are trying to say, but let me guess, You want the values to be return on the bases of "ltrtype, batch". Which mea that you want more then one values, i mean there can be more then one Groups based on ltrtype and batch. and you want to display these values with repective record???
    If i am right, then there is a fault in your code, and that is , you are not specifing in your code that which value is to be diplayed with which record in this report. For that there must be ltrtype, batch colums displayed in the report, you must add those values in your Code in the query, i.e.
    function NO_REPLIESFormula return Number is
    NOREPLY number;
    begin
    SELECT COUNT(reply) INTO NOREPLY
    FROM letters
    WHERE reply = 'N' and ltrtype= :V_ltrtype and batch=:v_batch;
    RETURN (NOREPLY);
    end;
    Where :V_ltrtype and :v_batch are the run time values of each records displayed in the report.
    Remember that if you don't sepecify this then your code will return as many records as many distich values of ltrtype, batch. and your variable NOREPLY can hold only one value at a time. I hope you understand both, Solution and the logic behind the error.
    Please correct me if i am wrong.
    Thanks.
    Mohib ur Rehman

Maybe you are looking for

  • HT1040 I've noticed a spelling mistake on iPhoto book order. Ordered yesterday am I able to change it?

    I've noticed a spelling mistake to an order placed last night for book created in iPhoto on iPad. Am I able to edit this before print?

  • External library from Database 11g.

    Hello, I remember that one of the threads someone from CEP team, wrote that next version of CEP will support data mining and In that case I don't want to stop my research here since I know the results of my tests. Suppose that we are talking about th

  • 3rd request for some wonderful persons help!

    I'm trying to connect across a network with RMI and I get the error: "Connection refused to host 138.79.115.36; nexted exception is: java.net.ConnectException: Connection refused: connect." 138.79.115.36 is the machine my client is on 138.79.115.30 i

  • PS4MSP Authorizations

    Hi I'm trying to use OpenPS4MSP (Version 2.02.00) for downloading project information from PS Module in SAP to MS Project 2003. When i try to connect to SAP through PS4MSP, i am receiving and error msg stating Login Failed. Do i need additional autho

  • I got content code but can't used,why?

    i already got my redeem code for OS X Mountain Lion. I already  key -in first time my redeem code but why i got massage : This code has already been used. Each code may only be used once. Please help me to solve my problem. Thank You.