我正在尝试创建一列,以查看在power bi上的2个帐户之间是否共享关键字。像下面的例子。粗体为必需的结果列
Account Search Keyword Shared Keyword
Account A abc Yes
Account B abc Yes
Account A def No
Account B ghi Yes
Account A ghi Yes
Account A abc Yes
Account A abc Yes
Account A def No
Account B ghi Yes
Account A ghi Yes
关键字可以在同一帐户中多次出现。我尝试了以下代码,但出现错误“检测到循环依赖项:'Table'[Search keyword]“
Shared Keyword =
var AccA = CALCULATE(VALUES('Table'[Search keyword]),FILTER('Table','Table'[Account (groups)]="Account A"))
var AccB = CALCULATE(VALUES('Table'[Search keyword]),FILTER('Table','Table'[Account (groups)]="Account B"))
return
if(AccA=AccB,"Yes","No")
请帮助我解决此问题