Take a look at the attached viz, I believe it accomplishes what you are looking for.
Note that I added the check for a 'start' case on the first row (which may or may not be needed.)
Hope this helps!
StartStop.twbx.zip 34.1 KB
Thanks Daniel, I am trying to get my head around Tableau and how calculations are applied
You are welcome! Table calculations are powerful, but there's certainly a bit of a learning curve.
I found this article to be a helpful starting point:
I really don't know, how to praise you.
The link which you have provided helped me a lot in learning new things.
Thank you very much...
I'm very new to Tableau, could you please share some documents or links regarding Parameters and Calculated fields,