My datasouce looks like following:
Case_ID;Date;Status_ID;Amount
1;01.09.2021;0;300
1;05.09.2021;2;320
1;06.09.2021;3;320
2;05.09.2021;3;100
3;02.09.2021;0;200
3;07.09.2021;1;200
...
The logic is that for a particular businness case the Status_ID and the Amount is valid from the "Date" until a new change or until the end of the calendar.
For the above data and end of calendar as of 8.9.2021 my required measure should give following output.
Date Case_ID Status_ID Amount
1.9.2021 1 0 300
2.9.2021 1 0 300
3.9.2021 1 0 300
4.9.2021 1 0 300
5.9.2021 1 2 320
6.9.2021 1 3 320
7.9.2021 1 3 320
8.9.2021 1 3 320
5.9.2021 2 3 100
6.9.2021 2 3 100
7.9.2021 2 3 100
8.9.2021 2 3 100
2.9.2021 3 0 200
3.9.2021 3 0 200
4.9.2021 3 0 200
5.9.2021 3 0 200
6.9.2021 3 0 200
7.9.2021 3 1 200
8.9.2021 3 1 200
How can I construct such a measure with DAX?
I have found several blogs on "Semiadditive measures" with several approaches how to get the last amount for the Case_ID but I do not know how to handle the changing status.

