Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 亲子关系_Sql Server_Sql Server 2008_Ssas_Powerpivot - Fatal编程技术网

Sql server 亲子关系

Sql server 亲子关系,sql-server,sql-server-2008,ssas,powerpivot,Sql Server,Sql Server 2008,Ssas,Powerpivot,这与在PowerPivot中处理父子关系有关。我面临的情况是,“路径”dax函数在提供给函数的数据集方面给我带来了麻烦 我的数据集有一个父列和一个带有子ID的列。层次结构的根在“子ID”列中没有对应的行。因此,当应用“路径”函数时,PowerPivot会给我以下错误: “列“CS_Comp”[]中的计算错误:“CS_Comp”[ParentCol]中的值“10”也必须存在于“CS_Comp”[ChildCol]中。请添加缺少的数据,然后重试。”能否发布数据示例?为什么你需要父母和孩子的ID。通常

这与在PowerPivot中处理父子关系有关。我面临的情况是,“路径”dax函数在提供给函数的数据集方面给我带来了麻烦

我的数据集有一个父列和一个带有子ID的列。层次结构的根在“子ID”列中没有对应的行。因此,当应用“路径”函数时,PowerPivot会给我以下错误:


“列“CS_Comp”[]中的计算错误:“CS_Comp”[ParentCol]中的值“10”也必须存在于“CS_Comp”[ChildCol]中。请添加缺少的数据,然后重试。”

能否发布数据示例?为什么你需要父母和孩子的ID。通常您只需要ID和ParentID


您能发布一个数据示例吗?为什么你需要父母和孩子的ID。通常您只需要ID和ParentID