<?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 Advanced Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2493120#M68709</link>
    <description>&lt;P class=""&gt;How do I create a filter that has Jan,feb as well as This month, last fiscal year, as its elementn.&lt;/P&gt;&lt;P class=""&gt;Note : This month, last fiscal year are not in dataset, has to be calculated and included as slicer elements.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 10:40:45 GMT</pubDate>
    <dc:creator>Abhijsrwala1</dc:creator>
    <dc:date>2022-05-04T10:40:45Z</dc:date>
    <item>
      <title>Advanced Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2493120#M68709</link>
      <description>&lt;P class=""&gt;How do I create a filter that has Jan,feb as well as This month, last fiscal year, as its elementn.&lt;/P&gt;&lt;P class=""&gt;Note : This month, last fiscal year are not in dataset, has to be calculated and included as slicer elements.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:40:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2493120#M68709</guid>
      <dc:creator>Abhijsrwala1</dc:creator>
      <dc:date>2022-05-04T10:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2493243#M68714</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385832" data-lia-user-login="Abhijsrwala1" class="lia-mention lia-mention-user"&gt;Abhijsrwala1&lt;/a&gt; , Based on what I got, You can have year behind measures &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or last year same month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))&lt;BR /&gt;Previous year Month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth(dateadd('Date'[Date],-11,MONTH)))&lt;BR /&gt;last year MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-12,MONTH))))&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 11:34:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2493243#M68714</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-04T11:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2503561#M69276</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;I understand, but once those values are calculated how to bring that under one slicer along with rest of the values. As you can see. 01-Jan and calculated values are together in one slicer.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 06:11:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2503561#M69276</guid>
      <dc:creator>Abhijsrwala1</dc:creator>
      <dc:date>2022-05-10T06:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2504326#M69302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385832" data-lia-user-login="Abhijsrwala1" class="lia-mention lia-mention-user"&gt;Abhijsrwala1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The option in slicer must be the value in the column, so you should create a new table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer table =
UNION (
    VALUES ( 'Table'[Month] ),
    ROW ( "Month", "This month" ),
    ROW ( "Month", "Last fiscal year" )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Get the result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 09:31:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Advanced-Filter/m-p/2504326#M69302</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-05-10T09:31:23Z</dc:date>
    </item>
  </channel>
</rss>

