<?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 Relative date based on slicer date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relative-date-based-on-slicer-date/m-p/2987252#M100317</link>
    <description>&lt;P&gt;Hi all, I am trying to show a 3 week snapshot based on the selected date that the user chooses.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;So for 1/1/2022, in the table i would like to only see 1/1/2022 to 1/21/2022 and the bookings associated with those dates. Both of the dates being used in the slicer and table are the same date column in the Calendar table. I tried ranking the dates but that appears to be ranking per row in the table. Thank you for the help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 22:40:46 GMT</pubDate>
    <dc:creator>abeirne</dc:creator>
    <dc:date>2022-12-23T22:40:46Z</dc:date>
    <item>
      <title>Relative date based on slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relative-date-based-on-slicer-date/m-p/2987252#M100317</link>
      <description>&lt;P&gt;Hi all, I am trying to show a 3 week snapshot based on the selected date that the user chooses.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;So for 1/1/2022, in the table i would like to only see 1/1/2022 to 1/21/2022 and the bookings associated with those dates. Both of the dates being used in the slicer and table are the same date column in the Calendar table. I tried ranking the dates but that appears to be ranking per row in the table. Thank you for the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 22:40:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relative-date-based-on-slicer-date/m-p/2987252#M100317</guid>
      <dc:creator>abeirne</dc:creator>
      <dc:date>2022-12-23T22:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Relative date based on slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relative-date-based-on-slicer-date/m-p/2987396#M100322</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344436" data-lia-user-login="abeirne" class="lia-mention lia-mention-user"&gt;abeirne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you would&lt;/P&gt;&lt;P&gt;1) need an isolated table for the Date slicer&lt;/P&gt;&lt;P&gt;2) plot the table visual with a measure refering the slicer-selected value like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@Booking = 
VAR _date  = SELECTEDVALUE(datetbl[Date])
RETURN
CALCULATE(
    MAX(data[Booking]), 
    KEEPFILTERS(data[Date]&amp;gt;=_date &amp;amp;&amp;amp;data[Date]&amp;lt;=_date+13)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 02:52:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relative-date-based-on-slicer-date/m-p/2987396#M100322</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-12-24T02:52:05Z</dc:date>
    </item>
  </channel>
</rss>

