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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
KH11NDR
Helper IV
Helper IV

Link table to master calendar, unique dates field error

Hi Guys,

 

How do i create a relationship or re model my Table1 so I can link the two tables via the Date field. I keep getting the error my dates need to be unique in Table 1.
I understand why and what the problems will be. What's the best way around it. I was thinking doing a seperate table for each company, but there are 60+ companies and
what if there's a new one. How about using a key? " ID - DATE" that will make it unique, but how will I make it connect to the Master Calendar Table?.

 

 

Table 1

ID            Date                    sales
1            01/01/2018          673673
2            01/01/2018          33883

 

Master Calendar

Date               Month              Year                   Day
01/01/2018             1               2018                   1
02/01/2018             1                2018                   2

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

It should work based on your example.

 

Make sure the relationship is set correct.  Creat the relationship manually:

 

In Home Tab click "Manage Relationships"

 

Click New...

 

In the Top Section Select the table with Many (Table 1)

In the secon section select the Calendar table

 

Cardinality: Many to One

Cross Filter direction: Single

 

In the visual schema you should see the connection line with a arro pointing from the Calendar to Table 1

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

It should work based on your example.

 

Make sure the relationship is set correct.  Creat the relationship manually:

 

In Home Tab click "Manage Relationships"

 

Click New...

 

In the Top Section Select the table with Many (Table 1)

In the secon section select the Calendar table

 

Cardinality: Many to One

Cross Filter direction: Single

 

In the visual schema you should see the connection line with a arro pointing from the Calendar to Table 1

 

Thank you, must familiarise myself joining tables that way.

 

Thanks

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.