﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Vincent Rainardi / Article Discussions / Article Discussions by Author  / Date Dimensions Part 2 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 17 Jun 2013 23:26:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>Hi Rick,1. If the week attribute is in yyyy-ww format, we can use datepart() for [This Week]:with member [Transaction Date].[Week].[This Week] asStrToMember("[Transaction Date].[Week].&amp;[" + cstr(datepart("yyyy",now())) +   "-" + right("0"+cstr(datepart("ww",now())),2) + "]") select [Transaction Date].[Week].[This Week] on rows, [Measures].[Amount] on columnsfrom [Cube];2. It's member not set. The member definition is between "as" and "select".Ref: 1. http://msdn.microsoft.com/en-us/library/20ee97hz.aspx2. http://technet.microsoft.com/en-us/library/ms146084.aspx</description><pubDate>Fri, 20 Feb 2009 03:57:01 GMT</pubDate><dc:creator>VincentRainardi</dc:creator></item><item><title>RE: Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>It looks like to build this into the cube, I have to build them as Sets. This is nice from a presentation perspective, in that they show up in the Sets section in Excel 2007 for their respective dimensions, but means I can't use more than one at the same time.Am I missing something, and I don't have to build them as Sets?</description><pubDate>Thu, 19 Feb 2009 09:06:23 GMT</pubDate><dc:creator>Rick Todd</dc:creator></item><item><title>RE: Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>Anything simple like that for This Week?  Not having the "ww" type functionality in the FORMAT(NOW()) makes it a lot more complicated, and googling doesn't seem to bring up anything useful.</description><pubDate>Thu, 19 Feb 2009 07:46:39 GMT</pubDate><dc:creator>Rick Todd</dc:creator></item><item><title>RE: Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>Thanks Rick. We can create a calculated member such as Yesterday and Last Month like this:with member [Transaction Date].[Date].[Yesterday] asmembers("[Transaction Date].[Date].&amp;[" + Format(DateAdd("d",-1,now()),"yyyy-MM-dd") + "]")select [Transaction Date].[Date].[Yesterday] on rows,  [Measures].[Amount] on columnsfrom [Cube];with member [Transaction Date].[Month].[Last Month] asmembers("[Transaction Date].[Month].&amp;[" + Format(DateAdd("m",-1,now()),"MMMM yyyy") + "]")select [Transaction Date].[Month].[Last Month] on rows,  [Measures].[Amount] on columnsfrom [Cube];</description><pubDate>Wed, 18 Feb 2009 08:47:27 GMT</pubDate><dc:creator>VincentRainardi</dc:creator></item><item><title>RE: Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>Thanks for the great series (if 2 = series) on Date Dimensions. It certainly relates to me, as to just about any Data Warehouse developer. I definitely learned some great tricks that I use regularly now, in both articles.One question: have you found a good solution for moving dates that you can use in Excel 2007 Pivot Tables? Basically a way to tag "yesterday", "this month", "last week", etc., that a user can then create and publish a report with one of those dates as a filter, and when they reload and refresh the report it will maintain the correct date range?Thanks again,</description><pubDate>Wed, 18 Feb 2009 07:04:27 GMT</pubDate><dc:creator>Rick Todd</dc:creator></item><item><title>Date Dimensions Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic659121-292-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Analysis+Services/65803/"&gt;Date Dimensions Part 2&lt;/A&gt;[/B]</description><pubDate>Wed, 18 Feb 2009 00:27:24 GMT</pubDate><dc:creator>VincentRainardi</dc:creator></item></channel></rss>