Crystal 10 formula help

I am trying to write a formula that will show 2 names if they exist on the same record instead of showing the record twice, once with each value. This is what I tried:
If({case_record_billing_queue.crbq_stock_urn}=4259)then "ANNERVE" else
if({case_record_billing_queue.crbq_stock_urn}=2836)then "ANCONT" else
If({case_record_billing_queue.crbq_stock_urn}=(4259 + 2836))then("ANNERVE" + "and"+ "ANCONT")
I get the formula to show ANNERVE on the 1st row of information, and if the 2nd condition is met, ANCONT shows on the 2nd line (in the detail section) with all the same information in line 1 except ANNERVE. Not all records have both conditions, maybe 1 out of 8.  How can  I get a formula to work that would display both ANNREVE and ANCONT on the same line if conditions are met?

Hi,
Welcome you post on the forum.
However, this forum is only for SAP Business One user. Please post your question on a proper forum. Close this one.
Thanks,
Gordon

Similar Messages

  • Formula Help Crystal Reports 11

    Hello,
    I am having trouble with a selection formula.  I wrote a report that queries 2 tables that have been joined within my report.  A primary table and a secondary table. The secondary table can contain multiple detail records that are associated with each primary record.
    There is a field in each record of the secondary table that contains an alpha character.  I need a slection formula to scan through the fields of the secondary records and if one of those secondary records has a particular value (In this case "T") I would like ALL of the secondary records included in my report along with the primary record indexed to it.  If no secondary record in the series has a value of "T" then all records should be excluded from the report including the primary record indexed to that series of secondary records.
    Is there a function I can use to accomplish this type of logic?...an example of the appropriate syntax would be helpful.
    Your help is much appreciated!
    Mark

    Hi Mark,
    Use the InStr function.  This will allow you to search for a string and it will return a numeric value which represents the placement. 
    Instr ({Table.FIELD}, "T") > 0;
    This will return all records that have a "T" in that field. 
    Good luck,
    Brian
    Edited by: Brian Dong on Oct 23, 2008 4:39 PM

  • Conditional formula help

    Post Author: scd07
    CA Forum: Formula
    Hi, Crystal Reports novice here...
    I have been asked to take out any lines in several reports with all "0s" in the columns.  I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank".  Didn't work.  I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress".  The formula followed the following:
    If = 0 and = 0 and = 0 then true else false
    Unfortunately this also didn't work.  I don't know if my formula is incorrect or if I am entering it in the wrong spot.  Any help would be very much appreciated!  Thank you!!

    Post Author: Bandit07
    CA Forum: Formula
    Right click on what you want to suppress and click the x-2 button next to suppress.  Put your formula in there.
    = 0 and = 0 and = 0,  If all of these conditions are true then it will suppress.
    B

  • Group Formula Help

    Post Author: dmface15
    CA Forum: Crystal Reports
    I have a report that identifies employees and what taxes that employee pays. For example,
    John Doe
    OASDI           $2500
    Medicare        $625
    Jane Doe
    Medicare       $1750
    Michael Smith
    OASDI          $1630
    Medicare       $783
    The report is grouped by Employee name and tax code. The reason for grouping by tax code is because the tabale i am using to get tax code has records for each pay check the employee has received. Here is the problem. I need to create a report that will give me all employees who pay Medicare AND OASDI, all employees who pay ONLY Medicare. Therefore, when I run the report for employees who pay Medicare AND OASDI I should only see Michael Smith and John Doe. If i run the report for all employees who pay ONLY Medicare I should see only Jane Doe. Right now, I am having trouble with creating a formula whether it by group selection or record selection. Can anyone help me out? I would appreciate it. Thanks.

    Post Author: kcheeb
    CA Forum: Crystal Reports
    Have you tried suppressing the group and detail sections based on the report type and count of tax code records? Assuming There are no people with only OASDI tax codes.
    The other option would be to use sql to return you only Medicare people or OASDI & Medicare people.

  • Formulas : Help for coding

    Hi experts,
    I face a problem I do not find any solution with my lack of coding development background.
    Here is my case :
    I have inserted a cross tab in my report. It looks like this :
    - Column : 3 following objects :
    Table.Period1
    Table.Period2
    Table.Period3
    - Line : Table.SIG containing th e following :
    1 Revenus
    2 Expenses
    3 Margin
    4 Other external expenses
    5 Added value
    => Lines 3 & 5 have been inserted to receive specifics formulas, subject of my thread.
    For example, I'd like to put a simple operation like:
    3 = 1- 2 (numbers, referred to above lines of my cross tab)
    But, in Crystal Report, it seems to be not possible to easily cross objects.
    Someone can help ? Have any idea ?
    Thanks for you time,
    Olivia

    Debi Herbert wrote:
    > You may need to do a manual crosstab which is to say group on your "lines" and using formulas create the columns in the group footer for each "line" and suppress the header and the detail lines.
    Hi Debi, thanks for your reply,
    I've created a report using "manual cross tab"; and also using automatic/manualformulas.
    The thing is a resultat like that :
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 1 Revenus                                     >> Automatic formula which sumaryze the detail above
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 2 Expenses                                   >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 3 Margin                                         >> FORMULA that need to sum. the both group footer 1 above. but fail.
    Detail   :                     xx
    Detail   :                     xx
    +Group Footer 1 : 4 Other external expenses            >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 5 Added value                               >> FORMULA that need to sum. Margin + Other external expenses. but fail.
    I do not succed to create a formula that can sumarize objects from different group footer.
    If someone have any idea, i'll much appreciate your help
    Thanks,
    Olivia

  • Native Crystal formulas don't work if VB6 is producing the report

    Post Author: pdavis
    CA Forum: Crystal Reports
    I just upgraded from Crystal 6 to Crystal XI (enterprise). (Yeah, OK. I don't rush into things.) About 70 reports apparently converted OK, i.e., they worked when looked at in Crystal design mode. Most have built-in formulas.
    Using VB6 to produce the reports (the reports are NOT embedded into the VB project via the Crystal designer; instead I'm creating a Crystal Reports object), none of the built-in formulas work (altho everything else about them looks fine). I can pass data to any of the built-in formulas (including being able to pass the code that originally constituted the formula) and the report will look fine, but I lose the flexibility to simply distribute new reports if I have to build the reports or their formulas into the project.
    I've scoured every resource I can find and have seen nothing suggesting this is a common occurrence, so I'm assuming it must be something I'm missing, something possibly subtle? Having just migrated, I'm sure there is lots about Crystal XI I don't know yet, but I would be extremely grateful for any help since I'm under deadline. (OS is Win2K server if that matters.) Thanks.

    1. You will find this option beside ? in Add-Ins. In that Settings --> BW Server Connection.
    + Not I didn't find... for example I saw... File.. Edit...view.. Insert... and others exactly like when you enter in excel ... the only difference it's that I saw activated the tool bar for bex analyzer.. on where I saw .. design mode... refresh..etc.+
    2. If you select the field in Free characteristics and restrict it with a variable in query designer mode, you will get that characteristic in variable screen and you can give the selection and you will not get that charcteristic in the output as you have taken that in free characteristic. Only if you do drilldown accross rows for that characteristic, then it will appear.
    If you take that into Rows in query designer mode, then you will get the same for variable selection and as well as in the output without drilldown accross rows. It will be displayed automatically.
    +The clear example is:  I have one free characteristic in report, like 0MATERIAL, this characteristics didn't have any restric value... then the user add 0MATERIAL into report just for see more details... later if the user filter 0MATERIAL with some values and click ok, the column 0MATERIAL dissapear from the report +
    did you have another idea to solve this?¡
    Thank you a lot.
    alice

  • Cross tab formula help

    Post Author: ivanl
    CA Forum: Formula
    Hi,
    Using XI and win XP.
    I have been using excel to get the info I need, but thought it must be possible to do it right in the cross tab.  I need two different cross tabs, and do not know how to do the following.
    The fields I have in the dataset include:
    - product.type (different products and one field "product.type = 'customer' that is the customers)
    - product.balance (balance of each product for each customer)
    - formula for age segmentation
    What I need to input into the cross tab is to have the segmentation across the top, products for the rows and as the summary:
    1) penetration rate  (i.e. count of product types divided by # of customers which is product.type = customer)
    2) $ per customer (product balance divided by customers)
    3) $ per product (product balance divided by # of products)
    Help would be awesome.  I have no idea how to do this in Crystal
    To date, I have set up a cross tab with segment across top, products down the rows, and as a summary using count products and sum of balances.  I would input this into excel and do the calculations.
    Ivan

    Hi, this may help,
    http://www.chelseatech.co.nz/pubs.htm
    Look down on the right side, you should see
    Sample Report Files
    Sales Calendar
    Calendar Report
    Running Totals in a Crosstab
    Wrapping Crosstab
    PDF Drill Down
    Crosstab calculations
    Hierarchical Summary in a formula
    You can download an example of Crosstab Calulations from this site.
    They have some newsletters that also contain CR hints.

  • Crystal Formula

    I need to calculate a value in pounds where a fine has to be paid if a problem has occured in the last 12 month rolling period. 
    The formula is 1.2 (x-1)
    1.2. is a fixed value
    x is the number ot times the problem has occured in the last 12 months (rolling 12 month period) on a particular location
    1 is a fixed value
    Therefore the more times the problem has occured at a location, the higher the fine
    I have 2 problems;
    1) I am unable to write the above formula onto a crystal report as I cannot find a function that will allow 'to the power' of a number.
    2) I am unable to establish the value of X  (the number ot times the problem has occured in the last 12 months (rolling 12 month period) on a particular location). My field names are probdefn.probcode (the problem), probdttm (the date it occured), comparea.unitdesc (the location). I have tried to calculate this using a subreport but I don't seem to be getting the values I am looking for, and I seem to have all of the subreport data showing in my main report instead of just the X value.
    Any assistance would be gratefully received

    Thanks for the help!
    I tried your suggestion and it nearly worked. The formula gave me an error message stating 'there must be a group that matches this field'. I adapted your suggestion slightly by inserting a prob code group  under the location group and using the following formula 1.2 ^ ((DistinctCount ({CUSTPROB.SERVNO}, {@PROBDEFN.PROBCODE}))-1). The field CUSTPROB.SERVNO is a customer call reference that is generated every time a new problem occurs. This works really well. I have called this formula the 'ramping' calculation and will use it to multiply against a basic cost to work out the overall cost of a problem. Thank you!
    I now need to report on a daily/weekly/monthly basis. I need to display a line item for each problem that has come in during the reporting period (CUSTPROB.PROBDTTM) but apply the ramping factor if the same problem occured at the same location in the last rolling year to the line item I am reporting. So for example, if a problem was reported in on 1/1/09 and there had been 10 occurences since 1/1/08 it would have a ramping of 1.210, if the same problem had occured at the same location on 1/2/09 and there had been 2 occurenced since 1/2/08 this line item would have 1.22 applied to it. How would I select my report to show me occurences that were reported in during the last month but ask it to look at the occurence in the last year for each line? Would this be a new report looking at the calculation we have just solved in a sub report?
    Any more advise much appreciated.
    Regards

  • India localization oracle fast formulas help

    hi ..
    anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]

    send me a contract, buy me a ticket, and i fly over.

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • Need formula help - how do i fin duplicates in a list

    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    Problem is the setup and syntax.... I've done a very very little bit of this but don't have a good handle... searching to this point (user guides and forums) I haven't found answer... I know the answer is out there, but I need to get solution as quickly as possible.
    any help greatly appreciated.
    Thanks
    darren
    Oh - number 09 on 10.5.8

    dnim wrote:
    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    COUNTIF($A,A) by itself will give you a 1 if the cell contents are unique within the list, and a larger number if there are duplicates.
    =IF(COUNTIF($A$1:$A2,$A2)>1,"XXXXX","")
    Will leave cells in rows containing the first occurrence of a particular value in a list 'blank'* and mark rows containing subsequent occurrences of the same value with XXXXX (or whatever text is placed between the quotation marks at that position in the formula.
    Results of the second formula (in column C) may be isolated using the "Show rows that match the following" in the Reorganize dialogue, and setting the condition to "Column C"    is not blank
    Oh - number 09 on 10.5.8
    Looks like your profile needs to be updated—currently says 10.5.5.
    Regards,
    Barry

  • Formula help needed

    Hi,
    I have a sheet with abt. 3.000 rows. From one of the rows I want to extract the date. The row looks like this:
    Festgelegt für 5. September 1946 von 09:15 bis 10:15, that is a textstring
    So in the first field I used part to get the Date "5. September 1946" this works fine.
    In the next step I used left;4 to extract the word "Fest", this works fine to
    Now in the next step I want to work with "if".
    What I would like to have a formula that looks like this
    If leftstring4="Fest" than get the partstring"5. September 1946" an fill the field with this date.
    Any help available
    tks in advance
    olaf

    Hi Yva,
    still one problem with the formula.
    "Urlaub
    Festgelegt für 25. Juni 1977 von 09:00 bis 10:00 25. Juni 1977
    Portugal
    Festgelegt für 6. Juli 1977 um 23:00 bis 7. Juli 1977 um 00:00 0"
    as You can see the first row works, but the second not why.
    The errorcode says "could not find " von "
    any idea ?
    like to hear from You
    regards
    olaf

  • Formula help!

    Hi,
    I keep a database inventory list of Video Tape duration and need to know a formula to calculate "time" or "Length" totals.
    ie:
    Tape 1 = 01:43:19:06
    Tape 2 = 00:45:20:12
    where in the first tape example (or any tape for that matter) the digits are as follows:
    xx:yy:zz:ww
    xx= hrs
    yy= minutes
    zz= seconds
    ww= frames
    In this case there are 25 frames to make 1 second, and 24 hours in a standard clock.
    If possible, can you show how to change the formula when the Frame (ww) changes to 24, 30, etc.
    Thank you very much.

    RP,
    You may find this example helpful. I think it's close to your request, but simplifies the problem by doing the entries in separate columns for h, m, s and frames. The second Footer Row is an intermediate calculation which I left exposed for clarity.
    Here are the expressions I used:
    Unit Totals...
    Frames: =MOD(SUM(H),25)
    Seconds: =MOD(H8+SUM(F), 60)
    Minutes: =MOD(F8+SUM(D), 60)
    Hours: =D8+SUM(B)
    Carries...
    Frames: =INT(SUM(H)/25)
    Seconds: =INT(SUM(H8,F)/60)
    Minutes: =INT(SUM(F8,D)/60)
    There is no carry from the Hours total, the hours are just allowed to overflow the 24-hour boundary to larger numbers.
    Regards,
    Jerry

  • Formula Help Exclude or Suppress

    A patient can be seen by multiple Hospitalist and I'm trying to create a formula that  exclude or suppress all records when any patient was seen by 41167  {HSP_TRTMT_TEAM.PROV_ID} = '411467'
    So, if a patient was seen by 40067 and 411467 I would like to exclude both records.
    Current selection formula:
    {HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT} IN [CurrentDate -7 TO CurrentDate -2] and
    {HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT} <= cdatetime(currentdate - 2, time(09,00,00)) and
    ({ZC_TRTMT_TEAM_REL.NAME} = "Hospitalist" or
    {HSP_TRTMT_TEAM.PROV_ID} = '11095')
    and
    {HSP_ACCOUNT.LOC_ID} = 410

    I think this will do it for you.  Crystal had done some really crazy stuff with the joins, so I've re-worked them a bit to make them more readable.  I also added the date filter to the join - Oracle runs the query more efficiently when you do this.
    Starting with a new report, paste this query into the Command Editor.  If you're using parameters to filter your data, you'll have to create them in the Command Editor - commands can't see parameters from the main report.  If any of these are supposed to be dynamic parameters let me know and go ahead and create the basic param in the Command Editor.  I'll walk you through how to make them dynamic in the report.
    With filter as (
      Select distinct
        htt.PAT_ID
      from EPICADM.HSP_TRTMT_TEAM htt
      where htt.PROV_ID='411467'
          and htt.TRTMNT_TM_BEGIN_DT>={ts '2014-08-28 00:00:00'}
          and htt.TRTMNT_TM_BEGIN_DT<{ts '2014-09-07 07:00:01'}
    SELECT DISTINCT
        V_FV_MRN.MRN,
        V_FV_MRN.PAT_NAME,
        CLARITY_BED.BED_LABEL,
        ZC_PAT_CLASS.NAME,
        HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT,
        HSP_TRTMT_TEAM.TRTMNT_TM_END_DT,
        PAT_ENC_HSP.HOSP_DISCH_TIME,
        ZC_TRTMT_TEAM_REL.NAME,
        CLARITY_SER.PROV_NAME,
        HSP_TRTMT_TEAM.PROV_ID,
        HSP_ACCOUNT.LOC_ID,
        PATIENT.BIRTH_DATE,
        HSP_ACCOUNT.ADM_DATE_TIME,
        CLARITY_SER_admitting.PROV_NAME
    FROM EPICADM.CLARITY_SER CLARITY_SER
       LEFT OUTER JOIN EPICADM.HSP_TRTMT_TEAM HSP_TRTMT_TEAM
         ON CLARITY_SER.PROV_ID=HSP_TRTMT_TEAM.PROV_ID
         and HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT>={ts '2014-08-28 00:00:00'}
         and HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT<{ts '2014-09-07 07:00:01'}
       LEFT OUTER JOIN EPICADM.PAT_ENC_HSP PAT_ENC_HSP
         ON PAT_ENC_HSP.PAT_ENC_CSN_ID=HSP_TRTMT_TEAM.PAT_ENC_CSN_ID
       LEFT OUTER JOIN EPICADM.CLARITY_BED CLARITY_BED
         ON CLARITY_BED.BED_ID=PAT_ENC_HSP.BED_ID
       LEFT OUTER JOIN EPICADM.CLARITY_SER CLARITY_SER_admitting
         ON PAT_ENC_HSP.ADMISSION_PROV_ID=CLARITY_SER_admitting.PROV_ID
       INNER JOIN EPICADM.ZC_PAT_CLASS ZC_PAT_CLASS
         ON PAT_ENC_HSP.ADT_PAT_CLASS_C=ZC_PAT_CLASS.ADT_PAT_CLASS_C
       RIGHT OUTER JOIN EPICADM.HSP_ACCOUNT HSP_ACCOUNT
         ON HSP_ACCOUNT.PRIM_ENC_CSN_ID=HSP_TRTMT_TEAM.PAT_ENC_CSN_ID
         and HSP_ACCOUNT.LOC_ID=410
       INNER JOIN EPICADM.V_FV_MRN V_FV_MRN
         ON HSP_TRTMT_TEAM.PAT_ID=V_FV_MRN.PAT_ID
       RIGHT OUTER JOIN EPICADM.PATIENT PATIENT
         ON PATIENT.PAT_ID=V_FV_MRN.PAT_ID
       LEFT OUTER JOIN EPICADM.ZC_TRTMT_TEAM_REL ZC_TRTMT_TEAM_REL
         ON HSP_TRTMT_TEAM.TRTMNT_TEAM_REL_C=ZC_TRTMT_TEAM_REL.TRTMNT_TEAM_REL_C
       left outer join filter
         on HSP_TRTMT_TEAM.PAT_ID = filter.PAT_ID
    where filter.PAT_ID is null 
      and ("ZC_TRTMT_TEAM_REL"."NAME"='Hospitalist' OR "HSP_TRTMT_TEAM"."PROV_ID"='11095')
    -Dell

  • Formula Help - Multiple criteria

    I'm fairly new to Numbers and am struggling to work out the formula to manage multiple sumif functions. I want to be able to calculate the total of column 'C' where A & B are identical. For example sum of column C where  A=James, B=Vehicle. Sorry if I'm not being clear. Basically total of $ in 'C' where A = James and B = Vehicle.
    Thankyou in advance for the help. 
    A
    B
    C
    James
    Vehicle
    $100.00
    Tom
    Office
    $200.00
    James
    Office
    $150.00
    Brad
    Vehicle
    $275.00

    Dynamic using cell references. I missed the & to make it work.
    =SUMIFS(Table 1::C,Table 1::A,"="&A2,Table 1::B,"="&B2)
    If lucky James has two vehicles,
    And you can add more combinations to Table 1-1
    Regards,
    Ian.

Maybe you are looking for

  • Applet was not running in Browser

    I have wriiten one applet (using JMF for playing a song)program and it was run in appletviewer it's work perfectly.After that i was open this prog in browser it doen't work ,it gives following error : java.lang.NoClassDefFoundError: javax/media/Contr

  • I am trying to decide on which Mac laptop I should get

    I am trying to decide on which Mac laptop I should get

  • Increase the resultset count in SSXA application

    Hi, I'm using UCM 11g + Site Studio, I'm coding in JSTL for my web application. I am calling many services like GET_SEARCH_RESULT etc. All these services are returning a resultset of 20 values. I have changed the setting by clicking the weblogic user

  • Solaris equivalent of kill -16 in linux

    i am running a process in solaris 9(console) . i know its pid . To halt the process i have given "kill -16 pidvalue" . This halts the process . Later when i gave the same command (ie . kill -16 pidvalue )it resumes (continues)the process . While givi

  • 9i Client/Server installantion Hangs on XP Pro

    I'm running a Sony VAIO PCG-GR300P notebook, PIII-1.13 GHz, 512MBs RAM, Win XP Pro. When installing the Client tools from the 9i Client download, installation hangs at 27%. When installing Client tools from Server download, it hangs at 7%. I was able