<?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: Calculate Year/Month Filters not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Year-Month-Filters-not-working/m-p/2293268#M56443</link>
    <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;Now that you are using &amp;amp;&amp;amp; you are trying to apply the filters simultaniously the sign for or is&amp;nbsp;&lt;SPAN&gt;||&lt;BR /&gt;Alternatively you can just use OR()&lt;BR /&gt;&lt;BR /&gt;So try this:&lt;BR /&gt;&lt;BR /&gt;CALCULATE([TotalSales],YEAR('Date'[Date]) =&amp;nbsp;2016,'Date'[Month Name]&amp;nbsp;=&amp;nbsp;"January"&amp;nbsp;|| 'Date'[Month Name]&amp;nbsp;=&amp;nbsp;"February")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 11:19:53 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-01-20T11:19:53Z</dc:date>
    <item>
      <title>Calculate Year/Month Filters not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Year-Month-Filters-not-working/m-p/2293101#M56439</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm using SampleSupterstore dataset and I'm trying to calculate orders only placed in 2016 (Order Date in 2016). I figured out that I had to use the YEAR function as a filter when using the CALCULATE function; however, when I try to get more granular and filter year 2016 in the months of January and February combined, I receive blank values. Does anyone know why this happens? P.S. I'm also using a Date table as well. Here is the function I tried that did not work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[TotalSales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;2016&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Month Name]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"January"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Month Name]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"February"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jan 2022 09:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Year-Month-Filters-not-working/m-p/2293101#M56439</guid>
      <dc:creator>learning_dax</dc:creator>
      <dc:date>2022-01-20T09:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Year/Month Filters not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Year-Month-Filters-not-working/m-p/2293268#M56443</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;Now that you are using &amp;amp;&amp;amp; you are trying to apply the filters simultaniously the sign for or is&amp;nbsp;&lt;SPAN&gt;||&lt;BR /&gt;Alternatively you can just use OR()&lt;BR /&gt;&lt;BR /&gt;So try this:&lt;BR /&gt;&lt;BR /&gt;CALCULATE([TotalSales],YEAR('Date'[Date]) =&amp;nbsp;2016,'Date'[Month Name]&amp;nbsp;=&amp;nbsp;"January"&amp;nbsp;|| 'Date'[Month Name]&amp;nbsp;=&amp;nbsp;"February")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 11:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Year-Month-Filters-not-working/m-p/2293268#M56443</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-20T11:19:53Z</dc:date>
    </item>
  </channel>
</rss>

