'Get last value from column in DAX PowerBI

I want to get the last value from the Total column below in Power BI, and I have tried LASTNONBLANK and LASTNONBLANKVALUE, and the measure gives me 32 instead of 30. What am I doing wrong? The Date column is Date datatype and the Total is whole number data type.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source