Solved

date warehouse date dimension design

Posted on 2016-08-09
6
77 Views
Last Modified: 2016-08-17
I'm trying to figure out this design.


I have a count measure "Count(ids)" in my fact table.  I also have the standard date dimension which is joins up to fine.  I'm trying to figure out where to put my YTD Dimension or if it goes into the standard date dimension.  The measure is the count(ids) from the beginning of the year to the most current Saturday.  Do I put the ytd field in the date dimension or should I make it it's own dimension.
0
Comment
Question by:elucero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 41749667
Hi Elucero,

Aggregate functions (count, sum, average, etc.) do not normally go in the fact table.  The are computed from the fact table and limited by the dimension (date) table.

You might have other tables that contain summary values, but that's different from the fact table.
1
 

Author Comment

by:elucero
ID: 41749736
Thank you.  I'm sure I'm not explaining this correctly.
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 41749737
Can you give me some more detail?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:elucero
ID: 41760042
I ended up making a ytd dimension and not putting those particulars dates in the regular date dimension.  Thanks for your help.
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 41760077
That's not a bad idea.  I assume that you just reused the value of the data dimension key in the fact table?
1
 

Author Comment

by:elucero
ID: 41760084
Yes, thanks.  I just asked another question bout date of death can you help w/that.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question