Hi @karinafreitass ,
I made a simple sample.
First of all, there can be no relationship between the two tables. If it is relevant, the value of the previous month cannot be obtained.
MAX ( 'Table'[Data] ),
ALL ( 'Table' ),
= DATESINPERIOD (
SELECTEDVALUE ( dCalendar[Data] ),
= MAX ( 'Table'[Data] ),
Then put the measure into visual level Filters and set Show items when the value is 1.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.