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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
emillanc
Advocate IV
Advocate IV

Problems creating a Master Calendar for Multiple Snowflaked Tables (Avoid Circular Dependency)

 I've struggled to create a single master calendar (Canonical) for the following simplified data model:

 

emillanc_1-1729251218126.png

 

When I  try to establish the relationships between the master calendar date (MC_Date)  and the creation dates (CreateDttm), I get circular dependency warnings. Please help me create a master calendar for the proposed data model.

 

Using a master calendar (Canonical) allows me to have different metrics in a single chart using the same time scale. It also filters the creation dates of all the tables with a single slicer.

 

The date of the master calendar would be related to the creation dates of each table.

 

Unifying the different snowflaked tables into one would further complicate the model (this is a simplified version of it) and significantly increase the refresh time.

Regards

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hi! Here is a link to the SQLBI date ref table that I love to use. It can be used for a traditional calendar, fiscal, or fiscal weekly. This article describes the table: Reference Date Table in DAX and Power BI - SQLBI

This link is where you can download the pbix that has the DAX: DAX Date Template - SQLBI

 

In your model, which table is the fact? It looks like it is Product and the other two are snowflaked dimensions. Your date dimension table should have a relationship to your fact and if you have multiple facts they should not be joined to each other. They would be useable in one viz together by any shared dimensions they have and use of the dimension tables. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
audreygerred
Super User
Super User

Hi! Here is a link to the SQLBI date ref table that I love to use. It can be used for a traditional calendar, fiscal, or fiscal weekly. This article describes the table: Reference Date Table in DAX and Power BI - SQLBI

This link is where you can download the pbix that has the DAX: DAX Date Template - SQLBI

 

In your model, which table is the fact? It looks like it is Product and the other two are snowflaked dimensions. Your date dimension table should have a relationship to your fact and if you have multiple facts they should not be joined to each other. They would be useable in one viz together by any shared dimensions they have and use of the dimension tables. Understand star schema and the importance for Power BI - Power BI | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @audreygerred !
Thank you for your quick answer!

Indeed, there are 3 snowflaked tables (In reality there are two more tables, but, for simplicity I have only put 3), where the relationships are the following:
Customer ---------------------> Branch ----------------------------> Project
CustomerID --------> CustomerID | BranchID ---------------------> BranchID

My intention is to be able to create a slicer that allows me to filter the creation dates of each table or draw in the same chart the evolution using the same date on the time axis.

Regards

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.