Thanks a lot for the reply. Your solution does give expected results for before given data. But in my original data, I also have some years where data is less or more per year. For example, for below-given data, I get different results.
Rigorous and thoroughgoing, it might at times be harder to read than other resources but it's the ultimate go-to book in my view. These guys just crush you with knowledge. Everything there's to know about DAX (ok, 99%), you will find here. Second edition only days away.
Plus there's also their SQLBI site, with a wealth of succulent material (articles, patterns, courses...)