Hi,

I have a year-firm panel data. How should I write the code to find the most recent observation of the last five years with an increase in sales?

Thanks!