excel 具有 2 个非唯一键关系的 powerpivot 数据建模

excel powerpivot data modeling with 2 non-unique key relation

所以我有两个 table,产品和订单。

产品 table 包含以下列:ID、名称、类型。

订单 table 包含以下列:ID、名称、数量。

在两个 table 中,ID 或 Name 都不是唯一的,但它们在一起是唯一的。 Excel PowerPivot 是否可以使用这两列在两个 table 之间建立关系?

您不能在 Powerpivot 中使用多列创建关系。您必须使用构成键的多个列来创建单个列。

Reference

When you have multiple columns that make a key you should create a new column, use CONCATENATE or & to create a composite column, and that will serve as your key.