<?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: SUMX using Year Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916816#M8913</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202684" data-lia-user-login="584100" class="lia-mention lia-mention-user"&gt;584100&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you have an issue with parenthesys YEAR function:&amp;nbsp;&lt;SPAN&gt;YEAR(Sales[Date]=2014) is completely wrong statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Second, try to use ALL() inside filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Amount = SUMX (FILTER(ALL(Sales),YEAR(Sales[Date])=2014),Sales[Sales Amount])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 18:22:31 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2020-01-30T18:22:31Z</dc:date>
    <item>
      <title>SUMX using Year Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916808#M8912</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Amount = SUMX (FILTER(Sales,(YEAR(Sales[Date]=2014))),Sales[Sales Amount])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Above formula is calculating sum of column&amp;nbsp;[Sales Amount] without filtering rows having value only 2014. I just want to have sum of rows for which Year in [Date] column is 2014. Any idea why is it not considering filter condition.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Chetna&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:03:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916808#M8912</guid>
      <dc:creator>584100</dc:creator>
      <dc:date>2020-01-30T18:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX using Year Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916816#M8913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202684" data-lia-user-login="584100" class="lia-mention lia-mention-user"&gt;584100&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you have an issue with parenthesys YEAR function:&amp;nbsp;&lt;SPAN&gt;YEAR(Sales[Date]=2014) is completely wrong statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Second, try to use ALL() inside filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Amount = SUMX (FILTER(ALL(Sales),YEAR(Sales[Date])=2014),Sales[Sales Amount])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916816#M8913</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-30T18:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX using Year Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916832#M8916</link>
      <description>&lt;P&gt;CALCULATE(SUMX(sales,salesamount),salesdate="2014")&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-using-Year-Function/m-p/916832#M8916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-30T18:41:55Z</dc:date>
    </item>
  </channel>
</rss>

