Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 219111

Implementing a date table without interfering with existing relationships

$
0
0

Hi all, 

I am trying to compare data from my Sales table, to data in my Forecasts table. I have two different date fields involved here. Forecast.Date which is the date that a particular sale from Forecasts is predicted to take place, and Sales.Date which is the actual date when a particular sale took place. Below is a screengrab of my schema.

 

Model.png

 

As you would expect, everything revolves around products! So here's the question... Obviously there are many tables here which have a date field. As of yet I haven't been able to properly analyse disparate tables by date in a single visual. I know that I probably need a date table. But I don't fully understand how to create relationships between these dates/date table without disrupting the schema and hence other relationships.

For example, if I wanted to create a matrix with Product.Name as the rows, and then Months as columns, and as values have Forecast.Value and Sale.Value as my values. At the moment the date filtering only works for one set of these values. But when I try to implement the Date Table between forecast.date and sale.date I lose one of the relationships between these and the product table. 

I've tried to be as clear as possible, apologies if this doesn't come through!

L


Viewing all articles
Browse latest Browse all 219111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>