Skip to Content
author's profile photo Former Member
Former Member

trying to break out by week instead of dates with in the week

<p>I have issues that are catagorized by severity. What i need to do is this. I need to understand the mean time between issues. My formula for that works perfect for doing that. It&#39;s grouped by create date of weekly. the group name in this case is the group 2 level.</p><p>If GroupName ({SPRT_Issue.Internal_Severity}) > ""<br />Then<br />ToText<br />(<br />(<br />Maximum ({SPRT_Issue.Create_Date}, {SPRT_Issue.Internal_Severity})<br />- <br />Minimum ({SPRT_Issue.Create_Date}, {SPRT_Issue.Internal_Severity})<br />)<br />*24<br />/Count ({SPRT_Issue.Create_Date}, {SPRT_Issue.Internal_Severity})<br />)<br />Else<br />"N/A"</p><p>&#160;</p><p>I really need to do is instead of saying give me the first "create date of the issue" (meaning if the first issue occurs on thrusday of that week then start the clock) I really need it to say for the whole week period, no matter when the first issue actually happens, give me the mean time between issue. It&#39;s slight distinction between mean time between actiual issues and mean time between issue in a given block of time - in this case weekly.</p><p>I tried putting in "weekly" on the date field but either I&#39;m missing a paren somewhere or it gives me error about needing to be a number and so on. I know it&#39;s something simple but I just can&#39;t see it right now. </p><p>thanks</p><p>&#160;</p><p>&#160;</p>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2006 at 12:20 AM

    If you want the whole week, add a boolean test to see what day of week your date is and then do the appropriate math on that. This is some pseudo code that may help:

    select DayOfWeek({field.date})

    case 1 : totext({field.date}) //Sunday
    case 2 : totext({field.date}-1) //Monday - must subtract a day
    etc...

    Hopefully that will give you an idea of where to go next.

    Â Â Â Â - Kathryn Webster (Report Design Consultant)
    Â Â Â Â Â Â Â Â Â Â Kat&#39;s News: http://diamond.businessobjects.com/blog/279


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.