dataset resembles this:
ID Milestone
id1 01/01/2020
id2 02/01/2020
id3 04/01/2020
id4 null
id5 02/01/2020
id6 12/01/2020
I'm trying to count the number of records have reached the milestone before a certain date, in other words to count a cumulative total of occurences. I currently have this DAX measure:
#Measure =
calculate(
COUNTROWS(table),
filter(
table,
table[milestone].[Date] <= MAX(table[milestone].[Date])
)
)+0
But this doesn't seem to give me the desired result:
As you can see, it doesn't add the count of previous occurences to the current date count.
Thanks in advance
EDIT: