﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Analysis Services  / Designing my first dimension / 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, 20 May 2013 15:53:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Designing my first dimension</title><link>http://www.sqlservercentral.com/Forums/Topic446959-17-1.aspx</link><description>already found it my self.thx</description><pubDate>Fri, 01 Feb 2008 05:41:29 GMT</pubDate><dc:creator>jvElecenter</dc:creator></item><item><title>Designing my first dimension</title><link>http://www.sqlservercentral.com/Forums/Topic446959-17-1.aspx</link><description>HiMy regular query (relational database) is :select year(CLE.[Due Date]) as Jaar, month(CLE.[Due Date]) as Maand,   DATEPART(week, CLE.[Due Date]) as Week,  sum(GLE.[Remaining Amount]) as Saldo  from dbo.[FIN SEPIA$Cust_ Ledger Entry] as CLEjoin dbo.[FIN SEPIA$G_L Entry] as GLE on  GLE.[Document No_] = CLE.[Document No_]where CLE.[Document Type] = '2' and CLE.[Open] = '1' and GLE.[G_L Account No_] = '400000'and DATEPART(week, CLE.[Due Date]) in (@parWeek)and year(CLE.[Due Date]) in ('2007','2008')group by year(CLE.[Due Date]), month(CLE.[Due Date]),  DATEPART(week, CLE.[Due Date])I guess the dateparts are coming from a time dimension, but my amounts are in fact a join between two tables and a where clause.How should I build up my dimension or is this a fact table ?Many thanks in advance El Jefe</description><pubDate>Thu, 24 Jan 2008 08:30:45 GMT</pubDate><dc:creator>jvElecenter</dc:creator></item></channel></rss>