The post you link to does not seems to have the data you are talking about here. I do not see any products with individual sales per year, only "Type" for which there is data for both A and B until 2021.
Please create a reprex with the data that creates the issue. A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here: