<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Dynamic Dates Part II: Weekly Date Ranges</title>
	<atom:link href="http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/</link>
	<description>...you are in a twisty maze of passageways, all different...</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:17:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-2044</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 10 Nov 2011 13:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-2044</guid>
		<description>Hi, Ganesh, if you click the &lt;a href=&quot;http://www.dagira.com/category/design/dynamic-dates/&quot; rel=&quot;nofollow&quot;&gt;Dynamic Dates&lt;/a&gt; link under my category list it will show all of the posts in this series, including one at the end where I linked to some other resources. The specific post is &lt;a href=&quot;http://www.dagira.com/2008/09/23/dynamic-dates-part-v-more-databases/&quot; rel=&quot;nofollow&quot;&gt;Dynamic Dates Part IV: More Database&lt;/a&gt; and it includes a link to another blog with some SQL Server information. Welcome, and thanks for your question.</description>
		<content:encoded><![CDATA[<p>Hi, Ganesh, if you click the <a href="http://www.dagira.com/category/design/dynamic-dates/" rel="nofollow">Dynamic Dates</a> link under my category list it will show all of the posts in this series, including one at the end where I linked to some other resources. The specific post is <a href="http://www.dagira.com/2008/09/23/dynamic-dates-part-v-more-databases/" rel="nofollow">Dynamic Dates Part IV: More Database</a> and it includes a link to another blog with some SQL Server information. Welcome, and thanks for your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GANESH</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-2042</link>
		<dc:creator>GANESH</dc:creator>
		<pubDate>Thu, 10 Nov 2011 10:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-2042</guid>
		<description>please tell me the formulas in case of sql server 2008</description>
		<content:encoded><![CDATA[<p>please tell me the formulas in case of sql server 2008</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1828</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Mon, 18 Jul 2011 15:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1828</guid>
		<description>If you are already splitting into two data providers, I&#039;m not sure why the existing objects won&#039;t work. A &quot;current month&quot; object prompts for a month. A &quot;prior month&quot; object prompts for the same thing, but offsets by one month. Using the proper condition object in each data provider should provide what I think you are requesting.</description>
		<content:encoded><![CDATA[<p>If you are already splitting into two data providers, I&#8217;m not sure why the existing objects won&#8217;t work. A &#8220;current month&#8221; object prompts for a month. A &#8220;prior month&#8221; object prompts for the same thing, but offsets by one month. Using the proper condition object in each data provider should provide what I think you are requesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiwari</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1822</link>
		<dc:creator>Tiwari</dc:creator>
		<pubDate>Thu, 14 Jul 2011 19:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1822</guid>
		<description>Hi Dave,

I want to calculate trend based on the comparision made b/w present month and last month...
I am able to comapre it using alters and displaying trend icons ( up &amp; down arrow)..however currently i have hardcoded the query filter like current month= feb-11 and last month=jan-11 in two diff data providers.
 
Here is the requirement:-
I have two dp&#039;s:
1) current month : it will contain prompt on &quot;month name&quot; which user will enter 
2) previous month : it will contain filter on object &quot;last month&quot; which i have created using formula add_months(month, -1) in oracle...
I now want that user shud only enter feb-11 ( in prompt for 1st dp) however in the 2nd dp it shud auto pass &quot;jan-11&quot; for last month..so it will calculate data for last month..
 
 
Basically i want to pass current month name in 1st and it shud pass last month automatically in 2nd dp...

Is there any trick at universe level???
 
 
Plss let me know how we can do this....</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I want to calculate trend based on the comparision made b/w present month and last month&#8230;<br />
I am able to comapre it using alters and displaying trend icons ( up &amp; down arrow)..however currently i have hardcoded the query filter like current month= feb-11 and last month=jan-11 in two diff data providers.</p>
<p>Here is the requirement:-<br />
I have two dp&#8217;s:<br />
1) current month : it will contain prompt on &#8220;month name&#8221; which user will enter<br />
2) previous month : it will contain filter on object &#8220;last month&#8221; which i have created using formula add_months(month, -1) in oracle&#8230;<br />
I now want that user shud only enter feb-11 ( in prompt for 1st dp) however in the 2nd dp it shud auto pass &#8220;jan-11&#8243; for last month..so it will calculate data for last month..</p>
<p>Basically i want to pass current month name in 1st and it shud pass last month automatically in 2nd dp&#8230;</p>
<p>Is there any trick at universe level???</p>
<p>Plss let me know how we can do this&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1494</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 04 Nov 2010 21:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1494</guid>
		<description>Gary, you may need to read my &quot;&lt;a href=&quot;http://www.dagira.com/2007/08/23/tips-for-formatting-blog-comments/&quot; rel=&quot;nofollow&quot;&gt;posting code&lt;/a&gt;&quot; notes because I think some of your comment was eaten by Wordpress...</description>
		<content:encoded><![CDATA[<p>Gary, you may need to read my &#8220;<a href="http://www.dagira.com/2007/08/23/tips-for-formatting-blog-comments/" rel="nofollow">posting code</a>&#8221; notes because I think some of your comment was eaten by Wordpress&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary S.</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1490</link>
		<dc:creator>Gary S.</dc:creator>
		<pubDate>Wed, 03 Nov 2010 21:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1490</guid>
		<description>Here is a different approach to solve a problem I had.  I don&#039;t have access to the sql portion using &quot;Next_Day()&quot;.  So, I had to generate a start and end of week using objects in the report designer.

First off I had to change the day of week to start on sunday instead of monday:

&lt;strong&gt;Name of variable object:&lt;/strong&gt; DayOfWeek

&lt;strong&gt;designer code:&lt;/strong&gt;
&lt;code&gt;= If (DayNumberOfWeek() =7)Then ( 1 ) Else  DayNumberOfWeek()+1&lt;/code&gt;

Then from there I was able to determine the first of the week and end of the week based of the date used.

&lt;strong&gt;Name of variable object:&lt;/strong&gt; EndOfWeek

&lt;strong&gt;designer code:&lt;/strong&gt;
&lt;code&gt;=-+7&lt;/code&gt;



&lt;strong&gt;Name of variable object:&lt;/strong&gt; StartOfWeek

&lt;strong&gt;designer code:&lt;/strong&gt;
&lt;code&gt;=-+1&lt;/code&gt;

Hope this was helpful.</description>
		<content:encoded><![CDATA[<p>Here is a different approach to solve a problem I had.  I don&#8217;t have access to the sql portion using &#8220;Next_Day()&#8221;.  So, I had to generate a start and end of week using objects in the report designer.</p>
<p>First off I had to change the day of week to start on sunday instead of monday:</p>
<p><strong>Name of variable object:</strong> DayOfWeek</p>
<p><strong>designer code:</strong><br />
<code>= If (DayNumberOfWeek() =7)Then ( 1 ) Else  DayNumberOfWeek()+1</code></p>
<p>Then from there I was able to determine the first of the week and end of the week based of the date used.</p>
<p><strong>Name of variable object:</strong> EndOfWeek</p>
<p><strong>designer code:</strong><br />
<code>=-+7</code></p>
<p><strong>Name of variable object:</strong> StartOfWeek</p>
<p><strong>designer code:</strong><br />
<code>=-+1</code></p>
<p>Hope this was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teddypal86</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1481</link>
		<dc:creator>teddypal86</dc:creator>
		<pubDate>Fri, 29 Oct 2010 05:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1481</guid>
		<description>Hi Dave,

Thanks for your reply. Even though i am playing with Teradata and BOXIR2 i dnt have option to use calendar table. That’s how i reached in your blog :). Hoping some where i can find the answer :). I had search in BOB, many of option are including the calendar table. Anyway as of now i got an option in bo we can use week (transaction date)
Eg:
week: week (19/08/2006)
Result will be 33 :) 
Previous week: week (19/08/2006)-1
Result will be 32 :)

I need to do more research in it.

Thank you :)
teddy</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Thanks for your reply. Even though i am playing with Teradata and BOXIR2 i dnt have option to use calendar table. That’s how i reached in your blog <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Hoping some where i can find the answer <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I had search in BOB, many of option are including the calendar table. Anyway as of now i got an option in bo we can use week (transaction date)<br />
Eg:<br />
week: week (19/08/2006)<br />
Result will be 33 <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Previous week: week (19/08/2006)-1<br />
Result will be 32 <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I need to do more research in it.</p>
<p>Thank you <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
teddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1480</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 28 Oct 2010 19:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1480</guid>
		<description>I don&#039;t have an immediate answer, that&#039;s my point. :) If you have an urgent question, posting on BOB or SCN is far more likely to generate an answer because either someone will know the answer, or someone might be interested enough to do the research and help you answer the question.

Do you have a calendar table in your system? That&#039;s often a good place to start. The functions shown in this series of posts are designed to work without a calendar table. Teradata has the built-in calendar sys_calendar.calendar that you might be able to use in your case.

That&#039;s as far as I am going to go here. Thanks for understanding.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have an immediate answer, that&#8217;s my point. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If you have an urgent question, posting on BOB or SCN is far more likely to generate an answer because either someone will know the answer, or someone might be interested enough to do the research and help you answer the question.</p>
<p>Do you have a calendar table in your system? That&#8217;s often a good place to start. The functions shown in this series of posts are designed to work without a calendar table. Teradata has the built-in calendar sys_calendar.calendar that you might be able to use in your case.</p>
<p>That&#8217;s as far as I am going to go here. Thanks for understanding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teddypal86</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1479</link>
		<dc:creator>teddypal86</dc:creator>
		<pubDate>Thu, 28 Oct 2010 13:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1479</guid>
		<description>Hi dave,

I dint get any reply over there :( and i need it urgently if you know the answer can you please help me?

thanks in advance
teddy</description>
		<content:encoded><![CDATA[<p>Hi dave,</p>
<p>I dint get any reply over there <img src='http://www.dagira.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  and i need it urgently if you know the answer can you please help me?</p>
<p>thanks in advance<br />
teddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/comment-page-1/#comment-1478</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 28 Oct 2010 13:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/30/dynamic-dates-part-ii-weekly-date-ranges/#comment-1478</guid>
		<description>Hi, &quot;teddy&quot;, I see that you have posted the same question on BOB where you are likely to get faster responses than here.</description>
		<content:encoded><![CDATA[<p>Hi, &#8220;teddy&#8221;, I see that you have posted the same question on BOB where you are likely to get faster responses than here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

