Parameter based on formula question

Post Author: mmishkin
CA Forum: Formula
I have a formula that calculates a date, I want to create a parameter based on this formula. When I go through adding a new parameter it only shows me my table fields and not my formulas. Can you make a parameter in crystal based on a formula??

Post Author: mmishkin
CA Forum: Formula
Sorry, I don't think I was very clear.
I have a formula field that is a date/time field . I want to create a parameter to select this formula. When I make a parameter it will not let me select any fields other then my database fields (all of my formulas are not listed).  Can I use a formula in a paramenter? I don't remember having this issue before so i'm sure I must be missing something. I made sure the parameter data type was date/time.

Similar Messages

  • How do I create a dynamic parameter based on a formula?

    Hi,
    I've developed a report, in CR 11, that is parameterized based on the field "ticket_date".  I've created a Min and a Max formula so that I can select a date range. This works wonderfully. However, my date list is growing longer by the day and each day I have to run the report I need to scroll through an even longer list of date values. This will become increasingly impractical with each passing month and year.  I would like create a "Year" paramater and a "Month" parameter so that I can first select the Year, then the month(s), then the dates.
    When I attempted to create a parameter based on the formula, "Year (), the formula wasn't in the list of available values to create a parameter on.
    How can I address this requirement?
    thanks in advance!
    Mark

    Hi Abhilash,
    Looks like I was able to create a Year field in the Command - thanks for the tip!
    Before I close this off as answered can you take a look at two sets of SQL I wrote in the Command that I'm getting errors on and offer advice on where the error is occurring.
    Example 1
    The SQL I attempted to write must be close though:
    Select ft.sequence, ft.ticket_date, coff.office_name, comp.subscriptions_id from
    field_tickets as ft, company_offices as coff, companies as comp
    INNER JOIN jobs ON comp.companies_id=jobs.companies_id
    INNER JOIN field_tickets ON jobs.jobs_id=field_tickets.jobs_id
    LEFT JOIN company_offices ON jobs.company_offices_id=company_offices.company_offices_id
    Where comp.subscriptions_id=7.00
    When I attempt to save this I get an error:
    "Failed to retrieve data from the database. Details: Exception: Error Message: Java Heap Space"
    Example 2
    I get the error, "Not unique table/alias: 'custom_jobs_values'" for the following SQL Command
    SELECT companies., jobs., field_tickets., regions., customers., custom_jobs_values. FROM
    companies, jobs, field_tickets, regions, customers, custom_jobs_values
    LEFT JOIN custom_jobs_values ON jobs.jobs_id=custom_jobs_values.jobs_id
    INNER JOIN regions ON companies.regions_id=regions.regions_id
    INNER JOIN jobs ON companies.companies_id=jobs.companies_id
    INNER JOIN field_tickets ON jobs.jobs_id=field_tickets.jobs_id
    INNER JOIN customers ON jobs.customers_id=customers.customers_id and
    companies.subscriptions_id=4.00
    thanks!
    Mark

  • Pass parameter based on login Id?

    Hi Friends
    I should pass client_id as a parameter to my portal pages as a parameter
    based on the login ID ...
    my portal page consists of a report based on client_id
    Can any one suggest me how can i achieve this?
    Thanks
    Ravi

    Hi Friends
    I should pass client_id as a parameter to my portal pages as a parameter
    based on the login ID ...
    my portal page consists of a report based on client_id
    Can any one suggest me how can i achieve this?
    Thanks
    Ravi

  • Creating parameter based on Submit Date from Remedy ITSM

    I am new to creating Crystal Reports and I am using Crystal Reports XI. I am pulling information from BMC Remedy ITSM through an ODBC connection. I have created a report from HPD_Help_Desk that pulls the Incident Number, Submit Date, Submitter, Owner and Description. I am not having any problems pulling the information from the tables. The issue that I am running into is creating a new parameter field that can be used so that when the people that will be running this report can pull information based on a date range of the submit date. When the report is run, it pulls the datetime from Remedy ITSM in a mm/dd/yyyy hh:mm:ss format with AM or PM on the end. I have created a parameter named Date Range that has a static list of values. The Type of the parameter is Date Time. The Value Field is Submit_Date. I have selected true for allowing custom values and allowing range values. The objective is to have the person running the report type in the datetime range such as Start of Range Value: 11/22/2009 00:00:00AM and End of Range Value: 11/28/2009 23:59:59PM so that they get all data for Incidents created from the start of the day on the 22nd to through the end of the day on the 28th providing 1 weeks worth of data. I know selection criteria can be used to run for the previous full week, but this will not help if people want to check on historical data. When the parameter is added to the report, it requests the datetime ranges be entered in a yyyy-mm-dd hh:mm:ss format. I have entered in datetime ranges and it will not filter the data. I receive data back for all dates even outside the range requested. I have attempted to change the format of the Submit Date within the report to match what the parameter is asking for and receive the same results. Any help would be greatly appreciated. Thank you in advance.

    Thank you for the feedback Carl. Again, I am new to this, so please be patient with me. I am not sure what you mean about adding the parameter to the record selection formula. I have drug the parameter field into the report so that it will prompt for parameters before running, but I do not think that is what you are talking about. Please advise.
    To your question about the Submit Date field in the report, when I open up the report and I point at the field for Submit Date the popup shows HPD_Help_Desk.Submit_Date (DateTime). That being the case, I think the answer to your question is that the data type of the data being returned is DateTime. Thanks again for the assistance.

  • Limit values shown in Parameter based on current week

    We have a requirement wherein a parameter can be chosen depending on the current week number.
    For example, today is Feb 3, 2015 (WEEK NUMBER 6), the parameter dropdown should only show
    Week 1
    Week 2
    Week 3
    Week 4
    Week 5
    Upon choosing a specific week, i.e. Week 2, SSRS report will show data where Created By matches the dates in Week 2 which is from January 4, 2015 to January 10, 2015 (SUNDAY is the first day week)
    ----------------------- Sharepoint Newbie

    Hi 120613,
    Because you are using the sharepoint list as the datasource and have some limitation when using query in the dataset, so I recommend you to take reference of the alternative method below which will not effect the filter of the data, you can create an calculated
    field which will use to create the week parameter, the values of the Week list are before the week number of the today's date and get based on the date field in the report.
    Details information below for your reference:
    Create an new dataset(DataSet2) to add the query which have the same structure as in the main dataset but only contain the field "Date".
    Right click the DataSet2 to select the "Add Calculated field" and create an new calculatted fields: name : "Week" and using expression below to get the value(The value will be the week number before the current date's week
    number):
    =IIF(DatePart("ww",Fields!date.Value)<DatePart("ww",Today()),DatePart("ww",Fields!date.Value),Nothing)
    Create the parameter week based on the Calculated field "Week", specify both the Available value and default value by "Get Values from a query"
    Add the filter in the Dataset as below:
    Expression:=DatePart("ww",Fields!Date.Value)
    Operator:In
    Value: [@Week]
    Preview you will got the result as below:
    If the parameter is Multiple and you got some duplicate values, please reference to the article
    Visakh16 have provided.
    If you still have any questions, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Discoverer Report parameter based on subquery

    Hi Guys,
    I have following query which i need to convert into discoverer report
    select hpah.EMPLOYEE_NUMBER,hpah.FIRST_NAME,hpah.LAST_NAME,hpah.PERSON_NAME,
    --hpah.JOB_NAME,hpah.ASSIGNMENT_ORGANIZATION_NAME,
    hpah.ASSIGNMENT_TYPE,hpah.USER_ASSIGNMENT_STATUS,
    SUBSTR(pj.name, 1, instr(pj.name, '.', 1, 2) -1) job_code,
    SUBSTR(pj.name, instr(pj.name, '.', 1, 2) + 1) job_title,
    (select haou.ATTRIBUTE1 from hr_all_organization_units haou
    where haou.ORGANIZATION_ID = hpah.ASSIGNMENT_ORGANIZATION_ID ) Function,
    (select haou.ATTRIBUTE2 from hr_all_organization_units haou
    where haou.ORGANIZATION_ID = hpah.ASSIGNMENT_ORGANIZATION_ID ) org_desc,
    SUBSTR(hpah.ASSIGNMENT_ORGANIZATION_NAME, 1, 6) dept_code,
    SUBSTR(hpah.ASSIGNMENT_ORGANIZATION_NAME, 7, LENGTH(hpah.ASSIGNMENT_ORGANIZATION_NAME)) dept_title,
    hpah.GRADE_NAME,hpah.LOCATION_NAME,hpah.SUPERVISOR_NAME,
    hpah.PERSON_START_DATE,hpah.ORIGINAL_DATE_OF_HIRE ,
    hpah.SALARY_BASIS,hpah.BUSINESS_GROUP_ID,hpah.ASSIGNMENT_ID,
    decode( hpah.SALARY_BASIS, 'ANNUAL', ppp.proposed_salary_n,
    'HOURLY', (ppp.proposed_salary_n *2080),
    ppp.proposed_salary_n
    ) salary,
    sysdate run_date
    from
    hrfg_person_assignment_history hpah ,
    per_pay_proposals ppp,
    per_pay_bases ppb,
    per_grades pg,
    per_jobs pj
    where hpah.ASSIGNMENT_ID = ppp.ASSIGNMENT_ID
    and hpah.SALARY_BASIS = ppb.PAY_BASIS
    and hpah.BUSINESS_GROUP_ID = ppb.BUSINESS_GROUP_ID
    and hpah.GRADE_ID = pg.GRADE_ID(+)
    and hpah.JOB_ID = pj.JOB_ID (+)
    --and   hpah.EMPLOYEE_NUMBER = 100779
    and hpah.PERSON_START_DATE IN
    (SELECT MAX(hpah2.PERSON_START_DATE)
    FROM hrfg_person_assignment_history hpah2
    WHERE hpah2.EMPLOYEE_NUMBER = hpah.EMPLOYEE_NUMBER
    AND hpah2.PERSON_START_DATE <= sysdate )
    order by hpah.EMPLOYEE_NUMBER
    i need to have sysdate as parameter in my report. I want data based on the date i provide.
    how can i make this as an parameter?

    Hi Prashant,
    Subqueries are not Supported in Conditions..As of Disco Plus Rel 10.1.2.54.25
    A plausible workaround can be:
    1. Create a View with foll. Query
    create or replace view TEST_VIEW as
    select hpah.EMPLOYEE_NUMBER emp_no,hpah.FIRST_NAME,hpah.LAST_NAME,hpah.PERSON_NAME,
    --hpah.JOB_NAME,hpah.ASSIGNMENT_ORGANIZATION_NAME,
    hpah.ASSIGNMENT_TYPE,hpah.USER_ASSIGNMENT_STATUS,
    SUBSTR(pj.name, 1, instr(pj.name, '.', 1, 2) -1) job_code,
    SUBSTR(pj.name, instr(pj.name, '.', 1, 2) + 1) job_title,
    (select haou.ATTRIBUTE1 from hr_all_organization_units haou
    where haou.ORGANIZATION_ID = hpah.ASSIGNMENT_ORGANIZATION_ID ) Function,
    (select haou.ATTRIBUTE2 from hr_all_organization_units haou
    where haou.ORGANIZATION_ID = hpah.ASSIGNMENT_ORGANIZATION_ID ) org_desc,
    SUBSTR(hpah.ASSIGNMENT_ORGANIZATION_NAME, 1, 6) dept_code,
    SUBSTR(hpah.ASSIGNMENT_ORGANIZATION_NAME, 7, LENGTH(hpah.ASSIGNMENT_ORGANIZATION_NAME)) dept_title,
    hpah.GRADE_NAME,hpah.LOCATION_NAME,hpah.SUPERVISOR_NAME,
    hpah.PERSON_START_DATE,hpah.ORIGINAL_DATE_OF_HIRE ,
    hpah.SALARY_BASIS,hpah.BUSINESS_GROUP_ID,hpah.ASSIGNMENT_ID,
    decode( hpah.SALARY_BASIS, 'ANNUAL', ppp.proposed_salary_n,
    'HOURLY', (ppp.proposed_salary_n *2080),
    ppp.proposed_salary_n
    ) salary,
    sysdate run_date
    from
    hrfg_person_assignment_history hpah ,
    per_pay_proposals ppp,
    per_pay_bases ppb,
    per_grades pg,
    per_jobs pj
    where hpah.ASSIGNMENT_ID = ppp.ASSIGNMENT_ID
    and hpah.SALARY_BASIS = ppb.PAY_BASIS
    and hpah.BUSINESS_GROUP_ID = ppb.BUSINESS_GROUP_ID
    and hpah.GRADE_ID = pg.GRADE_ID(+)
    and hpah.JOB_ID = pj.JOB_ID (+)
    --and hpah.EMPLOYEE_NUMBER = 100779
    order by hpah.EMPLOYEE_NUMBER
    2. Create another table say TEST_TAB
    create table TEST_TAB (emp_no, start_dt) as
    SELECT hpah2.EMPLOYEE_NUMBER , MAX(hpah2.PERSON_START_DATE) PERSON_START_DATE
    FROM hrfg_person_assignment_history hpah2
    GROUP BY hpah2.EMPLOYEE_NUMBER
    3. Add both of them in Disco Admin and create a join between TEST_VIEW.emp_no and TEST_TAB.emp_no
    4. Bring both these Objects in a new report in Disco Plus
    5. Create a New Parameter (Base it on PERSON_START_DATE Col of TEST_TAB)
    6. Choose Option Create Condition with operator <=
    7. Checkmark "Require User to Enter a Value
    8. Execute Report
    I believe this should work. Either ways let me know if it helps or u get another workaround. (This scenario looks quite interesting)
    Thanks,
    Chinmay

  • Skip to 2nd or 3rd parameter based on 1st parameter

    Hi,
    I have completed a report in Reports 6i and registered in Oracle Apps 11i.
    In this report, I have 3 parameters, P1, P2 and P3. P1 is a fix value: A and/or B.
    In Oracle Apps, how can I "grayed out" P3 (as no user input allow) and auto jump to P2 when user select P1 = "A". Similarly, when P1 = "B", it should auto jump to P3 with "grayed out" at P2.
    Thanks and welcome for any suggestion.

    Yes, it might not be the Report 6i designer tool I should be looking at.
    My question is: When executing a report in Oracle Apps 11i, I need to have the cursor move to Parameter P3 automatically (grayed out P2 field) when I fill in "A" at Parameter P1.

  • Disable or hide a dynamic parameter based on a selection

    I have a report created in CRW 2008. The report is having 3 dynamic parameters and a static parameter.
    The static parameter is a list of 4 values like  indications,controls,Alarms,All .
    Based on the selection of one of theese values I need to access the data from any one of the three dynamic parameters and the remaining two dynamic parameters needs to be disbaled or not selectable.
    What are the choices I am having?

    Please re-post if this is still an issue or purchase a case and have a dedicated support
    engineer work with your directly

  • Value for a parameter based on another parameter value

    Hi all,
    i am using report 6i and 10g db.
    I have to create a report based on some parameter values. For example
    Two parameter named as P_emp_code and P_emp_name
    In the first parameter p_emp_code has list of values like empcode emp_full_name ie like 0002108 Vanitha Lanet Mendez
    when user select P_emp_code i want to display the fullname in p_emp_name .
    I tried as follows in list of values
    select emp_fullname from emp_master where emp_code=:p_emp_code
    then getting error bind variable cannot be used
    Please suggest a way .
    Thanks
    Rincy

    Hello,
    The thing you are asking for set and editing the reports parameter form's value. Then i don't think you can do this by using the report parameter form.
    But there are two alternatives for this task.
    1. Create one form using form builder and pass the parameter and run the report from there. So, you can use the code as you showed in your first post.
    2. Why don't you make this Title setting automatically? I Mean using the gender column (with decode/case condition) of same table.
    -Ammad

  • Displaying second parameter based on first parameter

    Dear Developers,
    In the parameter form or reports, I want to pass value selected
    in the first parameter to the second parameter
    ie. based on the first parameter selected, I would like the
    query written in the second parameter for
    displaying list to display only those values that are associated
    with the first parameter.
    How can I do this?
    I do not want to call report from form with preselected
    parameters.
    Awaiting speedy reply
    Gaurav

    You can't do this in Reports. You need to do it in Forms

  • Cascade parameter based on user input

    Post Author: jalverson
    CA Forum: Crystal Reports
    I'm creating a quoting report for our product development group.  They want a report where they input an item number, then have a drop down box that shows all the sales proposals that this item is on.   The user will then select one of the proposals from the drop down box and run the report based on the item number and the proposal selected. 
    Cascading parameter works but the item list is too long  (20k items) to select from.  It is easier for the user to enter the item number they want.  I can't figure out how to enter an item number in a parameter and then use it like a cascading parameter to populate the drop down box.  If it helps, we are using Crystal Reports XI.
    I appreciate your with this issue. 
    Jeff

    i think u can use GET /SET CURSOR command...check for sytax.
    regards
    Prabhu

  • Fixing parameter based on User in Infoview

    Hi
    I want to know whether there is an option in Infoview to fix the parameter values based on the user who has logged in or any othe similar actions.
    What I want to do is
    I have one report which gives data for different departments. I have included one parameter Dept Name , based on which report data is distinguished.
    I want to fix this parameter for some users like "Accounts" department user can only view data for Parameter "Accounts" only. or "HR" for "HR" only. but "Management" can view data for specific department or all department. This parameter is List of Values.
    The report is working fine. only thing i need to do is to "fix" the parameter value as "Accounts" if any user/group of ACCOUNTS logs in. He should not be able to choose any other parameter value like "HR" or "MANAGEMENT" etc.
    I am using BO X1 R2
    Thanks

    This can be implemented by Row level restrictions. Assuming you are on XI, you can do this in the universe by going to Tools>Manage Security>Manage Access Restriction.
    You can also read the Designer guide for more details on how to accomplish this.
    Kashif

  • Value based hierarchy 11g question

    Hi,
    in my BMM i've created a level based hierarchy composed of two levels: TOTAL and Audiologist
    Total level is setted as Grand Total level and doesn't have logical columns.
    At audiologist level insted i drag and drop two logical columns: Audiologist Code and Audiologist Name
    Then i created two keys.
    First Key: Audiologist Code - Use to display: None
    Second Key: Audiologist Code and Audiologist Name - Use to display : YES
    Graphically my hierarchy is as follow:
    Total-----
    Audiologist
    Audiologist Code
    Audiologist Name
    Now i would like that if i drill down Total appear simultaneously two columns: Audiologist Code and Audiologist Name.
    Is it possible? I remember that in 10 it was.
    It's quite urgent.
    Thanks

    Based on my experience of OWB10gR2 the option to create a "Value Based" hierarchy is only enabled if you create an AW based OLAP model. If you want to create a ROLAP model then I do not think this is possible.
    Question is why create a ROLAP model when you could get better performance and more powerful analytical features by using a multidimensional model within an analytic workspace.
    Keith

  • Does BOXI support crystal reports with parameter references in formulas?

    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.

    Hi,
       In Crystal Reports under File -> Report Options >check convert Null Values to default > Verify on first refresh > Verify stored procedures on first refresh.
    This corrected the issue by allowing the query engine time to locate those columns and map them to the query being sent by the report.
    The convert null values was added because those field were being used in the record selection and grouping.
    Regards,
    Vinay

  • Formula Question: What is the formula to find how many duplicates I have in my table of data. e.g Sally, Sally, Sally, Tom, Tom, Ben. Answer by formula Sally 3, Tom 2, Ben 1

    Example of Data:
    A1
    2222222345
    2222222345
    2222222345
    2222222345
    2222222346
    2222222346
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    Examplae of answer I would like the formula to provide:
    I also can not manually type coullum A I need the formula to auto full that aswel. As there is to much data.
    A2
    B2
    2222222345
    4
    2222222346
    1
    2222222347
    6

    Hi Jessica,
    Here's my take on it, using the sample data in your original post, and using the same solution with the names in your question.
    In the Data table, column A contains the list of numbers in your original post. I've rearranged them in random order to demonstrate that the order of entry does not matter for this method.
    Data::Column B contains the names in your question, each assigned to one of the numbers in the body of your post.
    Column C contains an index showing the first occurrence of each distinct number in Column A. This index is used to fill both columns in the Summary by Number table.
    Column D contains an index showing the first occurrence of each distinct name in Column Bt. This index is used to fill both columns in the Summary by Number table.
    Both formulas are the same, except for the columns referenced (highlighted in the second formula below).
    Formula: Data::C2: =IF(COUNTIF($A$2:A2,A2)=1,MAX(C$1:C1)+1,"")
    Formula: Data::D2: =IF(COUNTIF($B$2:B2,B2)=1,MAX(D$1:D1)+1,"")
    Both formulas require that row 1 be a Header Row, and that the contents of C1 (and D1) be Text, nothing, or a zero. Both formulas are filled to the end of their respective columns.
    Summary by Number contains two formulas.
    A2: =IF((ROW()-1)>MAX(Data :: $C),"",LOOKUP(ROW()-1,Data :: $C,Data :: $A))
    B2: =IF(LEN(A2)>0,COUNTIF(Data :: A,A2),"")
    Both are filled down to the end of their respective columns.
    The first formula checks if its row number minus 1 is greater than the maximum value in the index column. If that is TRUE, there are no more values to look up, and the formula returns an empty string (which appears 'blank'). If it is FALSE, the LOOKUP the value in Data::column A corresponding to the value of ROW()-1 in Data::column C.
    The second formula checks the LENgth of the entry in the column to its left. If the length is greater that 0 characters, there is a countable value in the cell, and the formula passes control to COUNTIF, which counts the number of times that value is found in Data::column A. If the length of the value in the cell to the left is zero, then the cell contains an empty string, and the formula passes control to the part after the last comma, which enters an empty string in the cell containing the formula.
    The formulas in Summary by Name are identical to these except for the (bolded) references. These are incremented to the right; C -> D, and A -> B to match the Data:: columns containing the names and the names index.
    Regards,
    Barry

Maybe you are looking for

  • Why is my Mac Book Pro so slow?

    Hi my Mac Book Pro is running really slow. It takes ages to perform simple tasks such as opening apps and doing basic jobs. I have run a check on the computer using Etresoft and the results are pasted below. Can anyone see anything wrong or have any

  • Can't sync to more than one library at a time

    I have deauthorised my desktop running XP,installed latest version of iTunes on laptop running Vista and authorised. Connected iPod to laptop and tried to sync but keep getting message that "iPod is already synced to a library and cannot be synced to

  • Downloading Lightroom 4 and Adobe Creative Suite 5.5

    Getting new computer without disc drive. I have Lightroom 4 and Adobe Creative Suite 5.5. Can I download these to install on new computer? I have discs for Creative Suite but the LR was downloaded originally so I don't have the disc. In the past, Ado

  • ERROR The Audio Device supported by this application is not detected. the application will ex

    Sound is fine but I get error message every time I try to start any of the creative applications that come in mediasource like the graphic eq, speaker settings, surround mixer, EAX and THX consoles; the error: The Audio Device supported by this appli

  • Multiple SAP User Access Issue?

    Dear Expert, SQL Express 2005 Wndows Server 2003 Client PC RAM 1GB Server RAM 16GB SAP Version 8.8 PL15 14 Store Procedure When multiple user connected with SAP (Logedin) at that time any user add any SAP document then all remaining user hanged appro