title: Filter dates to only include previous month to today
body: <p>I have a Power BI related question.
  I am currently using the below measure to filter dates. What I am attempting to do is filter on any dates from the previous month up to todays date. (Note that the formula needs to by dynamic enough so that the year change won't affect it. e.g. we are now in 2022 but I am capturing data from Dec 2019 up until future dates).</p>
  <pre><code>todaysDate = TODAY()
  
  FilterOnPreviousMonth = 
  var filteredResult = IF(DATEDIFF(MAX(Tasks[Target Date]),[todaysDate],MONTH)=1,1,0)
  return filteredResult
  </code></pre>
  <p>Any help would be greatly appreciated.</p>
  <p>Many thanks,
  Cian</p>