Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

date warehouse date dimension design

Posted on 2016-08-09
6
Medium Priority
?
86 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 46

Accepted Solution

by:
Kent Olsen earned 2000 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 46

Expert Comment

by:Kent Olsen
ID: 41749737
Can you give me some more detail?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 46

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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
What we learned in Webroot's webinar on multi-vector protection.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

636 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