Numbers of Months (elapsed time) since a month when consecutive zeros are started
I would like to figure out numbers of months elapsed since consecutive zeros have started. (please see the attached).
For instance, in the attached file, as sales of product BBB is zero since July 2019(instead of April 2019), I would like to get "4"(months) given current period is Oct 2019.
Thanks in advance.