Formula Expert?

Post Author: mohamedsaleh70
CA Forum: Formula
Greetings,
I hope some expert would help me in this problem.
I created a report in VB 2005 Pro. Then, I tried to create a formula. I went to the Field Explorer and right clicked the Formula Fields.
I named it. But when The Formula workshop's Formula Expert opens, I found the (Custom Function Supplying Logic) Empty,
only an empty node (Report Custom Functions) without any contents.
How can I make it show ...The Repository Custom Functions..... and .....Crystal Repository..... Crystal ...etc.
Thanks for all friends.

Post Author: bryanflora
CA Forum: Formula
Custom functions means you have a central library for keeping those functions.Normally, it's BOE or CRS.But if you only have VB 2005 in hand, it's not possible to use custom functions. Bryan Tsou@Taiwan

Similar Messages

  • Need Help From a Formula Expert

    If you are a brave formula expert looking for a challenge, then please read on! I'm stumped!
    I use Numbers to keep track of my reading. I have a sheet for books, where one row is used for one book. I have one column to record the author, one for the title, one for the genre, one for the number of pages etc. The column on the far left is devoted to checkboxes to tell me which books I have finished. I also have one column for the start date and one for the end date. This means that, using formulas, I have set up a column to show me how many pages per day I have read of each book, by figuring out how many days it took me to read a book and then dividing the number of pages by that number of days.
    What I want to do now is very complicated:
    On a separate sheet, I have set up another table, which I want to tell me my average reading speed (in pages per day) for each genre. I have used the SUMIF function to do this - this function adds up all the 'Pages Per Day' values in rows where the 'Genre' values equal a certain thing (eg 'Fantasy'). I have then used the COUNTIF function to count how many fantasy books there are, so that the sum of the values will be divided by this number. This gives me the average number of pages per day, but only for the Fantasy books.
    At this point, I was feeling very pleased with myself - but there is one more problem.
    The sheet contains books that I have finished AND books that I have not finished yet. The books which I have finished are marked by a tick in the checkbox. I do not want books I haven't finished yet to be counted in my averages. So what I want to do is modify my formula so that it only counts values in rows where the box in the first column is ticked. I can't figure out how to do this, because the SUMIF and COUNTIF functions only allow you to put one condition in, and I need to put two conditions in - the genre and the checkbox.
    In summary - I need a formula to calculate the average of the 'Pages Per Day' values, but only from rows where the genre is fantasy AND the box is ticked!
    HELP!!!

    There are many ways to think of this, but I think all of them require the introduction of an additional column in the first table. One way is for this new column to have 1's for the books you've finished and 0's for the books you haven't. This can be done with a formula like:
    =IF(ISBLANK(EndDate),0,1)
    Then, instead of using COUNTIF() in your averaging formulas, you can use SUMIF() on this new column. As such, perhaps you don't need the checkbox column any longer. This sounds redundant with the existence of an EndDate, and would save you the problem of checking and entering a date when you finished a book (and the potential for an inconsistency).
    Another, perhaps more general approach, would be to have the new column have a formula like:
    =IF(ISBLANK(EndDate),"", Genre)
    Then SUMIF()s and COUNTIF()s can be made conditional on this new column.
    In any case, if you find this artificial new column unsightly, you can hide it.

  • Formula Experts Please Help! - Extracting text in numbers

    This may be very simple, but I have cells with a variety of text in it. I want to test the text to see if it contains a value, and if it does return one value, if not another.
    eg. cell contains text "01239 Personal drawings account 89"
    Is there a way in one formula to check if the text contains "personal" and return a value if it true or false?
    My formula: =IF((SEARCH("PERSONAL", T(cell ref)))>0, "YES", "NO")
    This only works if the text contains 'personal' otherwise it returns an error.
    I'd like to nest it into one formula if possible, but I'm not sure the easiest way.
    Many thanks.
    Paul

    Paul,
    Great, glad I could help. Sorry if it didn't completely satisfy. Here's a more refined version which I didn't offer on the first serving because it somewhat clouds the primary function. You may find that you would prefer that testing blank cells gives a blank result rather than a "No" result. The formula for that simply requires that you wrap the first formula in an ISBLANK test as follows: =IF(ISBLANK(B2), "", IF(ISERROR(SEARCH("PERSONAL", T(CellRef))), "No", "Yes"))
    Happy Numbers-ing,
    Jerry

  • Filling in the Blanks - Formula for "specific" fill of blank cells

    I am still in the midst of my super extended spreadsheet project and I have come across one more issue that I am sure has an easy solution (using a formula). What I have is a table like this:
    !http://i142.photobucket.com/albums/r103/foenixfortean/Blanks.jpg!
    What I need is for every blank to be filled with the previous word directly above it so the original file would end up looking like this.
    smooth
    smooth
    tax-free
    public
    public
    fair 1
    fair 1
    part-time
    part-time
    inland
    inland
    another
    another
    another
    another
    agricultural
    cold
    cold
    cold
    cold
    cold
    freezing
    freezing
    I would just do it by hand but seeing as how my spreadsheet has 60000+ entries it would be much nicer to let the computer do the work, right?!? Are there any formula experts out there who might be able to help me come up with one for this? Thanks in advance!!

    You can do this using a simple formula.
    To fill column B, for example, enter this in B2:
    =B1
    Click Accept, then drag the handle at the bottom right of B2 down to fill the rest of column B.
    When you enter data in any cell in column B, the entered date will replace the formula in that cell, and the formulas in the cells below will copy the entered data into every cell below until blocked by the next cell filled with entered data.
    Regards,
    Barry

  • Field name is not know error when trying to add a filter

    Hello all!
    I need to add a filter dinamically to display a report. I'm using Crystal Reports 10 w/ RAS server.
    There is an sql statement in Database Fields > Command. It uses a join and a correlation name for table name: TT.START_TIME.
    I am getting a "Field name is not known" error:
    "This field name is not known. Details: errorKind Error in File C:\WINDOWS\TEMP\{D375AB61-F7AE-4BCC-AF5E-6702C0EFDE10}.rpt: Error in formula . '{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)' This field name is not known. Details: errorKind"
    I tried to specify the field the following ways:
    Command.START_TIME
    TT.START_TIME
    START_TIME
    TIME_TRACKER.START_TIME (time_tracker being the table name)
    MAIN.TIME_TRACKER.START_TIME (main being the schema)
    All of the above is giving the same field name not known error.
    I am adding the filter the following way:
            String whereClause = "{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)";
            IFilter filter = rptClientDoc.getDataDefinition().getRecordFilter();
            filter.setFreeEditingText(whereClause);
            rptClientDoc.getDataDefController().getRecordFilterController().modify(filter);
    I also tried the following where clause:
    String whereClause = "{Command.TT.START_TIME} > DateTime (2006, 08, 01, 09, 00, 00) AND {Command.TT.START_TIME} < DateTime (2007, 08, 24, 04, 45, 00)";
    still doing the same thing.
    If anyone could please help me w/ this I'd really appreciate it!
    Thank you!
    Anastasia

    The first formula was created using the selection formula expert. I only added the TT part after it didn't work giving the same message. The name the expert gives it after I click on the field is {Command.START_TIME}. Still gives the invalid field name error. -_- Could the rest of the forumula be causing the problem?
    In regards to parameterizing the SQL Command, I spoke w/ the gentleman who creates these reports in Crystal, he says it's not possible, because sometimes we don't want a where clause and sometimes we do.
    Is there a way to directly edit the SQL string itself which is in the Command through java?
    Thank you very much for taking time to respond.
    Anastasia

  • Talent Management - Objective weightage

    Hi,
    Now, we are in 11.5.10.2 FP K RUP1.
    Assume that, I am setting 4 objectives. Each objective has some weightage value, (Say objective 1 is 30, Objective 2 is 40, Objective 3 is 15, Objective 4 is 15). So, here, the total weightage for all objective is 100%. If the user enters more than 100%, it should show an error.
    Note: I have added 0,5,10...100 in the lookup HR_WPM_WEIGHTING.
    Also, I would like to know the difference between weightage scale (HR_WPM_WEIGHTING) lookup and "Target value" under Measurement tab in Update Objective page.
    Thanks in advance.

    Yes, that is essentially what I was suggesting. I'm not a Fast Formula expert, and I know there are limitations with them, but the concept was to store the weighting factor outside the FF and to read the data and process it inside the FF. The objectives and competencies rating values are going to be configured through a rating scale, so that seemed like a good place for the weighting factor.
    Remember too, that the seeded weighting values are lookups, and that you have a code, meaning and description, plus a context sensitive DFF so you could easily store the weighting value in any one of those.
    Regards
    Tim

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • Looking for alternative formulas to suppress duplicates through Section Expert

    I'm using version 14.0.2.364 CR and having trouble building a customized treatment plan report for our case workers to manage to filter out duplicates. I'll do my best to give a layout and criteria:
    GH: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    Case #
    First Name
    Last Name
    Home Phone
    DOB
    Tx Plan Start Date
    Tx Plan End Date
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    GF: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    The problem is that when pulling data for each client, it will bring forward all their tx plans, but I just want to show the newest one. I was inclined to go to section expert > Select Details > Suppress (No Drill down) and in X-2, put the following:
    if {CDCLIENT.CASE_NUM} = next({CDCLIENT.CASE_NUM}) then true else false
    This will suppress duplicate records ONLY if I have this sorted by Case #. The problem is, we want to sort by Tx Plan End Date, so case workers can identify which clients are coming up for expiring tx plans. The way the data is stored, I have the first 5 columns from one table, and the last two in another. I also tried to format the field, go to "Commons" on CASE_NUM and choose Suppress (if Duplicated) in combination with the Section Expert, but it was still pulling both if I have it the sort order start at PLAN.END_DATE.
    Is there a way to preserve the most recent begin / end date and suppress any duplicates without sorting it by case #?

    Jamie Wiseman wrote:
    or in the case of your report use this as the suppression formula...sorry again about the original code.
    {AZCLPLAN.BEG_DATE} <> maximum ({AZCLPLAN.BEG_DATE}, {CDCLIENT.SAI_ID})
    The problem with this suppression is that for each Case Worker (Group) it is only pulling one client record forward, thus suppressing all other multiple unique clients associated with this caseworker.
    What my original report (before your suggestions is this):
    Case Manager Name (group CDCLIENT.SAI_ID)
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2013
    01/01/2014
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Notice, it finds two records for Client A, because they are an existing client that needs continuous treatment. The caseworker doesn't need to see the older record for Client A, but also needs to see all other unique records.
    I basically want it to suppress the first row (older treatment plan) for Client A and have it display like this in conjunction with all other unique clients:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    What your Section Expert + Summary Code did, was essentially this:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Maximum
    04/04/2015
    Let me know if this is possible.

  • SELECT EXPERT formula howto?

    <p>Hi All! I write a program under VS 2005 C# and Crystal Report. So I have a problem with the formula (and with the sql expression formula). My problem is this:</p><p> How can I do create a group with the selection expert? My task is the next: </p><p> I have called numbers (in a table) and the prefixes (36) with the description (Hungary) (in other table). I would like to see ( in a report ) the description before the called number. For example: <br /><br />Hungary 36201234567 (The prefix is the 3620 and the location is Hungary). How can I do make this? I don&#39;t to know the selection expert so good, and this is the another problem.</p><p> Please Guy! Help Me!</p><p>Thanks!!!</p>

    If so... In the Change Group dialog, go to the second tab (Options) and choose  "Customize Group Name" and then select the formula button (x+2)
    In the formula just get the string you want.
    {table.description} + " " + cStr({table.prefix},'########') + cStr({table.number}'########')
    I only add the CStr() function in just in case your numbers are stored as numbers. If they are stored in strings, then the formula would be even easier.
         - Kathryn Webster (Report Design Consultant)Â
               Kat&#39;s News: http://diamond.businessobjects.com/blog/279

  • Select expert formula help needed

    I'm trying to come up with a formula to put in the select expert that will include all records. But if there is a record id(which would be a parameter field) passed to the report, it will only select that record that matches the parameter record id.  Is this possible?

    Yes, you can do that with an "All" option in the parameter list.
    And you selection formula would look like this:
    {?your parameter} = "All" or {your id field} = {?your parameter}
    The "All" option is not a really selection rule.
    It's just to control to use or not use:
    {your id field} = {?your parameter}
    So you can name it whatever you like, "*", "Any ID", or anything
    Bryan Tsou@Taiwan

  • Select Expert - Formula : Some clarifications

    Hi,
    Can anyone explain the below formula in Select Expert:
    IF {?param} = "AAA" THEN {Command.CD} = "ALL"
    ELSE IF {?param} = "BBB" THEN NOT({Command.CD} = "BALL")
    ELSE true
    My doubts are:
    1) This formula will be executed after the query in the 'Command' object is completed. That is from the output of the Command query, we are filtering the records based on the above formula - Please confirm my understanding.
    2) The final return type is True . What is the effectiveness of this return type? How is it affecting my output?
    Thanks in advance!!
    Meena

    Hi Fritz,
    Thanks for your response!!!.
    One more query regarding the execution of the formulas in Select Expert.
    1) The record filtration using Select expert will be done while retrieving from database itself
    or
    2) the output of the database retrieval will be filtered based on the Select expert ?
    Which one is true?
    Thanks in advance!!
    Meena

  • Select Expert on Formula Fields

    <p>Hello guys I have a Formula</p><p>if <a href="mailto:{@TrueAndFalse}<>{#RTotal0">{@TrueAndFalse}<>{#RTotal0</a>} then "Caution !"<br />    else "Is OK"</p><p>I need to created Select Expert and show only the "Caution !" </p><p>so I dont want to show "Is OK" in the report</p><p>thanks for you help<br /></p>

    Hi,
    You just Call formula in selection expert window and give like this
    formulaname = "Caution !"
    !/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif|title=Cool|height=18|alt=Cool|width=18|src=/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif!
    Let me know any other info u want......Â
    Thanks
    Rajesh

  • Passing DateArray or Date Range from formula result to Select Expert

    Is there a way to pass Two (2) dates from a single formula to the Select Expert?
    I calculate Beginning and Ending dates of periods ie: fiscal year to date, calendar year to date, last calendar quarter.  I would like to pass both the beginning and end date to a formula in the Select Expert.
    Please show code samples if possible.
    Thanks

    In your selection criteria, have code similar to this:
    datevar begindate;  // this is from your formula for date range
    datevar enddate;  // this is from your formula for date range
    {database.datefield} in begindate to enddate;
    Edited by: Sanjay Kodidine on Jun 27, 2009 11:43 AM

  • Section Expert - Suppress Formula

    Post Author: testing123
    CA Forum: Crystal Reports
    Has anyone had any experience with the suppression formulas for sections in the Section Expert?  My report has two groups : Project Status and a subgroup, Project Number. Each Project Number contains a value called Total. Each total is added to a variable, GroupTotal, until the end of the main group Project Status. At that point, the GroupTotal is shown, and then at the start of the next Project Status group the value is set to 0. However, if I add a group suppression formula for the Project Number where the Project Number group is supressed if GroupTotal = 0, it screws up, and displays information wrong. I can't pinpoint what exactly, but numbers from the previous group get passed to the next, and empty groups where GroupTotal = 0 also get displayed. How can I suppress a group which contains a running total of 0 without messing up the report?

    Post Author: palm
    CA Forum: Crystal Reports
    Here is a small suggestion , try this
    i am not into running totals much , so create a formula which gives the sum for a Particular Group (Project Number here) and place it GH or GF of Project Status
    Synatax: Formula: Test
    Sum(,{Project Number})  // give total of field for a particular Project Number
    Now you want suppress those groups where the SUM is ZERO , So in section expert  and  in supress write a condition       (@Test)=0
    It will suppress those groups where sum =0
    Try this and let me know!!!

  • New Formulas don't show under Select Expert --Record

    Hello,
           Some how my CR 2008 don't show new formulas in my report when I go in Select Expert-Record, all the formulas show under Field Explorer?? the odd part is that old formulas still showing only new ones don't show is a setup that I'm missing????

    The old formulas most likely have the evaluation time function WhileReadingRecords or BeforeReadingRecords referenced in them.
    Try adding WhileReadingRecords to your new formulas (If CR can process those formulas at that time) and you should be able to see them in the Record Select Expert.

Maybe you are looking for