Report data showing a date 1 day greater than selection formula end date

Hi All,
   I have a report that contains the following selection:
date(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) >= date(minimum({?Date})) and date(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) <= date(maximum({?Date})) and dayofweek(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) in {?DayOfWeek} and
    time(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) >= time({?Start Time}) and
    time(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) < time({?End Time})
When I view the report, if my date(maximum({?Date}))  is 5/1/2011, the report shows data for 5/2/2011. I can't seem to figure out why my report is generating data for a date that is 1 day greater than my end date.
Any suggestions would be appreciated.
Thank you in advance,

No need to send SQL as dates are not in WHERE clause.
It someting to do with the way crystal handles datetimes
If you want to see dates up to an including 6/2/2011 if its a date time crystal will create a where caluse
Datetimefield <= 6/3/2011 00:00:00
Looks like when this is converted to date its stayin as 6/3/2011
Sorry can't think of any solutions, also I live in UK so just about to leave, hopefully some one else may be able to offer a solution.
Ian

Similar Messages

  • Can't add numbers greater than 100 in the Data Editor for a column chart

    I'm trying to create a column chart in Keynote '09 but every time I add a data point with a value greater than 100 in the Data Editor it turns the number into a date. I have the Y Axis set to "Number" and it works fine for numbers less than 100 but I want to show a graph that goes from 0 - 1000. Is this happening to anyone else?
    Chart Settings:
    Y Axis Options:
    - Max = 1000
    - Steps = 5
    - Format = Number
    X Axis Options
    - Show Axis
    - Show Categories
    - No Tick Marks
    thanks in advance for the help

    Welcome to the discussions, AlexEberts.
    No, it's not happening for me. This is what I'm doing
    1) Insert -> Chart -> Column
    2) In the Data editor, for 2007, I enter 110.
    The chart automatically expands to 110 (because, by default, it's set to autosize the Y-axis)
    Does this work for you? If it does, then we can look at why it doesn't work when you add parameters.

  • Post park ivoice M8079 'Reversal value greater than value invoiced to date'

    I create a Service purchase order number is 8200000747 in our products system, and service entry sheet number is 1000026152, material document number is 5000306476.
    When I create a park invoice reference this Service PO, the system can not clear GR/IR account with that service entry sheet(1000026152). When we want to post this park invoice, system generate message M8079 'Reversal value greater than value invoiced to date'. But, this item never been verification invoice , I can find this not cleared  GR/IR data in MR11, this item not a multi account assignment , no foreign currency.
    What happened? How can I carry out the correct GR/IR account data in park invoice?

    Hello,
    Instead of reversing the invoice try posting the Credit Memo through MIRO .
    Regards
    Mahesh

  • Goods receipt date should be greater than the P.O. date

    Hi
    Is there any option to control the Goods receipt date should not be lesser than the P.O.Date??
    Eg: P.O. is raised in 10.1.9, User should not do the GRN before 10.1.9. In which way we can control  this???
    Regards
    Ravi

    Dear,
    You have to include User exit in MIGOwhich will trhrow an error at the time when Goods receipt date is greater than the P.O. date.
    Regards
    Utsav

  • Calculate the working days having the start and end dates only

    Hi,
    Can BIP be able to calculate the working days having the start and end dates only? It is like the NETWORKDAYS function in Excel. (i.e. excluding weekends and holidays).
    Thanks.

    Not out of the box.
    But You could extend your BIP functions
    Look at here:
    http://blogs.oracle.com/xmlpublisher/2009/05/bip_by_extension.html
    Based on that what you need is similar to the following Java code:
    http://objectlabkit.sourceforge.net/
    regards
    Jorge A.

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Reduce Working Days by Emp Start and End Dates

    I'm banging my head trying to get this working. The set-up:
    DimResources table with various employee information including a Start and End Date.
    A Calendar table with FullDate, Year, Quarter....WorkingDays (1 for working and 0 for non-working) and WorkingDayNumber (working days increased by 1, weekends are not).
    Page View report with page view filters for Business, Role, Month, Week, Year.
    In the calculation the denominator is total working days for the period * 8. Works great. Further reduced by any submitted time off. Again, so far so good. The part I'm having trouble with is trying to further reduce total working days by
    the number of days the person wasn't available in a month, defined by the person's start or end date.
    The calculated field works great when only 1 person is selected. As soon as more than 1 person is selected or the slicer is cleared, an error is thrown.
    Any ideas on what is wrong or better ways to accomplish what's needed?
    TotalWorkingDays2CF=CALCULATE
     SUM(Calendar[WorkingDays]),
                    FILTER(Calendar,Calendar[WorkingDays]=1),
                    Calendar, DATESBETWEEN(Calendar[FullDate],SUM(DimResources[Start Date]),SUM(DimResources[End Date]))
    Error:
    <detail>
      <ErrorCode>rsErrorExecutingCommand</ErrorCode>
      <Message>Query couldn't run for dataset 'Tablix41DataSet'.</Message>
      <ProductName>Power View</ProductName>
      <ProductVersion>11.0.2150.3</ProductVersion>
      <MoreInfo>MdxScript(Model) (10, 27) Calculation error in measure 'Calendar'[TotalWorkingDays2CF]: An invalid numeric representation of a date value was encountered.</MoreInfo>
    </detail>
    Dennis DeRobertis

    ok, but this is not a running total but just a sub-total/grand-total
    so what you can do is the following:
    create two measures - first calculate the workdays per ressourcen and second use SUMX() to get the sub-/grand-total if multiple employees are selected (e.g. subgroups, groups,division, etc)
    WorkdaysRessource:=CALCULATE(
    COUNTROWS('Date'),
    FILTER('Date',
    'Date'[Date] >= CALCULATE(MIN('DimResources'[Start Date]))
    && 'Date'[Date] <= CALCULATE(MIN('DimResources'[End Date])))
    Workdays:=CALCULATE:=SUMX(
    'DimResources',
    [WorkdaysRessource]
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Portal report - If rows returned are 1 greater than max,last row not shown

    We are experiencing what appears to be a bug with reports developed from a locally built Provider in Portal...
    If my "maximum rows to return" is set to 20, and my search returns 21 rows/results, the "next" button to navigate to the last row does not appear. Therefore, the last row is not returned to the user....
    We have been able to duplicate this with any number... For example, if we set the "max rows to be returned" to 59, and our results come back with 60 rows, neither the "next" button or last row are returned...
    Bug by chance?
    Thanks in advance for any help offered....
    ~Chris

    Hi Varsha,
    Please pay attention when you are requesting motnly period for
    start date : 1st July 2008
    end date : 1st july 2008
    After saving the period is changed to
    Start Date : 7/1/2008
    End Date  : 7/31/2008
    When you are requesting weekly period for the same interval, after sving the dates are changed again, according
    you settings of first day of the week. It it is Monday it could be as following
    Start Date : 6/30/2008
    End Date  : 7/6/2008
    So you are asking data for not quite the same period.
    Do you have data for monthly period in that interval?
    Regards,
    Victoria Gur

  • MC.9 report is showing -ve value when MRP controller selected

    Hi Expert,
    I'm confuse about the -ve value in MC.9. If i run by using Plant as the selection parameter for month 02.2010, then sorted by valuatted stock value(ascending), it will not show me the -ve value for all materials. But if i run the report by using Plant and MRP controller as the selection parameters,then sorted by valuated stock value(ascending), it shows me the -ve value. why?
    Please explain.
    Thanks

    hi jurgen,
    i still not clear. I try to run the report for material A and mrp controller  001. I got the -ve value. But when i run the material without mrp controller, it shows 0. no -ve value. i check in MM03,changes history for the material. MRP controller has been changed few times but the latest is 160. What am i confusing is, what is the relation between MRP controller with the report? What is the function of the report actually? Isn't it suppose to give the same data either i put the MRP controller or not when running the report?
    Thanks

  • How to disable selection of  End Date depending on start Date.

    Hello,
    I have  2 DatePicker controls
    1) Start Date
    2) End Date
    When I select a start date  in  date picker depending on that  it should disable the  selection of  dates less than  Start date in End date Date Picker.
    Could anyone please provide solution for it.
    Thanks & regards,
    Viswanath

    You can always check UI5 core files and extend it. FYI, most of UI5 calendars are based on "MobileScroll" UI library, e.g.
    DateTimeInput - Mobiscroll - Demos and Examples - Date &amp;amp; Time - Date with min and max
    DatePicker - Mobiscroll 2.15.1 Documentation - Calendar
    Below you can find few extension examples:
    sap.m.DateTimeInput extend- JS Bin - Collaborative JavaScript Debugging&lt;/title&gt;  &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
    sap.m.DatePicker extend -> JS Bin - Collaborative JavaScript Debugging&lt;/title&gt;  &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
    Regards,
    Vladimir

  • Date shows as correct day-January(for any month)-correct year;

    For example: 2011-09-05 shows as 5 January 2011.
    This is transferred onto all date stamps on documents in mail, i-photo etc
    In mail inbox I can correct the issue by narrowing the time, date column, wwhich then shows correct numerical date values, but 'January' is still incorrectly printed on reply emails etc.
    This is a serious problem as we have to keep logs of correspondence etc.
    Has anyone experienced a similar problem?

    System Preferences>Language & Text>Formats.
    Set it up the way you want it.

  • Tuning Greater than predicate query on dates

    Hi,
    I have the below query which is doing FTS and is very expensive causing load to timeout.
    I did my analysis and found that table is having large number of records and hence FTS is taking long time causing timeout from app side.
    I proposed to have this table partitioned but this is still pending with business and they in meantime want some solution other solution to fix this issue.
    below is the query and plan
    SELECT TRANSACTION_LOG.ID, TRANSACTION_LOG.USER_IDENTIFIER, TRANSACTION_LOG.START_TIME, TRANSACTION_LOG.END_TIME, TRANSACTION_LOG.REQUEST, TRANSACTION_LOG.RESPONSE
    FROM
    WP61PD1COLTRDB.TRANSACTION_LOG
    WHERE TRANSACTION_LOG.END_TIME > TO_DATE('07/26/2012 10:16:41','MM/DD/YYYY hh24:mi:ss')
    Plan hash value: 2462480644
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 5 | 5360 | 1480K (1)| 04:56:09 |
    |* 1 | TABLE ACCESS FULL| TRANSACTION_LOG | 5 | 5360 | 1480K (1)| 04:56:09 |
    Predicate Information (identified by operation id):
    1 - filter("TRANSACTION_LOG"."END_TIME">TIMESTAMP' 2012-07-26 10:16:41')
    Count of no. of records:
    select count(*) from WP61PD1COLTRDB.TRANSACTION_LOG
    COUNT(*)
    43537767
    There is only one index on ID column of the table which is normal index.
    desc WP61PD1COLTRDB.TRANSACTION_LOG
    Name Null Type
    ID NOT NULL NUMBER(38)
    USER_IDENTIFIER NOT NULL VARCHAR2(255)
    CLIENT_IP_ADDRESS VARCHAR2(255)
    START_TIME NOT NULL TIMESTAMP(6)
    END_TIME NOT NULL TIMESTAMP(6)
    REQUEST NOT NULL VARCHAR2(4000)
    RESPONSE VARCHAR2(4000)
    Is there any other way we can tune this query?
    Thanks
    JP

    Please read the FAQ for how to post a tuning request and the information that is needed (e.g. table and index ddl, record counts for the tables, record counts for the predicates in the where clause)
    >
    I have the below query which is doing FTS and is very expensive causing load to timeout.
    >
    Just how can a SELECT query cause a 'load' to timeout?
    >
    Is there any other way we can tune this query?
    >
    There is no way to know since you didn't provide any information about how many records there are in the table and how many might satisfy the date predicate you are using.
    Other than doing the query in parallel you can't speed it up unless there was an index on END_TIME that could be used effectively.
    Even with an index on that column a full table scan that does multi-block reads might be lower cost than using the index and doing single-block reads.
    If the table has 100 million records and your query is trying to return 99 million of them don't you think a full table scan should be used?

  • Dates showing up as day of the year vs. day and month

    hi; on my work imac, for some reason dates are labeled as the number of the year (as in 64 March) vs. the day and month. it happens in Mail and assigning dates to files that were created.
    anyone know how to fix this?
    thx, charlie

    Open the International pane of System Preferences, click on Formats, choose Customize to the right of Dates, and correct the formats.
    (34004)

  • Less Than operator not working, Greater Than operator works comparing dates

    I need to compare dates to conditionally display a row. If the DateDueJulian_ID5<= AsOfDate_ID47 display otherwise don't. I get all rows but if I reverse the logic >= the condition works and only displays the one matching row.
    I am using the Template Builder 10.1.3.4.1 and WORD 2007.
    Any help is appreciated!
    Thanks
    XML Source:
    <Header_Section_S3>
    <Delinquency_Report_ID225>DELINQUENCY NOTICE</Delinquency_Report_ID225>
    <VersionName_ID270>0001</VersionName_ID270>
    <Report_or_Video_Title_ID53></Report_or_Video_Title_ID53>
    <Remit_To_Text_ID68>Remit To:</Remit_To_Text_ID68>
    <RemitToAddressLine1_ID2>XXXXX</RemitToAddressLine1_ID2>
    <XX_XX_XX_ID259>2010-08-25</XX_XX_XX_ID259>
    <Date__ID258>Date</Date__ID258>
    <RemitToAddressLine2_ID5></RemitToAddressLine2_ID5>
    <RemitToAddressLine3_ID8></RemitToAddressLine3_ID8>
    <As_of_Date__ID46>As of Date</As_of_Date__ID46>
    <AsOfDate_ID47>2007-11-29</AsOfDate_ID47>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-12-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-11-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    RTF:
    <?for-each:Header_Section_S3?>
    <?if:DateDueJulian_ID5 <= AsOfDate_ID47?>
    <?DocVoucherInvoiceE_ID1?>
    <?DateDueJulian_ID5?>
    <?AsOfDate_ID47?>
    <?end if?>
    <?end for-each?>

    Found the solution! Use Date_Diff.
    <?if:xdoxslt:date_diff('d',DateDueJulian_ID5,AsOfDate_ID47,$_XDOLOCALE,$_XDOTIMEZONE)>=0?>

  • [SOLVED] Report Repeating Frame Will Not Print More Than One Page of Data

    I have a layout which contains only 1 repeating frame, and is not contained in any other frames. The query that the group of this frame is based on returns 414 rows. The report is a character based report of 180x66. All of the fields in the repeating frame are all in a straight line on a single row.
    No matter what I do, the report ends at the bottom of the first page. If I put the frame at row 30, only 36 rows are printed. If I put the frame on the first row, it stops at 66. No mater what I do, it will not continue on the next page.
    Any ideas on what could be the problem here?
    Thanks,
    Kurz
    Edited by: Kurzweil4 on Oct 13, 2008 3:35 PM
    Print condition was set to All. Changing it to First solved the problem.

    Make sure the repeating frame is variable vertically and that all the frames that it encloses are variable.

Maybe you are looking for

  • Problem in Releasing the Request

    Hello, I am trying to release the request which is targetting to one of the available system (say QAS) When clicking the release button, I am getting the error message as below : ========= Test call of transport control program (tp) ended with return

  • After downloading iOS 8, Photo stream doesn't work.

    After downloading iOS 8, Photo stream doesn't work.

  • Flashback Trojan - System Check

    This link has been bouncing around a few of the discussions. http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml Follow the directions on the web page to find out if your Mac is infected with the Falshback Trojan everyone is talki

  • Acrobat XI compatible with FM10?

    Are there any incompatibilities with Acrobat XI and Framemaker 10? In other words, will FM10 print to an Acrobat XI print driver?

  • No slides in show

    Have followed all directions and slideshow appears, saying there are 12 photos in it but when I play the show all I get is a fade to black screen and then it's back to iPhoto again. Even reloaded iPhoto but same thing happens. Deleted preferences, no