<?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: Problems with DAX Date filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/700266#M786</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What a difference a misplaced bracket makes! I should have spotted this myself.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 07:02:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-27T07:02:10Z</dc:date>
    <item>
      <title>Problems with DAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/699934#M773</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite new to DAX and am experimenting with filters in CALCULATE, using a simple table of sales data containing data from 2017 to 2019 - here's an extract&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Source data is at&amp;nbsp;&lt;A href="https://1drv.ms/x/s!AmxJyApgEAcYgtUghDmk57MBicCw0A" target="_blank"&gt;https://1drv.ms/x/s!AmxJyApgEAcYgtUghDmk57MBicCw0A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've set up a measure to sum only order class "P" sales:&lt;/P&gt;&lt;P&gt;Priority Class Sales = CALCULATE(SUM(Sales[Sale£]),OrderClasses[Order Class]="P")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and another to just sum sales in 2019:&lt;/P&gt;&lt;P&gt;Sales in 2019 = calculate(SUM(Sales[Sale£]),YEAR(Sales[OrderDate]=2019))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what happens when I use them in a table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Could someone explain why the "Priority Class Sales" filter works while the "Sales in 2019" filter appears to have no effect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2019 08:11:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/699934#M773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-26T08:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/700040#M779</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;the bracket is in the wrong place in the measure. Should be&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YEAR(Sales[OrderDate]) = 2019)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 May 2019 19:39:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/700040#M779</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-05-26T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/700266#M786</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What a difference a misplaced bracket makes! I should have spotted this myself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 07:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-DAX-Date-filter/m-p/700266#M786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-27T07:02:10Z</dc:date>
    </item>
  </channel>
</rss>

