<?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: Time Sliced Measures Part III: Making Measures</title>
	<atom:link href="http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/</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/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1965</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 13 Oct 2011 18:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1965</guid>
		<description>Yes, queries with only measures will be synchronized because there&#039;s nothing to link with. :)</description>
		<content:encoded><![CDATA[<p>Yes, queries with only measures will be synchronized because there&#8217;s nothing to link with. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sravan</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1964</link>
		<dc:creator>Sravan</dc:creator>
		<pubDate>Thu, 13 Oct 2011 15:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1964</guid>
		<description>Dave, thanks for pointing me in the right direction. I think I understand now what&#039;s causing the synchronization operation in my case. If I select just the timeslice measures (without any dimensions) in my query then the queries are synchronized which I think is expected as there are no shared dimensions across the timeslice contexts. Please correct me if I am wrong.

(also your comments in old posts from BOB forum helped me understand the &#039;Sychronization&#039; and &#039;Join&#039; concepts, http://www.forumtopics.com/busobj/viewtopic.php?p=264898 and http://www.forumtopics.com/busobj/viewtopic.php?p=622469
)

Thanks again.</description>
		<content:encoded><![CDATA[<p>Dave, thanks for pointing me in the right direction. I think I understand now what&#8217;s causing the synchronization operation in my case. If I select just the timeslice measures (without any dimensions) in my query then the queries are synchronized which I think is expected as there are no shared dimensions across the timeslice contexts. Please correct me if I am wrong.</p>
<p>(also your comments in old posts from BOB forum helped me understand the &#8216;Sychronization&#8217; and &#8216;Join&#8217; concepts, <a href="http://www.forumtopics.com/busobj/viewtopic.php?p=264898" rel="nofollow">http://www.forumtopics.com/busobj/viewtopic.php?p=264898</a> and <a href="http://www.forumtopics.com/busobj/viewtopic.php?p=622469" rel="nofollow">http://www.forumtopics.com/busobj/viewtopic.php?p=622469</a><br />
)</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1960</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Thu, 13 Oct 2011 02:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1960</guid>
		<description>Hi, if you see a synchronization operation it means you have some dimensions that work for some contexts but not others. If you carefully examine the SQL you should see which dimensions those are, which fact table is being used, and which time-slice route. That may help you understand where the issue is coming from.</description>
		<content:encoded><![CDATA[<p>Hi, if you see a synchronization operation it means you have some dimensions that work for some contexts but not others. If you carefully examine the SQL you should see which dimensions those are, which fact table is being used, and which time-slice route. That may help you understand where the issue is coming from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sravan</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1958</link>
		<dc:creator>Sravan</dc:creator>
		<pubDate>Wed, 12 Oct 2011 14:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1958</guid>
		<description>Hi Dave,

Thanks for the detailed post. We have a similar requirement that our clients want to time slice the measures by CY, PY - MTD, YTD, QTD (based on fiscal and calendar year). With this post&#039;s help, I was able to implement it in development for one fact table so far (within 4 hrs, database and universe) in semi-complex universe (70 tables, 287 joins, 12 contexts). I am testing the data and it looks great so far.

I have a question. When I pull CY MTD, CY YTD, PY MTD and PY YTD measures into my report as one query, the SQL viewer shows 4 sqls as &#039;Synchronization&#039; instead of &#039;Join&#039; like you mentioned above. What&#039;s the different between &#039;Synchronization&#039; and &#039;Join&#039; here? 

I have both &#039;Multiple sqls for each context&#039; and &#039;Multiple sqls for each measure&#039; checked in the universe.

Thanks much,
Sravan</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Thanks for the detailed post. We have a similar requirement that our clients want to time slice the measures by CY, PY &#8211; MTD, YTD, QTD (based on fiscal and calendar year). With this post&#8217;s help, I was able to implement it in development for one fact table so far (within 4 hrs, database and universe) in semi-complex universe (70 tables, 287 joins, 12 contexts). I am testing the data and it looks great so far.</p>
<p>I have a question. When I pull CY MTD, CY YTD, PY MTD and PY YTD measures into my report as one query, the SQL viewer shows 4 sqls as &#8216;Synchronization&#8217; instead of &#8216;Join&#8217; like you mentioned above. What&#8217;s the different between &#8216;Synchronization&#8217; and &#8216;Join&#8217; here? </p>
<p>I have both &#8216;Multiple sqls for each context&#8217; and &#8216;Multiple sqls for each measure&#8217; checked in the universe.</p>
<p>Thanks much,<br />
Sravan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edpypf</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1896</link>
		<dc:creator>edpypf</dc:creator>
		<pubDate>Wed, 07 Sep 2011 16:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1896</guid>
		<description>SELECT
  A_Sales_Org_Curr.Sales_Org_ID,
  A_SITE_CURR_New.Site_ID,
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=100 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=200 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=-100 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=-200 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end)
FROM
  A_Sales_Org_Curr INNER JOIN A_Dist_Channel_Curr ON (A_Dist_Channel_Curr.Sales_Org_ID=A_Sales_Org_Curr.Sales_Org_ID)
   INNER JOIN A_SITE_CURR_New ON (A_SITE_CURR_New.Sales_Org_ID=A_Dist_Channel_Curr.Sales_Org_ID and A_SITE_CURR_New.Dist_Channel_ID=A_Dist_Channel_Curr.Dist_Channel_ID)
   INNER JOIN A_Daily_Site_Sales ON (A_SITE_CURR_New.Site_ID=A_Daily_Site_Sales.Site_ID)  
   INNER JOIN  Yr_Day_Trend_Range ON A_Daily_Site_Sales.trans_date BETWEEN  Yr_Day_Trend_Range.Start_Date and  Yr_Day_Trend_Range.end_Date 
WHERE		 A_Sales_Org_Curr.Sales_Org_ID       IN (&#039;0001&#039;)
   AND Yr_Day_Trend_Range.SORT_NUM IN (100,200,-100,-200)
   and      ( ( Yr_Day_Trend_Range.select_date ) IN ({d &#039;2011-12-28&#039;})  )
GROUP BY
  1, 
  2;</description>
		<content:encoded><![CDATA[<p>SELECT<br />
  A_Sales_Org_Curr.Sales_Org_ID,<br />
  A_SITE_CURR_New.Site_ID,<br />
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=100 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),<br />
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=200 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),<br />
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=-100 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end),<br />
  sum(Case when Yr_Day_Trend_Range.SORT_NUM=-200 then A_Daily_Site_Sales.Daily_Dept_Sales_Amt else 0 end)<br />
FROM<br />
  A_Sales_Org_Curr INNER JOIN A_Dist_Channel_Curr ON (A_Dist_Channel_Curr.Sales_Org_ID=A_Sales_Org_Curr.Sales_Org_ID)<br />
   INNER JOIN A_SITE_CURR_New ON (A_SITE_CURR_New.Sales_Org_ID=A_Dist_Channel_Curr.Sales_Org_ID and A_SITE_CURR_New.Dist_Channel_ID=A_Dist_Channel_Curr.Dist_Channel_ID)<br />
   INNER JOIN A_Daily_Site_Sales ON (A_SITE_CURR_New.Site_ID=A_Daily_Site_Sales.Site_ID)<br />
   INNER JOIN  Yr_Day_Trend_Range ON A_Daily_Site_Sales.trans_date BETWEEN  Yr_Day_Trend_Range.Start_Date and  Yr_Day_Trend_Range.end_Date<br />
WHERE		 A_Sales_Org_Curr.Sales_Org_ID       IN (&#8217;0001&#8242;)<br />
   AND Yr_Day_Trend_Range.SORT_NUM IN (100,200,-100,-200)<br />
   and      ( ( Yr_Day_Trend_Range.select_date ) IN ({d &#8216;2011-12-28&#8242;})  )<br />
GROUP BY<br />
  1,<br />
  2;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edpypf</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1889</link>
		<dc:creator>edpypf</dc:creator>
		<pubDate>Tue, 30 Aug 2011 12:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1889</guid>
		<description>Thanks, learned &quot;bit&quot; solution,
I actually designed a date mapping table, which is similar as your customized table, but lists all the mapped date instead of Starting and Ending date column. the columns in my table are &quot;Selected Date&quot;, &quot;Index Number&quot;, &quot;Mapped Date&quot;(which link to fact table-Trans_dt), so with one table, I use Case When Index_Num=999 then 1 else 0 end statement to aggregate the fact in proper time slices. this reduced number of contexts. after index created and collect stats, the performance is close to the one using time partition, the performance is even better if report level filter to limit use of index number is applied. Please let me know what you thought. Thank you</description>
		<content:encoded><![CDATA[<p>Thanks, learned &#8220;bit&#8221; solution,<br />
I actually designed a date mapping table, which is similar as your customized table, but lists all the mapped date instead of Starting and Ending date column. the columns in my table are &#8220;Selected Date&#8221;, &#8220;Index Number&#8221;, &#8220;Mapped Date&#8221;(which link to fact table-Trans_dt), so with one table, I use Case When Index_Num=999 then 1 else 0 end statement to aggregate the fact in proper time slices. this reduced number of contexts. after index created and collect stats, the performance is close to the one using time partition, the performance is even better if report level filter to limit use of index number is applied. Please let me know what you thought. Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1332</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Mon, 16 Aug 2010 18:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1332</guid>
		<description>Hi, I didn&#039;t post a link to download the database or the universe. The database that I am working with is Oracle, but the same tables could be created in Access like the original Island Resorts universe.</description>
		<content:encoded><![CDATA[<p>Hi, I didn&#8217;t post a link to download the database or the universe. The database that I am working with is Oracle, but the same tables could be created in Access like the original Island Resorts universe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishant</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1331</link>
		<dc:creator>Nishant</dc:creator>
		<pubDate>Mon, 16 Aug 2010 15:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1331</guid>
		<description>Great post, Dave. Is there a link for the completed universe/database -- sorry if I missed it? Thanks!</description>
		<content:encoded><![CDATA[<p>Great post, Dave. Is there a link for the completed universe/database &#8212; sorry if I missed it? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Rathbun</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1307</link>
		<dc:creator>Dave Rathbun</dc:creator>
		<pubDate>Wed, 04 Aug 2010 00:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1307</guid>
		<description>Hi, Avinash, and thanks for your comment. I hope I am understanding your question. You still need a reference date of some kind, as &quot;YTD&quot; stops on a particular date, even if it&#039;s today&#039;s date. Our solution was complicated by the fact that our users wanted YTD to be defined at runtime. Many (most) solutions define the &quot;to date&quot; in YTD as the most recent warehouse load date.

In either case, this sort of solution still works.

I am in the process of implementing this in an older universe, and it will dramatically reduce the amount of time required to do future maintenance. That&#039;s a nice benefit as well.</description>
		<content:encoded><![CDATA[<p>Hi, Avinash, and thanks for your comment. I hope I am understanding your question. You still need a reference date of some kind, as &#8220;YTD&#8221; stops on a particular date, even if it&#8217;s today&#8217;s date. Our solution was complicated by the fact that our users wanted YTD to be defined at runtime. Many (most) solutions define the &#8220;to date&#8221; in YTD as the most recent warehouse load date.</p>
<p>In either case, this sort of solution still works.</p>
<p>I am in the process of implementing this in an older universe, and it will dramatically reduce the amount of time required to do future maintenance. That&#8217;s a nice benefit as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash Wagh</title>
		<link>http://www.dagira.com/2009/12/17/time-sliced-measures-part-iii-making-measures/comment-page-1/#comment-1306</link>
		<dc:creator>Avinash Wagh</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagira.com/?p=187#comment-1306</guid>
		<description>Its realy good solution. But what if I dont have any refrence date. I mean if i want to see YTD for current year on all the dates available in FACT table. In this case I would need RunningSum(Revenue) on date level. 
To elaborate more If I want to see YTD  values on time dimension(Date, Month..),will this solution work??</description>
		<content:encoded><![CDATA[<p>Its realy good solution. But what if I dont have any refrence date. I mean if i want to see YTD for current year on all the dates available in FACT table. In this case I would need RunningSum(Revenue) on date level.<br />
To elaborate more If I want to see YTD  values on time dimension(Date, Month..),will this solution work??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

