答案 0 :(得分:0)
假设您将数据存储在表格中,如图所示,创建一个计算列,如下所示:
AvgerageDaysInbetween =
var thisCustomer = [Customer]
var temp =
SUMX(
FILTER(
SUMMARIZE(
'Table';
[Customer];
"avg";
DIVIDE(
DATEDIFF(MIN('Table'[DateOfOrder]); MAX('Table'[DateOfOrder]); DAY);
DISTINCTCOUNT('Table'[DateOfOrder])-1;
0
)
);
[Customer] = thisCustomer
);
[avg]
)
return
temp
结果表: