I am trying to create a field "EOM Flags" that tags the maximum date as 1 in a month for which the payments were made. For ex - if there are 3 payment dates in a period then tag 1 to maximum date and tag 0 to the other dates (see screenshot attached).
