Forum

Meeting issue at Re...
 
Notifications
Clear all

Meeting issue at Relationships 6.02

8 Posts
3 Users
0 Reactions
62 Views
(@cdu)
Posts: 12
Eminent Member
Topic starter
 

hi, i'm following the course and trying to create relations ship on date between Order and Dates. but it says many to many relations. pls see attachment

 
Posted : 15/03/2019 1:21 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Chen,

There's no attachment.

Phil

 
Posted : 15/03/2019 5:11 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Chen,

The Date table should only contain one record for each date in the year(s). If you're getting a many to many error then the Date table must contain duplicates.

Mynda

 
Posted : 16/03/2019 12:39 am
(@cdu)
Posts: 12
Eminent Member
Topic starter
 

hi, i think i see where went wrong. the direction of relationships are opposite of what was shown in the course. pls see below. and thats why excel detected many to many because the Order date on tab 'Order' has duplicated lines.

how do i change the direction?

this also happened to the sample file when i do auto-detection following 6.03.

Active Table 1 Cardinality Filter Direction Table 2
Yes Customers [Province] Many to One (*:1) << To Customers Regions [ProvinceID]
Yes Orders [Customer ID] Many to One (*:1) << To Orders Customers [Customer ID]
Yes Orders [Order ID] Many to One (*:1) << To Orders Returns [Order ID]
Yes Orders [SKU] Many to One (*:1) << To Orders Products [SKU ID]
 
Posted : 16/03/2019 12:39 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Chen,

To delete a relationship just click on the connector line in the diagram view and press the Delete key.

Mynda

 
Posted : 18/03/2019 7:36 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Chen,

I looked at the file you sent via email and I can see the problem is that the Excel Table on the 'Dates' sheet in the file extends to the very last row in the worksheet, row 1,048,575! So, you have loaded 1,048,575 dates into Power Pivot but most of them are blank/empty cells.

You need to resize the Excel Table in the Dates sheet so it only extends to the last date on row 1419 (Table Design tab > Resize table). Then you can refresh the link in Power Pivot so that the excess rows are removed from the model.

Then you can insert your relationship.

Mynda

 
Posted : 18/03/2019 9:31 pm
(@cdu)
Posts: 12
Eminent Member
Topic starter
 

yes the relationship is now in place. many thanks. 2 more questions,

1, do you know what i could have done wrong when creating the Table? I think I followed the exact step from the course but it automatically extended the the last row in t he sheet.

2, any comment on why i failed uploading the attachment

 
Posted : 19/03/2019 8:21 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Chen,

No idea why your Table was created for all rows as opposed to just the occupied cells. Maybe you accidentally edited the range before inserting the table.

I'd say the file upload issue was because the file was too large.

Mynda

 
Posted : 19/03/2019 1:47 pm
Share: