title: Calculated date measure to show default min and max is not working in Power BI desktop
body: <p>I am very new to power bi DAX and I don't figure out why my measure is not working properly. So I have created one measure to for date and applied that to visual level filter to default data to always show the last x months or all data where applicable. So far it is giving me the date range between min and max but visuals are not updating according to default date range. When I change date range then my visuals are get updated. I want my visual with latest default date and data. Please let me know how can I
  accomplish this.
  <strong>Note: I applied this measure on slicer which showing date range.</strong></p>
  <p>Here is the measure that I have applied:</p>
  <pre><code>Min_Max_ad_srch = VAR LatestDate = CALCULATE(MAX(ADS[DATE]), ALL(ADS)) RETURN IF(MIN(ADS[DATE]) = LatestDate, 1, 0)
  </code></pre>