Forum Discussion
Using a filter to get the last date
Hello,
I'd like to ask a question about a measure I've been making recently, I'm trying to get the last value from the amount column based on a date, the columns look like this:
I used the following measure:
I found the solution to the problem, I had to look for it, but it was really simple. There was already a function called " ENDOFMONTH" that I was unaware of. I'll pin this message as a solution in case someone needs it in the future.
3 Replies
- choncharHelper V
Hello,
I am new here, but try this:
MEASURE Sales[Sales last day] =CALCULATE ([Sales Amount],LASTDATE ( 'Date'[Date]Also, if this works, please accept it as a solution.- Lotfi96Regular Visitor
Hello, thank you for your answer, however this doesn't work.
- Lotfi96Regular Visitor
I found the solution to the problem, I had to look for it, but it was really simple. There was already a function called " ENDOFMONTH" that I was unaware of. I'll pin this message as a solution in case someone needs it in the future.