RP-1791: fix analyze by day