This can be done in Tableau, but is not trivial when the data is sparse. Below is an example of how you can pad the data in Tableau to accomplish what you want.
However, I would also suggest checking out this thread: Count the number of leave days taken by weekday | Tableau Support Community and note Jonathan Drummey's alternatives for solving these kinds of problems, especially using a cross-product join. Solving the problem in the back-end (either by creating a permanent/semi-permanent data structure or using custom SQL) can make this a whole lot easier in Tableau.
But, because that's not always an option (and because it's fun to work through these), here's an option in Tableau:
First, you'll need to pad the data. There are a couple of ways to do this in Tableau. Here, I've used the date field, and turned on "Show Missing Values" (right click the field on Columns for the option).
Here's the calculated field that takes advantage of the ability to address the padded data to "carry" the most recent values across the table.
Finally, I rearranged the view, and created a few more calculated fields to add up the counts of each version. I found this necessary because, as a table calc, the Version field could not further partition the data.
I'd be more than happy to answer any questions you might have. Feel free to contact me.