问题描述
数据集与此类似:
ID Milestone
id1 01/01/2020
id2 02/01/2020
id3 04/01/2020
id4 null
id5 02/01/2020
id6 12/01/2020
我试图计算在某个日期之前达到里程碑的记录数,换句话说,是计算发生的累积总数。我目前有这种DAX措施:
#Measure =
calculate(
COUNTROWS(table),filter(
table,table[milestone].[Date] <= MAX(table[milestone].[Date])
)
)+0
但这似乎并没有给我想要的结果:
预先感谢
编辑: