<?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 6 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2228086#M53119</link>
    <description>&lt;P&gt;I want to filter the last 6 months, so today in December, it should show Jul, Aug, Sep, Oct, Nov, Dec.&lt;/P&gt;&lt;P&gt;However, if I use date filter "in the last 6 months", it starts from Jun and cuts days with the days that have passed in December.&lt;/P&gt;&lt;P&gt;How do I make a filter that will start from 1st of Jul and dynamically change every next month to the 1st of Aug, then Sep, etc.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 15:16:38 GMT</pubDate>
    <dc:creator>carnage66</dc:creator>
    <dc:date>2021-12-08T15:16:38Z</dc:date>
    <item>
      <title>Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2228086#M53119</link>
      <description>&lt;P&gt;I want to filter the last 6 months, so today in December, it should show Jul, Aug, Sep, Oct, Nov, Dec.&lt;/P&gt;&lt;P&gt;However, if I use date filter "in the last 6 months", it starts from Jun and cuts days with the days that have passed in December.&lt;/P&gt;&lt;P&gt;How do I make a filter that will start from 1st of Jul and dynamically change every next month to the 1st of Aug, then Sep, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2228086#M53119</guid>
      <dc:creator>carnage66</dc:creator>
      <dc:date>2021-12-08T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2228104#M53122</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343907" data-lia-user-login="carnage66" class="lia-mention lia-mention-user"&gt;carnage66&lt;/a&gt; , Last 6 month of data based on selected date &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on today&lt;/P&gt;
&lt;P&gt;Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],today(),-6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can switch based on isfiltered&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you need trend based on selected date you need independent table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:31:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2228104#M53122</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-08T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2235118#M53366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343907" data-lia-user-login="carnage66" class="lia-mention lia-mention-user"&gt;carnage66&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have built a Calendar table by:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = CALENDAR(DATE(2020,9,1),TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now please try to create a flag measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = IF(MAX('Table'[Date])&amp;gt; EOMONTH(MAXX(ALL('Table'),[Date]),-6),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And apply it to filter pane:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Eyelyn Qin&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 08:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2235118#M53366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-13T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2595606#M74912</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;: Here i have the fiscal month column containing the data like FY22JAN , i need to use fiscal month column only to show the months in table visual, and the fiscal month column data type is in text format. in this case how can i acheive to display last six months except the current month. please help me to resolve this. i need the solution immediately as soon as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: The date table is not in the hirarchey format.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 16:38:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2595606#M74912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2598081#M75026</link>
      <description>&lt;P&gt;Hey, sorry for the late reply , there is simple way to get the last 6 months data with or without current month ,and we don't need to write any DAX measure for this. we can do the changes in the PBI Desktop only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first select the table then go on page level filter --&amp;gt;drag your calendar column --&amp;gt; refer below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by choosing months it will dispaly until current month&lt;/P&gt;&lt;P&gt;by choosing calender month it will display the completed months&lt;/P&gt;&lt;P&gt;like this you can choose for years also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it helped please save the solution and ACCEPT IT AS SOLUTION please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/2598081#M75026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-23T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/3692855#M143550</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell is it posssible to show sum of last 6 months if in the table I chose only 1 year and month, to avoid of "&lt;SPAN&gt;based on selected date".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 15:53:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/3692855#M143550</guid>
      <dc:creator>Nikkkkkkkkk</dc:creator>
      <dc:date>2024-02-11T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter last 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/3978888#M154277</link>
      <description>&lt;P&gt;It working for table, but not on matrix if I have Date as Columns. Any solution&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 07:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-last-6-months/m-p/3978888#M154277</guid>
      <dc:creator>bharteshm</dc:creator>
      <dc:date>2024-06-07T07:11:10Z</dc:date>
    </item>
  </channel>
</rss>

