Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cwayne758
Helper IV
Helper IV

Date Dimension Tables in large datamodels

Hi, 

 

I'm running quite a large data model (around 20 queries), with many of my tables containing multiple date columns.

 

I am curious how others approach the use of Date Dimension tables in large models. Do you leverage multiple DateDimension tables with  relationships to your different date fields, or use one Date Dimension table with multiple relationships?

 

Currently, I am trying to use one Date Dimension table but with my limited proficency in DAX, the filter contexing proves to complicat things for me.

 

Here's a photo of the model Data Model.PNG 

3 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

I posted something on Transitive Relationships and Date Dimensions that might help:

 

http://community.powerbi.com/t5/Desktop/Transitive-Relationships/m-p/8574#M1449

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

lanceengland
Regular Visitor

You can pragmatically do either way.

 

Separate Data Tables
PROS

  • Formulas easier to create for beginning DAX users

 

CONS

  • Your data model will require more memory with duplicate tables
  • If you want to add a new column to your date table (ISO week, for example), then you will have to add it to every table which is more work to maintain and uses more memory

 

If your data model size in memory is pretty small, you could use separate tables. I prefer only one Date table, creating multiple relationships to it, and altering the appropriate measures to add the USERELATIONSHIP function to the filter context parameter of the CALCULATE function. Once you get the hang of it, it's not as hard as it first seems.

View solution in original post

One advantage of multiple date tables is that you can label the attributes clearly as to what they represent (e.g. Invoice Date, Invoice Month, Order Date, Order Month). 

 

It can also be helpful if you have 2 dates associated with the same fact and want to combine filters. (E.g. all returns in October 2015 that have an original purchase date of 2014).

---
In Wisconsin? Join the Madison Power BI User Group.

View solution in original post

3 REPLIES 3
lanceengland
Regular Visitor

You can pragmatically do either way.

 

Separate Data Tables
PROS

  • Formulas easier to create for beginning DAX users

 

CONS

  • Your data model will require more memory with duplicate tables
  • If you want to add a new column to your date table (ISO week, for example), then you will have to add it to every table which is more work to maintain and uses more memory

 

If your data model size in memory is pretty small, you could use separate tables. I prefer only one Date table, creating multiple relationships to it, and altering the appropriate measures to add the USERELATIONSHIP function to the filter context parameter of the CALCULATE function. Once you get the hang of it, it's not as hard as it first seems.

One advantage of multiple date tables is that you can label the attributes clearly as to what they represent (e.g. Invoice Date, Invoice Month, Order Date, Order Month). 

 

It can also be helpful if you have 2 dates associated with the same fact and want to combine filters. (E.g. all returns in October 2015 that have an original purchase date of 2014).

---
In Wisconsin? Join the Madison Power BI User Group.
Greg_Deckler
Community Champion
Community Champion

I posted something on Transitive Relationships and Date Dimensions that might help:

 

http://community.powerbi.com/t5/Desktop/Transitive-Relationships/m-p/8574#M1449

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.