<?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 Filter last 7 days and 60 days of  selected range calendar in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3637526#M140754</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;Table1[dateExam]&lt;/STRONG&gt; and &lt;STRONG&gt;Table1[numberPeople]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;First, I need to use a &lt;STRONG&gt;CALENDAR (range slicer)&lt;/STRONG&gt; to select a date (it must only consider the &lt;STRONG&gt;max date of range slicer&lt;/STRONG&gt; selected). For example, I can select &lt;STRONG&gt;10/01/2021 &lt;/STRONG&gt;as my maximum date&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Second, I need to check &lt;STRONG&gt;one of the options: (in Segment)&lt;/STRONG&gt;. For example, I can check the option &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Then, it would return me the numberPeople for the &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt; of the selected date in the CALENDAR.(&lt;EM&gt;So the &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt; is base on the &lt;STRONG&gt;CALENDAR &lt;/STRONG&gt;(range slicer) I have selected&lt;/EM&gt;.)&lt;/P&gt;&lt;P&gt;In other words, it would return me in a graphic,&amp;nbsp;the numberPeople between 03/01/2021 and &lt;STRONG&gt;10/01/2021&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For this example, in a graphic, I would have for each day&amp;nbsp;between 03/01/2021 and &lt;STRONG&gt;10/01/2021,&amp;nbsp;&lt;/STRONG&gt;the numberPeople that have done dateExam from&amp;nbsp;Table1[dateExam].&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jan 2024 08:40:11 GMT</pubDate>
    <dc:creator>game1</dc:creator>
    <dc:date>2024-01-14T08:40:11Z</dc:date>
    <item>
      <title>Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3637526#M140754</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;Table1[dateExam]&lt;/STRONG&gt; and &lt;STRONG&gt;Table1[numberPeople]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;First, I need to use a &lt;STRONG&gt;CALENDAR (range slicer)&lt;/STRONG&gt; to select a date (it must only consider the &lt;STRONG&gt;max date of range slicer&lt;/STRONG&gt; selected). For example, I can select &lt;STRONG&gt;10/01/2021 &lt;/STRONG&gt;as my maximum date&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Second, I need to check &lt;STRONG&gt;one of the options: (in Segment)&lt;/STRONG&gt;. For example, I can check the option &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Then, it would return me the numberPeople for the &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt; of the selected date in the CALENDAR.(&lt;EM&gt;So the &lt;STRONG&gt;“last 7 days”&lt;/STRONG&gt; is base on the &lt;STRONG&gt;CALENDAR &lt;/STRONG&gt;(range slicer) I have selected&lt;/EM&gt;.)&lt;/P&gt;&lt;P&gt;In other words, it would return me in a graphic,&amp;nbsp;the numberPeople between 03/01/2021 and &lt;STRONG&gt;10/01/2021&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For this example, in a graphic, I would have for each day&amp;nbsp;between 03/01/2021 and &lt;STRONG&gt;10/01/2021,&amp;nbsp;&lt;/STRONG&gt;the numberPeople that have done dateExam from&amp;nbsp;Table1[dateExam].&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 08:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3637526#M140754</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-14T08:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3638493#M140818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659758" data-lia-user-login="game1" class="lia-mention lia-mention-user"&gt;game1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;AFAIK, the default filter effects not able to achieve your requirement.&lt;/P&gt;
&lt;P&gt;For this scenario, I'd like to suggest you create an unconnected table source of slicer. Then you can write a measure formula to receive the filter effect and use on visual to achieve filter effects.&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3638493#M140818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-15T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639688#M140892</link>
      <description>&lt;P&gt;Ok! But if I do CALENDAR as list check, like the option slicer?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 22:39:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639688#M140892</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-15T22:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639690#M140893</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ok! But if I do CALENDAR as list check, like the option slicer?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 22:50:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639690#M140893</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-15T22:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639852#M140900</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;You may try to use a field parameter as the segment slicer that consist of the measures like 'last7days','last10days'.&lt;BR /&gt;I created the following measure and seems works. Hope this helpful for you.&lt;/P&gt;&lt;P&gt;([Total People]&amp;nbsp; just a sum of Table1[numberPeople])&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;last &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; Days =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&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&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;_result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 01:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3639852#M140900</guid>
      <dc:creator>LufengYuan</dc:creator>
      <dc:date>2024-01-16T01:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3640087#M140913</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Yes, I think this is close to what I want, but for your example, I see that the LAST 7 DAYS option, didn't really apply. This should be between 01/19/2020 to 01/25/2020 right (the column dateExam)?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 04:48:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3640087#M140913</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-16T04:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3640091#M140914</link>
      <description>&lt;P&gt;Also, what kind of relation or cardinality did you apply to the table?&lt;/P&gt;&lt;P&gt;Can you post the screen shot or the file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 04:47:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3640091#M140914</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-16T04:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3644874#M141124</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you apply the relation beetween the table Date(slicer) and Table1 ?&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 04:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3644874#M141124</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-18T04:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3649216#M141339</link>
      <description>&lt;P&gt;I think the last 7 days apply to the result as 126 = 15+16+...+21 . Here is the relationship, hope it is helpful for you. Sorry for the late reply as so busy on my job.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 23:34:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3649216#M141339</guid>
      <dc:creator>LufengYuan</dc:creator>
      <dc:date>2024-01-19T23:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3650799#M141427</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659758" data-lia-user-login="game1" class="lia-mention lia-mention-user"&gt;game1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest you take a look at the following blog about create segmentation table. You can use the segment field as source of slicer to filter your table records.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.daxpatterns.com/static-segmentation/" target="_blank"&gt;Static segmentation – DAX Patterns&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 06:20:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3650799#M141427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-22T06:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 7 days and 60 days of  selected range calendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3652292#M141493</link>
      <description>&lt;P&gt;Ok! But how do you do that the slicer 'Date' be functionning?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 18:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-7-days-and-60-days-of-selected-range-calendar/m-p/3652292#M141493</guid>
      <dc:creator>game1</dc:creator>
      <dc:date>2024-01-22T18:15:43Z</dc:date>
    </item>
  </channel>
</rss>

