I may have found a a solution with the following, this appears to rank the way I wantd. Could someone sanity-check this for me?
RANK() OVER(
PARTITION BY ID
ORDER BY "DATE"
RESET WHEN (cast("date" as date) - min(cast("date" as date)) over(partition by ID order by "date" rows between 1 preceding and 1 preceding )) >= 30
) AS "RANK"
I may have found a a solution with the following, this appears to rank the way I wantd. Could someone sanity-check this for me?