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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors