parse data with the max distinct month