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

Similar Messages

  • 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

  • Selecting a column in Answers report based on user prompt/ apply filter

    I need to do the following in OBIEE Answers report (version 10.1.3.4.1):
    1) Think of a simple table with dim TX_type and some measures like month_jan, month_feb, month_mar
    so the fact table looks like (column names) tx_type, month_jan, month_feb, month_mar
    2) I need to select the measure column based on a user dashboard prompt, prompt populates a presentation variable var_month = jan or feb or mar
    3) I need to select the correct measure (one of these month_jan, month_feb, month_mar) and then apply column filter based on the dim TX_type to split the values of these into multiple columns for report. So the report may look like (in Answers)
    Sales , Tax, overheads
    where Sales may be defined as sum(month_jan) where rows have TX_type = 'sales'
    where Tax may be defined as sum(month_feb) where rows have TX_type = 'tax'
    where overheads may be defined as sum(month_mar) where rows have TX_type = 'overheads'
    IF the user selects jan
    IF user selects Feb then the 3 report columns are based on month_feb and likewise for month_mar
    I cannot use column selector option as the report column further apply filter in column filter definitions in Answers...
    4) When I try to build the column filter using a presentation variable (var_month), the presentation variable is not getting populated in the column filter.
    For e.g. IF var_month = 'jan'
    THEN month_jan (let us assume the logical column name is month_jan too)
    ELSE month_feb and so on...
    However, the var_month always shows 0 in the IF clause. If we used a repository variable instead, it works fine. But since repostory variable cannot be changed on the fly (by user prompt) it is not usable.
    We cannot change fact table defintion....and we have 12 measures column and about 8-10 different colum filter based report columns using this measure.

    Hi shyamvaran,
    have you thought about a SQL statement in the prompt, something like:
    SELECT
    case when 1=0 then Table."Column" else 'Jan' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Feb' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Mar' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Apr' end
    FROM "Subject Area"
    etc...
    Use this to give you the 12 values for your months then give the prompt column a presentation variable name and set a default value in the 'Default To'. Also set the same default value for the filter.
    A couple of points:
    1. If you're transforming the presentation variable from 'Jan' to 'month_jan' you may need to edit the syntax for the filter column (not using the dialog box).
    2. If you're transforming the behaviour of a dimension / measure column in the report, have you specified the syntax correctly, e.g. sum('@{pres_var}')?
    Hope this helps,
    Justin

  • 1 User Prompt for 2 rows in Financial Reporting ?

    Hello,
    for 2 years, I am struggling with following-
    we have very detailled (detailled in 2 or 3 dimensions - let's say here: CBU and CostCenter ) reports, which run very long
    in order to give user the overview/total as well, we want to give the total over all 2 or 3 dimensions only
    the user should be allowed to choose 1 or more values (CBUs) via user prompt
    current workaround is to have 2 user prompts (1 for detailled combinations) and (1 for total) and asking the user to fill the CBU 2 times
    if user is not chosing same CBU(s), then report is inconsistant:
    as many people have to use dozens of values and because there is no select all/ deselect all function - the handling is very annoying for the users.
    Sample Report Definition
    ...........................................Dimension 1...........................................Dimension 2
    Row 1 (of report definition): Descendants of Prompt for CBUs..............Descendants of Costcenter
    Row 2 (of report definition): Prompt for CBUs....................................Costcenter Total
    by this, we get a sample output like this: (Projects are the level 0 members of CBUs in CBU dimension)
    ...........................................Project A from CBU I.....................CostCenter X...............50
    ...........................................Project A from CBU I.....................CostCenter Y...............20
    ...........................................Project B from CBU II....................CostCenter X...............10
    ...........................................Project C from CBU III...................CostCenter Z...............100
    ...........................................Project D from CBU III...................CostCenter X...............200
    ...........................................CBU I..........................................CostCenter Total..........70
    ...........................................CBU II.........................................CostCenter Total..........10
    ...........................................CBU III........................................CostCenter Total..........300
    Problem is:
    I would like to define for
    Row 2 Prompt for CBUs
    and for
    Row 1 Descendants of Same as Row 2
    but then I get the error "5200 : Error executing query: +Server+/+Application+/+Database+/+User+/Error(1001005) Unknown Member [Same As Row  2] in Report
    any idea how to workaround with that ? (have same problem with *Children of Same as Row 2*
    I tried to combine *Same as Row 2* with *RelativeMember & Offset -1* definition in reporting is then: Relative to Same As Row 2 offset by -1
    - but no success - all I achieve is a true Same as - resulting in duplication of all data of Row 2 and nothing from row 1.
    Any other ideas, how to combine a same as function with functions like parent,children,descendants or relative member ? Did I do anything wrong in combining them or is the relativemember function not working in 9.3.1 ?
    Please note, that these detailled reports typicially run 10 to 20 minutes - so telling users to run 2 reports or including lot's of not needed data or first retrieving and then hiding again is not really helpful - I would also not ask, if this function was not used in dozens of reports.
    The user prompt function in financial reporting is the most used functionality in our reports- the users run approx. 100 reports a day - and fill between 3 and 10 user prompts (with a lot of default values & substitution variables) - this appeared the most efficient way for unexperienced users, who need different data every day.
    unfortunately, it does not allow the report designer to allow either 1 or many values
    it seems to struggle with our special request of "children of same as"
    and it has no "select all" / "unselect all" button - which would allow the user to select all/none of the Choices List, defined in the user prompt.
    Please do not recommend usage of Analyzer - this tool is far to slow, has no cancel button and the users simply go lost.
    Smartview is too risky for majority of our users, as they would use the refresh button only - and not zoom in & zoom out - and miss a lot of new combinations by using old smartview-excel-templates (from previous month/forecast)
    Any help on any of these items would be highly recommended.

    If I understand correctly you would only have one CBU on any given report.
    Instead of prompting for Row 2 and pulling the totals from the Outline. You could delete your current Row2 and have the report provide the totals based on the data results from ROW 1. Insert a row formula for Row 2 and sum the results for that paticular column.
    Formula:
    Sum([1])
    Edited by: ronnie on Apr 21, 2011 9:51 AM
    Edited by: ronnie on Apr 21, 2011 9:52 AM

  • Can formula column values be used as parameters

    Post Author: vdm
    CA Forum: Formula
    Hi,
    I have various formula columns setup in my crystal report, these formula columns act as prompts when end users run the report. i am using crystal reports xi and sql server databse.
    Now I would like to use these formula columns to restrict my result set. basically, these should act as predicates (where clauses) to my query.
    Is there a way to pass formula columns as parameters to stored procedures or to commands or to simpy add them to a sql query ?
    thanks in advance

    Post Author: foghat
    CA Forum: Formula
    Have you tried adding the formula fields as a filter in the Record Selection Formula editor?So  Report --> Selection Formulas --> Recordand add: {database.field_a} = and {database.field_b} = and so on 

  • Grouping of data based on user prompt having a list of dimensions

    Hi All,
    I have a requirement to be able to group data in OBIEE request or Dashboard based on user prompt selection.
    The prompt should list the Dimensions Available
    e.g.
    Dimensions: Product, Region, Employee
    Fact: Sales
    The report is to display sales total for the quarters of the current year.
    The user prompt should list the available dimensions (In this case - Location, Employee and Product).
    If I choose Product, the data is to be grouped by Products - Layout having a simple tabular grouping with Product names as Group headings.
    Similarly any other choice of Dimension from the prompt should group the data by that dimension and have the dimension values used in the group headings.
    How could we implement this? I understand this type of requirement (ability to choose dimension) is met in some OLAP reporting tools.
    I have used multiple views and the View Selector for similar requirements previously, but looking for a dynamic solution here.
    Any pointers or solution will be great.
    Thanks,
    Kiran
    Edited by: Kiran Kudumbur on Sep 8, 2009 5:43 PM
    Edited by: Kiran Kudumbur on Sep 9, 2009 12:42 PM
    Edited by: Kiran Kudumbur on Sep 10, 2009 2:26 PM

    Hi All,
    I used column view to address this requirement.
    Thanks,
    Kiran

  • How to use a Formula Column in the main query?

    Hi All,
    I've tried to use a formula columns defined in some query in the condition of that query like this:
    where (:cf_ex - :cf_ex2) >= 5
    but when I run the report no data returned! Why? and how to use it the condition of the query?
    Note: I'm using Forms 6i

    where (:cf_ex - :cf_ex2) >= 5You cannot do that. Formula columns are not part of the select statement (which runs in the database), but are processed in the report.
    When you created this query, my guess is that you got the message "Note: the query Q1 has created the bind parameter(s) cf_ex, cf_ex2". Check these User Parameters in your data model. So, you are actually referencing user parameters in the query, not formula columns.
    I made a computations and things using PL/SQL that can't be done in the select statement in the data model!If it's pl/sql you can probably use that in your query. Create some database functions for cf_ex and cf_ex2 and use these in your query.

  • Using the 'LOG' Function in a Formula Column

    If I write the following SQL statement at the SQL prompt, it works :
    SELECT LOG(sal,10) FROM emp ; But, if I write a similar statement in the formula column of a report, then it does not work :
    SELECT LOG(sal,10)
    INTO x_variable
    FROM emp
    WHERE empno = :empno ;
    return (TRUE) ;
    It would be great if someone can help.

    Try This..
    In the formula columns pl/sql place the following:
    function cf_1Formula return number is
    num number;
    begin
    num := log(sal, 10);
    return ( num );
    end;
    -- cf_1 is the formula col name
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    If I write the following SQL statement at the SQL prompt, it works :
    SELECT LOG(sal,10) FROM emp ; But, if I write a similar statement in the formula column of a report, then it does not work :
    SELECT LOG(sal,10)
    INTO x_variable
    FROM emp
    WHERE empno = :empno ;
    return (TRUE) ;
    It would be great if someone can help. <HR></BLOCKQUOTE>
    null

  • Formula column equivalent in Data Template

    Hi all,
    I'm working with my first data template and fumbling my way through. I was able to generate the XML output and apply my template. I have some idea on how to burst too, but I'm stuck on how to get the current user's email address. In Oracle Reports, I could just create a formula column and get any specific information needed. How do I do the same in Data Templates?
    TIA,
    Alka

    HI,
    Can I know How can we create the formula column like if then else logic in the Data template?
    Regards
    Boopathi

  • Using In operator in Formula Column,URGENT!!!!!!!!!

    Hi...
    I want to ask if I have a formula Column(REPORTS 6i),and I want in where condition using parameter to some condition as this example:
    function CF_1Formula return Number is
    S NUMBER(10);
    begin
    SELECT SUM(SAL) INTO S FROM EMP
    WHERE DEPTNO IN (:DEPT);
    RETURN(S);
    end;
    Where :DEPT is user parameter of char Datatype and it is value 10,20 and may be 10,30,40
    and so on.
    on runtime the sql will be:
    SELECT SUM(SAL) INTO S FROM EMP
    WHERE DEPTNO IN (10,20);
    but this not work.So what is the correct way to deal with this sql stat.,
    and :dept always have different values.
    So PLS any ONE help me ASAP

    Something like this will work (10g onwards)
    SQL> ed
    Wrote file afiedt.buf
      1  with req as (select '&required_empnos' as empno from dual)
      2  --
      3  select *
      4  from emp
      5  where empno in
      6    (select regexp_substr(empno, '[^,]+', 1, rownum)
      7     from req
      8*    connect by rownum <= length(regexp_replace(empno, '[^,]'))+1)
    SQL> /
    Enter value for required_empnos: 7839,7499,7934
    old   1: with req as (select '&required_empnos' as empno from dual)
    new   1: with req as (select '7839,7499,7934' as empno from dual)
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
    SQL>

  • FORMULA COLUMN EXECUTION

    Hi all!
    I am using Report Builder 6i.
    My report has several Groups (shown below)(that are user created, ie. not created due to the query).
    Group_Organiser1
    ------Group_Organiser2
    ------------Group_Organiser3
    -------------------Group_Organiser4
    I have a Formula Column(FC) in Group_Organiser1. I want this FC to be executed only once, regardless of the number of rows included in/by the group. Hence, i want the FC to execute only when the value for Organiser1 changes (Eg. if there are 4 rows with Organiser1 = O1 and another 3 rows with Organiser1 = O2, I want the FC to execute only once when value changes from O1 to O2).
    Currently the FC executes each time a row (that meets the grouping criteria, ie. 4 times for O1) is included in the group.
    Hope this is enough information to solve this problem.
    Eagerly waiting for any response...
    Thank You.
    Message was edited by:
    One

    Thanx Aguero for your reply but sorry to say it does not solve my problem.
    I really need to control the number of times the FC executes because if it executes too early (or too often) it does not count all the people below Organiser1, hence i need it to execute just before the value for Organiser1 changes.
    This is my 'program logic' for the FC:
    -depending on who(hence designation) is retrieved below Organiser1, increment the User Parameters(UP) :AC, :DC, :MOMM etc (which indicate/represent the various designations).
    -then when Organiser1 is about to change, using the non-zero UP return an output of the form "AC: 1, DC: 3, MOMM: 2"; and also reset the UPs to 0 (zero).
    So, you can see that if the FC executes too early (or too often), the UPs are reset too early.
    To give an analogy, my requirement (for the FC) is similar to 'Reset At' property of Summary Columns; my FC needs to Reset At/Execute only when Organiser1 changes.
    (Another problem with what Aguero has suggested is that Organiser1 values are retrieved from the database so i have no way of knowing who is going to be retrieved.)
    Thank You.

  • Why is the formula column returning garbage?

    I've set up a query that performs a full outer join on two tables, returning one field from each table. Each of these fields is created by concatenating several other fields from that table, i.e.
    Select a.field1 || a.field2 fielda, b.field3 || b.field4 fieldb from tablea full outer join tableb
    on a.field5 = b.field5
    where (a.field5 = :value or b.field5 = :value)
    For any :value one or more records exists in either tablea, tableb, or neither-but never in both. This works fine in SQL*Plus, returning values in fielda, fieldb, or neither-but never in both, just as it should.
    I then set up a formula column in the Group for the query, returning either fielda, fieldb, or an empty string depending on :value, i.e. If :value = 'A' then return (:fielda); ElsIf :value = 'B'; then return (:fieldb); Else return (''); End If;
    In the layout I set up a repeating frame sourced to the Group, and in the frame I put a field sourced to the formula column. But the field is displaying garbage. Any ideas why?
    Thanks.
    Edited by: user6931915 on Dec 6, 2010 1:36 PM
    OK, it's not returning garbage-it's just not returning the right data. It was appearing as garbage because the field was only large enough for 2 characters & I'd mistakenly left it set to Fixed.

    Since I'm so new to OS X Server - I have made many mistakes with it in my home learning environment - and therefore learned quickly to make image backups every step of the way - so restoring to v2.1 was very quick and simple.
    I also wanted to point out - this problem is not limited to the main screen of the Wiki.  If you disable the Wiki - but leave the default website enabled - the default website will display - but if you click on the change password link - it should pop up an enter user id, old password new password window and should also automatically switch to a trusted ssl connection - assuming you have a trusted certificate correctly configured.  This functionality works fine in Safari, Firefox and Chrome - but the same behavior occurs on the password change screen in IE9 as it does in the Wiki.
    I am now looking into submitting this to bugreport.apple.com.  I will report back after I do that.
    ~Scott

  • Need to get data for month entered in  user prompt to prior 12months.

    Hi,
    I have a report where i need to display total amount for current month  to prior  12 months data...first column will be current month, second column is (current month-1),3rd col: (current month-2)....( current month-12).
    Is there any way I could use current date to get previous 12 months in  variables?
    For example: if  current date is 02/15/2010, I need get  data for 01/2010, 12/2009, 11/2009,....01/2009.
    For example: if I entered Month: 03  and year:2010 in prompt , then I need to get data for prior 12 months to that in the prompt for month:03?.

    The only way to do this is using restrictions on Universe... here you can have the restrictions for every month or a range using the user prompt and the system date.
    Regards

  • Display of user entered date in one column

    Hi Guys,
    Is it possible to display user entered date(any date) in column of all rows?
    I need to calculate no of days(User entered date-Deposit date).
    Please give some input.

    Hi Sagar,
    How can u display user enterd date in a column?
    For example if user entered 31.03.2007 as input,i need the same date(31.03.2007 ) to display in all rows of the column,so i can use it in the formula.
    Thanks.

  • Diff. between Formula column and Placeholder column

    Can any one explain me the difference between a formula column and place holder column in Reports.

    Place holder columns are used to hold a value and they are populated by formula columns and in the following places.
    - the Before Report Trigger, if the placeholder is a report-level column
    - a report-level formula column, if the placeholder is a report-level column
    - a formula in the placeholder's group or a group below it
    (the value is set once for each record of the group)
    But Formula columns perform a user defined computation on one or more columns including placeholder columns. You can set the value of placeholder column in a formula column. But you cannot set the value of a formula coulmn in a placeholder column's PL/SQL.
    Regards,
    Siva B

Maybe you are looking for

  • File Not Found problem

    I am currently working on a project in which I use a form (enctype=multipart/form-data) for the user to select a file to upload. I have written all of the code to upload the file (which works correctly) and am using the com.oreilly.servlet package to

  • How to setup usb card in pci express slot

    how to setup a usb card in a pci express slot,

  • Viewing movies in Aperture

    I have just upgraded to Aperture, as the Apple Store suggested that with the amount of photos we take & manage, it would be a worthwhile upgrade. However, the videos we could view in iPhoto are now stated as an "Unsupported Format" in Aperture. Is th

  • How to view Word DOC using Word Viewer

    I am a new administrator for a SharePoint 2010 farm with 10s of GB of Microsoft Word documents, most of which are in Word 97-2003 DOC format.  I have recently configured the Word Viewing service and can of course view Word 2010 documents saved to the

  • Web Service client, some loose ends

    Hi, I'm working on a portal service which will act as client towards a Web Service outside the portal. Also a Repository Manager will be created that handles the portal service for unification. Environment is NW04 SPS15 + NW Dev. Studio. The Web Serv