简体   繁体   English

Power BI 无法在两个表之间创建关系

[英]Power BI Can't create relationship between two tables

I have tables like this diagram, and existing relationships are in highlighted boxes.我有像这张图这样的表格,现有关系在突出显示的框中。

Then I tried to create relationship between Dates[Date] and Users[Last Hire Date], I got an error message saying there is an ambiguous conflict.然后我尝试在 Dates[Date] 和 Users[Last Hire Date] 之间创建关系,我收到一条错误消息,指出存在不明确的冲突。

I don't see what conflict there is and how to overcome it?我看不出有什么冲突以及如何克服它?

The ambiguity is easier to see when you start with the Dates table.当您从 Dates 表开始时,更容易看出歧义。 The arrows in the relations represent the filter direction.关系中的箭头表示过滤器方向。 By selecting a certein Date in Dates, you are selecting several Emails in Time Log Aggregation where Date of Worklog equals Date.通过在日期中选择一个特定日期,您将在时间日志聚合中选择多个电子邮件,其中工作日志的日期等于日期。 Simultaneously you are selecting several other Emails in Useres and Groups, where Last Hire Date equals Date.同时,您在 Useres 和 Groups 中选择其他几个电子邮件,其中 Last Hire Date 等于 Date。 These 2 selections of Emails have nothing in common and they would match only by pure coincidence.这 2 封电子邮件没有任何共同点,它们的匹配纯属巧合。

A workaround for this situation would be to duplicate the Dates table.这种情况的解决方法是复制日期表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM