Forum Discussion

pat_energetics's avatar
pat_energetics
Advocate II
10 years ago

Table and relationship structure - year or date

Hi all,

I'd be interested to learn from anyone's experience (good or bad) in applying data which only changes once per year to a broader model where other fact data tables may change daily. Consider the alternatives shown in the (simplified) example below, where YearDate contains a many to one relationship to unique DateKey in a calendar, but requires other DAX techniques to overcome the many-to-many relationship to the year. YearInt contains a many to one releationship to a unique YearTable, which in turn has a one to many relationship back down to the calendar (YearKey). 

The desired outcome for many of the downstream measures, and calculations between various tables in the model is that the "Price" for a particular "Commodity" applies for the entire year (all dates within that year) and not just on the 1/1/20XX. In the case of the YearDate alternative, any calculation which doesn't include all dates in the relationship back to the date table programmatically will return blank.

Any comments greatfully appreciated.

Table DataModel Alternatives

3 Replies