I have a table with some data related to articles in a store:
Article Date Stored
A 22/08/2019 True
A 23/08/2019 True
A 24/08/2019 True
A 25/08/2019 False
A 26/08/2019 True
A 27/08/2019 True
A 28/08/2019 False
A 29/08/2019 False
A 30/08/2019 True
What I'd like to get is the minimum date where A has value Stored=True and value Stored=False:
Article Date Stored
A 22/08/2019 True
A 25/08/2019 False
But, let's suppose that, for article A, there is data where Stored=True after Stored=False (case of date 26/08/2019). In this situation, I'd like to show this minimum value too. To sum up, what I want is the minimum date value each time that a transition happens (this is, Stored passes from True to False or from False to True):
So my final result would be this:
Article Date Stored
A 22/08/2019 True
A 25/08/2019 False
A 26/08/2019 True
A 28/08/2019 False
A 30/08/2019 True
Any help would be appreciated :)