Wrong Total in Power BI

时间:2019-03-19 14:58:01

标签: powerbi dax powerbi-desktop

I am creating a measure, Measure = divide(sum(amount),count(task)), this is giving me incorrect total.

This is what I am getting in Power BI.

Table

Now the result which is expected here is

Desired Result

Basically what I want is to get the total of the measure that I have created, Power BI is dividing the total sum with the total count.

1 个答案:

答案 0 :(得分:0)

答案可能很平凡。 除了使用Measure = divide(sum(amount),count(task))之外,您可能还想使用:

Measure = SUM(amount)

divide(sum(amount),count(task))度量是计算平均值的一种简便方法(AVERAGE是一种简便方法)。但是您似乎需要的是SUM