compare values from end of month M with value start of month M+1

Hello

can someone help me with the following problem
I want a dax formula to compare the value of last day of the month M with the first day of the month M+1
I tried the new index() and window() but didn’t succeed
kind regards and thanks in advance
Roger


CHECK FOR PREVIOUS STOCK NUMBER .xlsx (16.8 KB)