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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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