Select Expert Help

Post Author: HappyOne
CA Forum: Formula
Hi,
I am trying to filter out data from the database based on a specific date. For example, the user selects a date they wish to view. The report should return the active users at that time. So based on one date, the startdate, enddate, and null values need to be taken into consideration.
The startdate must be less than the date chosen, the enddate must be greater than the date chosen, and the enddate may be null (they are still active). For some reason my formula is not working. Any help is greatly appreciated. Here is what I have:
{Table.startdate} < {?Date} ANDIsNull({Table.EndDate}) OR{Table.EndDate} > {?Date} AND{Table.startdate} < {?Date} OR{Table.startdate} < {?Date}
I was a little lost at the end so if there is something rediculous in there, sorry.

Post Author: jbowling13
CA Forum: Formula
It looks like it's an issue with your parenthesis.  Here's what i would do: {Table.startdate} < {?Date}  and   ( {Table.enddate} > {?Date}   or  IsNull({Table.enddate}) May also consider using <= for the start date. 

Similar Messages

  • *help*  Select Expert (filters) in crystal

    problem with crystal....
    i need help in the following situation.   when i go to create a report i go to select expert,  then click on category and select say copper fittings.  boom i get a list of all my copper fittings.  my design sheet is set up so that it shows the item number, description, quantity on hand, and quantity sold.  now when i go to select expert again and choose say date transfer of an item...put in my dates( 1/1/2009-1/3/2009)... boom the list refreshes and this list is now shorter than my original list and it shows me the items that have transfered during that period of time as well as the quantity...  well my question is what happened to all the other items that were in the list before???  i understand that they are no longer there because they did not transfer during that period of time, so it doesnt show them... well i still want those items to show up with the rest that did transfer... so that way i can see what transferred and what dint all in one list... i keep trying different things but keep running into the same problem... does anyone know of a solution for this???
    thanks...appreciate any help

    thank you very much for your advice,
    unfortunately my problem has not really been resolved.
    when i did as you said..  in crystal, all i wanted was my copper list... but when i put the "or" in, it included all the other pieces in my inventory not "just"  my copper.
    heres what i had before:
    {VIEWITEMMOVEMENT.DATETRANSFERRED} in Date (2009, 01, 01) to Date (2009, 06, 11) and
    {Category.Name} = "COPPER FITTINGS"
    now if i were to take out the: {VIEWITEMMOVEMENT.DATETRANSFERRED} in Date (2009, 01, 01) to Date (2009, 06, 11) and
    then all i get are my copper fittings and that ends up being like say 10 pages long... but then i put in my the date transferred... to view the items that moved and see how much of each was sold during that time.  the list then gets smaller to about 5 pages and shows me the items that moved and the quantities that were sold but at the same time i still want it to show the other items that did not move on the same list... i dont want them to be taken out...like its doing it now.
    hope this explains my situation a lil better... i appreciate your help, thanks

  • Select Expert or SQL Expression Fields help

    I am trying to do something I would consider very simple but can figure it out.
    I have two tables.  FDC_Trips & Facility.  On the report I can get the FDC_Trips.DivertedbyFacility field to populate a number value because that field is an integer.  But we need the name to show up.  That field is the ID (foreign key) of a Facilty which matches with the field Facility.Code.  Instead of it displaying the DivertedbyFacility number/ID I would like it to be able to show the Facility.Name value.  If I place the filed Facility.Name field on my report it is blank. 
    How can I write a where clause to query the Name of the Facility where the Facility.Code = FDC_Trips.DivertedbyFacility?
    Do I use the Select Expert or SQL Expression Fields.
    Please advise.

    Actually you'll use the Links tab in the Database Expert. If CR did it's stupid auto linking thing... delete them. It usually get's it wrong.
    Now just link the fk field in FDC_Trips to the pk field in Facility. Once you have that done you'll be able to simply drop Facility.FacilityName directly onto the report.
    HTH,
    Jason

  • 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

  • Crystal Report - Title from Select Expert.

    Hi Experts !
    I need some help here. Recently I have build a new crystal on the production analysis. Part of the select expert for record is between posting date A and posting date B.
    Below is the code I uesd for the select expert whereby Posting Date 1 is a parameter with range that I have defined.
    {ODLN.DocDate} = {?Posting Date1}
    I am interested to have this 2 date from the parameter to appear on my report. For example :
    Date: A date till B date.
    I have tried picking up this data from the parameter, but failed to get what I want. Anyone have syntax for this ??
    Best Regards,
    Alex

    Hi Gordon,
    Yeah, I know the syntax to do this. The real problem lies as I have stated on my first post - I want the date that I have entered on the parameter during the filtering process, to appear on the report itself. I have tried it before, but all that appears is only True value, not date.
    So If, I am about to use two parameter date instead of parameter range with selection expert, will I be able to pull the two parameter date into the report, so that I can print it out with the date on the report itself. It's important for the report to have date because not everyone knows the report is from when to when.
    Best Regards,
    Alex

  • Number fields in select expert

    I am currently using Crystal 2008 and I am having issues with numeric values entered in the select expert.
    The record selection criteria that I have entered is
    {HSP_BKT.BKT_ID} in [94633, 94920]
    however, crystal defaults/converts to these numbers with 8 decimal places (.000001)
    {HSP_BKT.BKT_ID} in [94633.00000001, 94920.00000001]
    94633 and 94920 are valid numeric values with data but because crystal is converting it to 94633.000001, I am not getting any records back.
    Any help is very much appreciated.

    You didn't mention the data type of the field.  If it is integer, then one way to work around this might be to define an integer array, put your values in that, and use it in place of the constants.  (Crystal really shouldn't be converting the constants to a decimal in this case, so you might wanna let SAP know about it...)  If it is a floating point type, then you may need to use CInt() to convert the field to integer.
    HTH,
    Carl

  • Crystal Reports XI:  Using Wilcards with the Select Expert

    I have a field with 10 numbers.  There are several of them that start with three numbers and end in all zeros.  I want to make sure these are not in my report.  I have been successfully able to do this using the select expert, but it requires a lot of manual entry:
    {@Phone Number} <> "4090000000" and
    {@Phone Number} <> "2810000000" and
    {@Phone Number} <> "8320000000" and
    {@Phone Number} <> "5120000000" and
    {@Phone Number} <> "9999999999" and
    {@Phone Number} <> "9760000000" and
    {@Phone Number} <> "9360000000" and
    {@Phone Number} <> "6010000000" and
    {@Phone Number} <> "8150000000" and
    {@Phone Number} <> "7130000000"
    I need to find a way to do this without having to enter each code by itself.  I tried using a wilcard, but it appears that I am not using it correctly.
    {@Phone Number} <> "***0000000"
    Please help.  Thanks!

    Nevermind   Just needed a simple: 
    not ({@Phone Number} like "*0000000")

  • Select Expert data field

    Post Author: ckaesche
    CA Forum: Older Products
    I am using Crystal 8.5. I'm running a query to find database entry errors in a particular field, i.e. "country", &#91;such as 'britin'&#93; and then correcting the database record.
    Even though the data has been removed from the database, the value listed in the drop down within crystal reports is retained and not reflecting the actual values of the field in the database.  Any suggestions?
    Thanks for any help,  ckaesche

    Post Author: pandabear
    CA Forum: Older Products
    Ok,
        Sorry, when I heard "drop down" I immediately saw "parameter" so "Action" is the wrong direction for you.  
        You don't need the "Select Expert" to see a field.  You can just drag the field on to the report.
        If you know all the valid country names, you can do this:
        Make a formula:  @GoodCountry  -  If UpperCase(table.emp_ad_country) IN ("USA","ENGLAND" etc) Then "" Else table.emp_ad_country
    That way you'll get a complete list of all the countries that are not 'IN' the list (of properly spelled countries).  After the changes,
    you should see the new values when you run (F5) the report again.
    If it doesn't show the changes, you need to check that the database.table.field you are looking at is the same one you are changing.
    Sounds basic, but it's certainly happened (many times) before    
    Hope this helps,
    The Panda

  • Select Expert using ISNULL

    I am using Crystal Reports XI and I have a table that has customer names with "NULL" values. I am wanting to print all of those records in the table with the NULL value. Can someone help me with this issue.
    Thanks Jim

    Just to throw my $.02 in, I never turn on the report option to change null values to default. it vastly complecates any other forumla you might want to write in the report, and can cause performance issues under certian circumstances.
    I use 'default values for null' in the formula workshop for the select expert, or explicitly in formulas where I need that functionality.
    Also, just a picky point, but asing "isnull() = true" is redundant. if the field is null, isnull evaluates to true, and then you're asking if true = true. If it isn't null you're asking if false=true which is clearly false. In cases such as these isnull() alone will suffice.

  • 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

    When using the Record Selection tool from the Standard report creation wizard, the drop down list in the Record select is not being populated with data. However, when using the select expert from a blank report the drop down is working just fine.
    Any suggestions?
    Thanks!

    Hi
    Is it happening with all the reports that you create with Standard report wizard?
    If so try  doing a repair of the software using Add/ Remove programs -> Select Crystal Reports -> Click on Change ->Repair -> After installation restart Crystal Reports.
    Hope this helps!!
    Regards
    Sourashree

  • Select Expert issue or limitation

    I am trying to create a report using select expert in crystal report. However, I am finding that when I use 'is equal to',  drop down besides it does not show all the data values in the list. It shows list of some data. Anyone have any idea what could be a reason. Is there any limitation in Crystal report select expert drop down?
    Thanks
    Syed

    The following SAP Note might help you
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313331333933303332%7D.do]
    Regards,
    Raghavendra.G

  • Select expert - 'A string is required here'

    Post Author: greg_zen
    CA Forum: Formula
    Hi All,
    in select expert I put code like below:
    1)
    '{sp.ContractNo} like {?ContractNo}' 
              where ?contractNo is a parameter declared as a 'string'
    It worked fine with Crystal Enterprise 10 SP3
    After coping all reports and stored procedures to another server and installing SP6  for Crystal Enterprise 10 it stopped working.No idea why.
    So I tried to replace select formula like this:
    2)
    if cstr({?ContractNo})="" or cstr({?ContractNo})="*" or IsNull({?ContractNo}) then True
    first I used it without cstr function but after running there was always 'A string is required here' error message. Adding cstr didn't helped. Still the same.
    Original select was based on 'like' keyword to make it possible to enter starting character or just a part of string.
    As because users in most cases want to select data for all Contracts, select 2) was acceptable or at least I wanted to see anything. No way,
    still the same error 'A string is required here' during the runtime.   
    Any idea what's going on ?
    I'd appreciate any suggestions and comments.
    Regards,
    greg_zen 

    Post Author: SKodidine
    CA Forum: Formula
    For your first formula, why not try with wildcards and see if it works, since you mentioned that the intent was for the user to enter a part of a string?
    Try one of these:
    {sp.ContractNo} like {?ContractNo} & '*'     // for any number of characters
    {sp.ContractNo} like {?ContractNo} & '?'    // for a single character
    For the second (re-write) formula, make sure that the NULL condition is always checked first.
    if IsNull({?ContractNo}) or cstr({?ContractNo})="" or cstr({?ContractNo})="*" then True

  • 'select expert' option is not filtering data in CR, in VS2012

    ,Hi,
    We have a VB  VS2005 crystal report application , is working good with ' select expert ' option for filtering data in side crystal report. When we are migrated the application to VS2012, the application is not filtering the data inside crystal report. I could see the 'select expert ' options and Formula editor code in VB 2012 exactly same as VB 2005. But, there is no data filtering in Crystal Report. Please help. We are using Crystal report developer version for VS2012.  My formula editor code inside CR 'select expert' is {REPORT.CODE} in ["3102",  "4010"]

    Hi George
    Please see if KBA 1204895 - Selection formula is ignored when using Crystal Reports 2008 and VS .NET 2005 helps to resolve the issue.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow me on
    Twitter

  • 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

Maybe you are looking for

  • Disable Acrobat plug-in so

    Is it possible to disable the Acrobat plug-in for Safari without uninstalling Adobe Acrobat Reader? Acrobat Reader is much slower for viewing PDFs so I use Preview to view PDFs that I download but I would prefer to use it in Safari too. The problem i

  • Automator - Change Image Type - Multiple page PDF- TIFF conversion

    I was able to do this on a friend's computer (not sure which version of OS X they were running), but this seems impossible on Snow Leopard. I need to convert hundreds of multiple page PDFs to TIFFs. I can't get this to work, and the Change Image Type

  • Error while doing PGI for outbound delivery in SD

    Dear All while posting the PGI for out bound derlivery document in SD we are encountered  the error as follows: Fld selection for mvmt type 601/ acct 700000 differs for customer goods movement (015) Please give the solution for this, its very very ur

  • Cant change file type.

    I have really enjoyed edge code, except for one thing.  If i am creating a .module file for a drupal module, I can not change the editor to realize it PHP that i am writting.  I might as well code this thing in word or text edit.  Its usless when you

  • Workflows are not working with UAG

    Dear Support, I've developed a SharePoint Designer 2010 platform based workflow which contains 2 stages. First stage contains 'Start Feedback Process' whereas the next stage contains 'Start Approval Process'. The workflow runs manually. The workflow