<?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 I: Yesterday and Today</title>
	<atom:link href="http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/</link>
	<description>...you are in a twisty maze of passageways, all different...</description>
	<lastBuildDate>Thu, 09 Sep 2010 09:57:30 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mohanraj</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-1245</link>
		<dc:creator>Mohanraj</dc:creator>
		<pubDate>Thu, 24 Jun 2010 18:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-1245</guid>
		<description>Thanks for the awesome ideas !</description>
		<content:encoded><![CDATA[<p>Thanks for the awesome ideas !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-520</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-520</guid>
		<description>Hi, CA, welcome. Please note that your question really has nothing to do with this blog post. As per &lt;a href=&quot;http://www.dagira.com/getting-support/&quot; rel=&quot;nofollow&quot;&gt;my support policy&lt;/a&gt; I would suggest that you post your question on BOB instead. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, CA, welcome. Please note that your question really has nothing to do with this blog post. As per <a href="http://www.dagira.com/getting-support/" rel="nofollow">my support policy</a> I would suggest that you post your question on BOB instead. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CA_BO</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-519</link>
		<dc:creator>CA_BO</dc:creator>
		<pubDate>Tue, 24 Mar 2009 21:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-519</guid>
		<description>Hi Dave,
Thanks for your tips.Its really helpful to novices like me in BO.

My users need to get report in email, which will tell them from which DB/env the report data are coming from either in the subject line/mail body or report name.Can this be possible through scheduling report feature in XI R2?Dynamically appending the DB/Env name while running and fetching data?</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
Thanks for your tips.Its really helpful to novices like me in BO.</p>
<p>My users need to get report in email, which will tell them from which DB/env the report data are coming from either in the subject line/mail body or report name.Can this be possible through scheduling report feature in XI R2?Dynamically appending the DB/Env name while running and fetching data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hampton</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-514</link>
		<dc:creator>David Hampton</dc:creator>
		<pubDate>Wed, 18 Mar 2009 00:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-514</guid>
		<description>Dave,

I finally was able to make so progress on this.

@Select(Transaction Details\Transaction Date) = COALESCE(
(case when dayofweek(CURRENT_DATE) = 2 then (CURRENT DATE - 3 days)
when dayofweek(CURRENT_DATE)=3 then (CURRENT DATE - 2 days)
ELSE (CURRENT DATE - 1 days)
END),CURRENT_DATE)

But I would like to add to the when dayofweek(CURRENT_DATE)=3 then (CURRENT DATE - 2 days) part.. if current_date =3 I actually need to pull Current date - 2 and current date - 1.

Any ideas? 

Thanks again,</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>I finally was able to make so progress on this.</p>
<p>@Select(Transaction Details\Transaction Date) = COALESCE(<br />
(case when dayofweek(CURRENT_DATE) = 2 then (CURRENT DATE &#8211; 3 days)<br />
when dayofweek(CURRENT_DATE)=3 then (CURRENT DATE &#8211; 2 days)<br />
ELSE (CURRENT DATE &#8211; 1 days)<br />
END),CURRENT_DATE)</p>
<p>But I would like to add to the when dayofweek(CURRENT_DATE)=3 then (CURRENT DATE &#8211; 2 days) part.. if current_date =3 I actually need to pull Current date &#8211; 2 and current date &#8211; 1.</p>
<p>Any ideas? </p>
<p>Thanks again,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hampton</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-513</link>
		<dc:creator>David Hampton</dc:creator>
		<pubDate>Tue, 17 Mar 2009 16:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-513</guid>
		<description>Hey Dave, I have read over the blogs entries above, and also review the BOB website. I can not seem to figure out how to use the dayofweek function when trying to create a predefined condition.

In short, I am trying to identify which day it is, and then subtract x number of days from a transaction date data object within my universe.

Here is the code I have to date.
Case when dayofweek(CURRENT_DATE)=2 then 
@Select(Transaction Details\Transaction Date) = (current_date - 3 days) 
when dayofweek(CURRENT_DATE)=3 then 
@Select(Transaction Details\Transaction Date) = (current_date - 1 days) 
END 

I get the following error when I try to parse my condition. 

[IBM][CLI Driver][DB2] SQL0104N An unexpected token &quot;=&quot; was found following &quot;&quot;. Expected tokens may include: &quot;END&quot;. SQLSTATE=42601 
:-104 

I appreciate any help. 

Thanks,</description>
		<content:encoded><![CDATA[<p>Hey Dave, I have read over the blogs entries above, and also review the BOB website. I can not seem to figure out how to use the dayofweek function when trying to create a predefined condition.</p>
<p>In short, I am trying to identify which day it is, and then subtract x number of days from a transaction date data object within my universe.</p>
<p>Here is the code I have to date.<br />
Case when dayofweek(CURRENT_DATE)=2 then<br />
@Select(Transaction Details\Transaction Date) = (current_date &#8211; 3 days)<br />
when dayofweek(CURRENT_DATE)=3 then<br />
@Select(Transaction Details\Transaction Date) = (current_date &#8211; 1 days)<br />
END </p>
<p>I get the following error when I try to parse my condition. </p>
<p>[IBM][CLI Driver][DB2] SQL0104N An unexpected token &#8220;=&#8221; was found following &#8220;&#8221;. Expected tokens may include: &#8220;END&#8221;. SQLSTATE=42601<br />
:-104 </p>
<p>I appreciate any help. </p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-463</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Sun, 21 Dec 2008 02:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-463</guid>
		<description>Hi, David, and welcome. If you have any non-standard issues to deal with I much prefer to use a calendar table than try to work with database functions. It makes the solution much cleaner that way.</description>
		<content:encoded><![CDATA[<p>Hi, David, and welcome. If you have any non-standard issues to deal with I much prefer to use a calendar table than try to work with database functions. It makes the solution much cleaner that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-459</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 15 Dec 2008 13:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-459</guid>
		<description>How do you deal with this in business days including holidays.  This is critical in financial data?</description>
		<content:encoded><![CDATA[<p>How do you deal with this in business days including holidays.  This is critical in financial data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-364</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 24 Sep 2008 17:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-364</guid>
		<description>Tbaby, welcome and thank you for your comment. Your question isn&#039;t solved by creating dynamic date objects, it&#039;s going to be solved by using a calendar table and multiple query passes. In other words, a completely different approach. :) I am in the process of writing up one way to do this for a presentation at the user conference next month (October) in Dallas. It&#039;s fairly complex, and not something I am able to answer here in the limited space, and not on this post since it&#039;s a completely different technique.

Come back in a month and you should be able to download the presentation from my &lt;a href=&quot;http://www.dagira.com/conference-presentations/&quot; rel=&quot;nofollow&quot;&gt;conferences page&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Tbaby, welcome and thank you for your comment. Your question isn&#8217;t solved by creating dynamic date objects, it&#8217;s going to be solved by using a calendar table and multiple query passes. In other words, a completely different approach. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I am in the process of writing up one way to do this for a presentation at the user conference next month (October) in Dallas. It&#8217;s fairly complex, and not something I am able to answer here in the limited space, and not on this post since it&#8217;s a completely different technique.</p>
<p>Come back in a month and you should be able to download the presentation from my <a href="http://www.dagira.com/conference-presentations/" rel="nofollow">conferences page</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tbaby</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-362</link>
		<dc:creator>Tbaby</dc:creator>
		<pubDate>Wed, 24 Sep 2008 16:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-362</guid>
		<description>Dave,
Pls can you kindly help me to figure this out;
I have succeeded in creating my previuos and current month object, but i want their corresponding revenue to be display on a separate column and the measure object not aggregated. How do i go about it.

Note; If create a report with both objects(previous &amp; current month), i want to display each of the data on a separate column.
I await your prompt response.</description>
		<content:encoded><![CDATA[<p>Dave,<br />
Pls can you kindly help me to figure this out;<br />
I have succeeded in creating my previuos and current month object, but i want their corresponding revenue to be display on a separate column and the measure object not aggregated. How do i go about it.</p>
<p>Note; If create a report with both objects(previous &amp; current month), i want to display each of the data on a separate column.<br />
I await your prompt response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/comment-page-1/#comment-255</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Fri, 20 Jun 2008 19:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/#comment-255</guid>
		<description>Dave, you are wonderful, it was really helpful... Thanks!!!</description>
		<content:encoded><![CDATA[<p>Dave, you are wonderful, it was really helpful&#8230; Thanks!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
