<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DateSlicer &amp;quot;Between&amp;quot; + MaxDate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4641208#M177722</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;&amp;nbsp;Create a measure that calculates the maximum date in your dataset. This measure should always return the latest date available in your data.&lt;/P&gt;
&lt;P&gt;Max Date = MAX('YourTableName'[DateColumn])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this measure in a new measure that adjusts the end date of your slicer based on the maximum date in your dataset.&lt;/P&gt;
&lt;P&gt;Adjusted End Date = &lt;BR /&gt;IF(&lt;BR /&gt;SELECTEDVALUE('YourTableName'[DateColumn]) = MAX('YourTableName'[DateColumn]),&lt;BR /&gt;MAX('YourTableName'[DateColumn]),&lt;BR /&gt;SELECTEDVALUE('YourTableName'[DateColumn])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update your visual-level filter to use the "Between" setting with the start date as the minimum date in your dataset and the end date as the "Adjusted End Date" measure.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 12:54:31 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-04-07T12:54:31Z</dc:date>
    <item>
      <title>DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4641113#M177717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I’m using a date slicer with the "Between" setting to provide more flexibility.&lt;/P&gt;&lt;P class=""&gt;However, when the dataset is updated, the selected end date remains fixed on the previously selected date.&lt;/P&gt;&lt;P class=""&gt;What I want is for the end date to automatically jump to the latest available date whenever the dataset is refreshed — similar to how it behaves when using the "After" setting in the slicer.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I've tried to create this and put it into the visual-filter with = 1.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Datum_Filter =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'MaxDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[LetztesDatum]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'MaxDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[LetztesDatum]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it doens't work when the data is refreshed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx in advance! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 12:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4641113#M177717</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2025-04-07T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4641208#M177722</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;&amp;nbsp;Create a measure that calculates the maximum date in your dataset. This measure should always return the latest date available in your data.&lt;/P&gt;
&lt;P&gt;Max Date = MAX('YourTableName'[DateColumn])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this measure in a new measure that adjusts the end date of your slicer based on the maximum date in your dataset.&lt;/P&gt;
&lt;P&gt;Adjusted End Date = &lt;BR /&gt;IF(&lt;BR /&gt;SELECTEDVALUE('YourTableName'[DateColumn]) = MAX('YourTableName'[DateColumn]),&lt;BR /&gt;MAX('YourTableName'[DateColumn]),&lt;BR /&gt;SELECTEDVALUE('YourTableName'[DateColumn])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update your visual-level filter to use the "Between" setting with the start date as the minimum date in your dataset and the end date as the "Adjusted End Date" measure.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 12:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4641208#M177722</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-07T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4644155#M177811</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;,&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 04:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4644155#M177811</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-04-09T04:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4649511#M177986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 07:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4649511#M177986</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-04-12T07:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4650760#M178026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your reply and sorry for my late reply. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I've created the two measures as suggested:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max Date =&lt;/SPAN&gt; &lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MaxDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[LetztesDatum]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Adjusted End Date =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MaxDatum'&lt;/SPAN&gt;&lt;SPAN&gt;[LetztesDatum]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;[Max Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Max Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MaxDatum&lt;/SPAN&gt;&lt;SPAN&gt;[LetztesDatum]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, I'm not sure how to achieve this:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Update your visual-level filter to use the "Between" setting with the start date as the minimum date in your dataset and the end date as the "Adjusted End Date" measure.&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can I set a specific date with the "Between" setting?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 07:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4650760#M178026</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2025-04-14T07:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4650763#M178027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="883010" data-lia-user-login="v-saisrao-msft" class="lia-mention lia-mention-user"&gt;v-saisrao-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for the reminder - it took me a while - but I just replied to the user's suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 07:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4650763#M178027</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2025-04-14T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4651368#M178042</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have couple of options available and I have covered in a similar post, here is the link :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Autometic-set-Date-Splicer-from-date-mm-dd-yyyy-to-today/m-p/4594437#M175935" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Autometic-set-Date-Splicer-from-date-mm-dd-yyyy-to-today/m-p/4594437#M175935&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can modify slightly to show max date instead of today, Kindly check and let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this helps, Kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 11:45:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4651368#M178042</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2025-04-14T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: DateSlicer "Between" + MaxDate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4653527#M178147</link>
      <description>&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;Hi&lt;/SPAN&gt;&lt;SPAN data-ccp-props="{}"&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;The response accurately addresses the OP's issue in part but doesn't fully meet the requirement. Using a visual-level filter with a DAX measure (Max Date) to cap the data at the latest available date while keeping the "Between" slicer for custom date ranges is a valid solution and directly addresses the OP's concern. &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN data-contrast="auto"&gt;The Relative Date slicer is a dynamic alternative, but it sacrifices flexibility by only allowing predefined relative periods (like "Last X days") instead of custom start and end dates, which doesn’t fully align with the OP’s need. &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN data-contrast="auto"&gt;The "Before" slicer is less relevant, as it doesn’t provide the same flexibility for selecting a custom date range. While bookmarks offer a manual reset option, it doesn’t solve the OP's requirement for an automatic update to the end date after a dataset refresh. Overall, the visual-level filter solution is the most accurate, but the Relative Date slicer suggestion may not fully meet the OP's needs for flexibility in date range selection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;If this post&amp;nbsp;helps, then please give us ‘Kudos’ and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335551550&amp;quot;:0,&amp;quot;335551620&amp;quot;:0,&amp;quot;335559738&amp;quot;:240,&amp;quot;335559739&amp;quot;:240}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;Thank you.&lt;/SPAN&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335551550&amp;quot;:0,&amp;quot;335551620&amp;quot;:0,&amp;quot;335559738&amp;quot;:240,&amp;quot;335559739&amp;quot;:240}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 10:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateSlicer-quot-Between-quot-MaxDate/m-p/4653527#M178147</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-04-15T10:31:10Z</dc:date>
    </item>
  </channel>
</rss>

