Displaying DateTime range selected in Select Expert

I have inherited a report that displays data for a DateTime range that is selected from a tab in the Select Expert. This time period is usually a week, sometimes a day. How can I display in the page header this DateTime range that has already been selected in the Select Expert. It currently displays the Print Date, but that is confusing and worthless. The DateTime displayed needs to match the report data.
thanks,
Jeff

The easiest way is to use Minimum and Maximum functions.
If DateRange selected by Date range parameter, then you can use the following display formula:
"From "  + ToText(Minimum({?DateRangeParameterName}) + " To " + Maximum (({?DateRangeParameterName})
or you can refer to Date field with the same logic
"From "  + ToText(Minimum() + " To " + Maximum (()

Similar Messages

  • 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

  • Display of 2 rows of data for 2 different date range selection

    Hi Folks,
    I have a requirement as follows,
    User has an option of selecting 2 Date Ranges
    From and To Date and again From and To Date
    The result should display 2 different rows of data with From and To Date range selection.
    Eg:
    12/09/20008 to 03/09/2009           10 20 30 40
    23/10/2009 to  18/12/2010           40 20 10 30
    Difference                                   30 0  20 10
    % Change                                   x  y  z   q
    Thanks for your input.
    Regards,
    KJ

    You will need to use union report, and you would have fours union's in this report.
    Union - 1: Data from 1st Date Range
    Union - 2: Data from 2nd Date Range
    Union - 3: Variance Calculation
    Union - 4: Percentage Variance Calculation.
    If the date's are coming from the same field, use cast function to use the same column twice in your prompts. Apply filters on each union as needed.
    Thanks.

  • How Display Additional Field of a Select Expert Wizard Result

    I have a group of records by customer.  I have performed a Select Expert to pull the latest dated record for the customer.  But I also need to display the subtotal value associated with the selected record of latest date.  How do I do this?

    In the field explorer use Running Totals and place them in the required section.
    Thanks,
    Rakesh

  • Date / Time Range Selection

    Post Author: LDFCC
    CA Forum: Formula
    I am trying to create a report using Crystal Report XI which prompts the user to enter a start date / end date / start time & end time. For example, the person will select 9/19 (start date), 9/20 (end date), 10 AM (Start time), 10:30 AM (End Time). The report correctly pull up all tickets from 9/19 till 9/20 but only displays the tickets from 9/19 from 10 - 10:30 AM and 9/20 from 10 - 10:30 AM. I need it to show all tickets from 9/19 10:00 AM till 9/20 10:30 AM. Both the time and date are two seperate fields in the database. Any help is greatly appreciated.
    Thanks.

    Post Author: LDFCC
    CA Forum: Formula
    yangster:
    since you are dealing with 2 seperate fields for date and time the first thing you want to do is merge them back into one so things are consistenttry putting this in your selection expert
    datetimevar begin_date_time := datetime(cdate(?begin date), ctime(?begin time));datetimevar end_date_time := datetime(cdate(?end date), ctime(?end time));datetime(cdate(date_field), ctime(time_field)) in begin_date_time to end_date_time
    I tried this and I get an error because it says that (?begin date), (?begin time), (?end time), and (?end date) all have to be date time fields but they are not the date field is only date field and same with the time fields. Any suggestions?

  • Select expert and dates

    Post Author: barflyz
    CA Forum: Crystal Reports
    Hi, I am using Crystal 11. I connect to Oracle. My report pulls a date field which displays correctly and can be formatted. However, when I use the select expert and select "equal to", the drop down list does nor display the correct dates stored in this field. Any idea on how to solve this issue? thanks!

    Post Author: SKodidine
    CA Forum: Crystal Reports
    Some sample data might prove useful in understanding what exactly is happening.  Barring that, have you tried clicking on 'Show Formula' in the select expert and then just typing in the date instead of choosing it from the drop down list?

  • 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

  • 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 Drop down list

    Post Author: MarcS
    CA Forum: General
    Hi,
    I'm using Crystal Report 11. I'm creating a parameter field that will allow me to select a specific data from one field in my database.  When I use the "Select Expert" it only show me the first 500 records.  How can I see the rest of the data?

    Post Author: SKodidine
    CA Forum: General
    There is a time limit of 5 seconds by default.  All values fetched within 5 seconds will be displayed.  If you want to increase the time limit or the number of records fetched then you will have to modify the registry keys as described in this KBase article.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001119&sliceId=&dialogID=5902806&stateId=1%200%205904330
    Replace the registry key path in the article with HKEY_CURRENT_USER\Software\Business Objects\DatabaseServer

  • Select Expert - Record

    I'm trying to limit the values presented in the Select Expert - Record tab based upon it's relationship to a selected value from another field.
    We have several hospitals.  Each hospital has several floors or unit/wards usually identified as 6 East, 2 West, 4 North, etc.  Not all of the hospitals have the same named unit/wards.
    I select use select expert - table_name.Facility_Name = "Hospital A" when I select table_name.Unit_Name I only want those units/wards from the "Hospital_A" to be displayed in the list and not all of the units/wards that are listed in the table.  This way I do not have to wade through all of the unit/wards that a facility does not have.  The report is for unit/ward.
    Thanks
    Michael

    Hi Michael,
    If you are using Crystal XI or newer version then try creating a cascading prompt to get filtered with parent level field value.
    For more information check the sample report prompting.rpt that shows the cascading prompt of Country>Region>city
    Regards,
    Raghavendra

  • Date Range Selection in Query Templates

    Hi,
    Can someone please tell me how to use <b>Date Range Selection</b> Tab details in SQL Query and TAG Query (Using Examples).
    Thanks in advance
    Muzammil P.T

    >>>>>>>>>>
    Re: Date Range Selection in Query Templates   
    Posted: Feb 15, 2007 6:43 AM    in response to: Muzammil Ahamed       Reply      E-mail this post 
    Hi Muzammil,
    In data range section you can have multiple options like setting start datetime and end datetime.. And you can set the shift (or) time period and also the format of the time periods.
    Primarily we use the start date and end date querying to fetch data between two time labels. I can explain this one with example..
    You have batch production table with columns Production Time, Batch Id, Production Qty. Then you want all the details between the 02/02/2007 to 05/02/2007.
    Solution :
    1.Map 02/02/2007 with Start date.
    2.Map 05/02/2007 with end dare.
    Now these two become the variables [SD] and [ED].
    Now you have mentioned the date range, but you need to mention for which column these things to be applied. For that
    3.In Query tab enter Production Time column name in Date column at the bottom.
    Now you have written query like Select * from batch prodcution where production time > 02/02/2007 and production time < 05/02/2007.
    4. Even those values you mapped (SD and ED) you can change from the front page through Java script.
    Like wise you have so many other advantages also.
    If you have any other specific doubt let me know.
    Thanks,
    Rajesh.
    PS : Please ward points if answer is useful. <<<<<<<<
    Message was edited by:
            David Dreyer

  • Using Select Expert Criteria in a Report Title

    Post Author: kevinday17
    CA Forum: Formula
    Hello,
    I can't quite figure out how to get a select expert criteria in my report title.
    My title is "Sales by Customer from Jan 1, 2007 to Aug 31, 2007"  but I want to be able to have the dates in that title reflect what the user has given as parameters.
    So if the user selects July 31, 2007 as the end date, I would like the title to reflect that.  I'm less concerned about the format of the date that how to bring it into that text area.
    Thanks,
    Kevin

    Post Author: yangster
    CA Forum: Formula
    oh you are not using parameters to do the date selection (i'm guessing you have a reason for this)simplest way for you to achieve what you want would be to create a couple of formula within your report and use those instead of your hard coded dates@begin_dateDATETIME(2007, 08, 01, 00, 00, 00)@end_dateDATETIME(2007, 08, 31, 00, 00, 00)@report_title"Sales by Customer from "& @begin_date &" to "&@end_datein the selection expert put in{SOP30200.DOCDATE} in @begin_date to @end_dateso if you wanted to modify the start and end range change the values inside the 2 formulas, your report title will reflect the changes but this really should be done with parameters to allow more flexibility (but i leave that up to you to decide)

  • Boolean value from Select Expert being ignored on some machines?

    Hi,
    We have a fairly simple report which lists open calls within our support system.  The 'open' field is just a boolean true / false value.
    From the 'select expert' in Crystal, I just have this simple formula to only display the records I need:
    {support.open} and
    {status.unique} <> 99.00
    On most of the users PCs, the report displays as it should.  However, on other users the report shows headings but no data.  After some investigation, if I remove the check for the 'open' flag, the report will display records on these PCs, so it seems that on certain computers the boolean flag is being read somehow differently.
    Does anybody have any ideas as to why this may be?

    Need more info. Depending on the version of CR you can use isnull()
    Also check the version of your DB client or MDAC version, may be the cause why it works on some PC's

  • Last Hour Records in Select Expert

    I am using Crystal Reports version 10 and want create a formula which will select records created in the last hour.
    Is this possible?
    Within the select expert, you have existing formulas/date ranges such as LastFullWeek/LastFullMonth/Last7Days but I need a formula which will select LastFullHour.
    The field I am using is {Interaction.Time_Created} which contains records in the HH:MM format.
    Thanks in advance

    This will give you the last 60 minutes from the second the report was run:
    {table.datetimefield} in dateadd("h",-1,currentdatetime) to currentdatetime
    And if you wanted the last completed hour, then use this:
    in dateadd("h",-1,dateadd("n",-minute(currentdatetime),dateadd("s",-second(currentdatetime),currentdatetime))) to_
    dateadd("n",-minute(currentdatetime),dateadd("s",-second(currentdatetime),currentdatetime))
    The underscore is there by design

  • Using Select Expert Inserts Blank Section

    I'm using Crystal Reports XI Developer Edition and it recently started to display some strange behavior. Every time I use the Select Expert to add a parameter, Crystal adds in an empty ghost section. I refer to it as a ghost section because you can see it in preview mode as an unlabeled, blank section between the report footer and the page footer, but when I go into design view it's not there. How can I make this section not appear?

    Hello Mary,
    I can't explain why it would do that but here are some things to try;
    1) Ensure you are patched up with the latest service pack, SP4
    2) Try lowering the screen resolution
    3) Try lowering the hardware acceleration
    4) If you are using dual monitors only use Crystal Reports on the primary
    5) Have someone else try logging onto your machine and see if they receove the same behaviour
    Some questions if the above does not resolve the issue;
    1) Is this happening on other machines?
    2) What Operating System is CR installed on
    3) Could you please detail the exact workflowif the following statement is incorrect > go into the Select Expert, select a field to filter on, select a parameter from the drop down list of values.
    4) What happens if you manually create the record selection formula where field = parameter?
    5) Does this happen with any field type or is limited to a specific type?

Maybe you are looking for

  • Changing thickness of border around fields

    Hi Is it possible to change the thickness of the border around a database field/ text box etc? I can only find an option to choose the type of border (Single, Dotted, Dashed etc), but not the thickness. The field that I use in the report has the Can

  • Journal Import Warning

    Hi , I am running Journal Import but the status completion is warning. When I check the output/log is says: Journal Import finds no records in GL_INTERFACE for processing. Check LEDGER_ID, USER_JE_SOURCE_NAME, and GROUP_ID of import records. +-------

  • Ibook - loss home directory (deleted account)

    Hi there, Last week I bought this ibook g4 from someone; I have problem i changed home directory name (little house icon) as this still had the previous owner's name, but also deleted this account. Can i still restore this; all my settings have gone

  • Need of change log

    Hi     we delete one sales office from the settings,few days after when I look for the change log for the sales office ,      system shows Logging is switched off.    Moreover I checked in the TR table also.It doesnt show any deletion of that particu

  • [svn:fx-trunk] 9938: Quick convenience logic to remove a DL from a previous parent if it' s ever reparented with addLayer.

    Revision: 9938 Author:   [email protected] Date:     2009-09-02 14:07:27 -0700 (Wed, 02 Sep 2009) Log Message: Quick convenience logic to remove a DL from a previous parent if it's ever reparented with addLayer. QE notes: None Doc notes: None Bugs: N