powerbi如何避免循环依赖错误

时间:2019-11-07 12:11:59

标签: powerbi dax circular-dependency

我尝试将计算列添加到Power Bi中的表中。现在我有两列:

Num_of_occurence=CALCULATE(COUNT(Loans[ID]))

计算该表中特定贷款发生的时间

Num_of_all_loans=COUNTROWS(Loans)

表中所有贷款数的计算。我尝试添加的是计算出的列,该列计算出的百分比

Percent=DIVIDE([Num_of_occurence];[Num_of_all_loans])

问题是我收到循环依赖错误。知道如何解决吗?

1 个答案:

答案 0 :(得分:0)

您不需要计算的归档,而需要度量。 使用相同的公式,而不是使用计算列创建Measure,您将得到结果

$other_matches_info_array = array();
// or $other_matches_info_array = []; - it's "common" to init arrays like this in php

$other_matches_name = "carmen";
$other_matches_id = 3;
$other_matches_work = "SON";

$other_matches_info_array[] = [ 
    'id' => $other_matches_id,
    'name' => $other_matches_name
];
// so, this means: new element of $other_matches_info_array = new array that is declared like this.

enter image description here