<?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: Sales for Specific Year (DAX) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292924#M56428</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You just need to add YEAR(&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;)&amp;nbsp; instead of&amp;nbsp;&lt;SPAN&gt;'Date'[Date] and you are good to go. E.g. CALCULATE([measure],ALL(Table),YEAR('Date'[Date])=2016))&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 08:39:17 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-01-20T08:39:17Z</dc:date>
    <item>
      <title>Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292893#M56425</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Newbie to DAX, so this might be a simple one. I'm simply using SuperStore dataset with a Date table trying to calculate JUST 2016 sales when the Order Date was in 2016. Trying to create a measure to put in a table/pie chart in which I can only get the sales for the orders placed in 2016. My work-around, I think, was using CALCULATE then the DATESBETWEEN function Jan 1 2016 - Dec 31 2016 (the relationship is from the Date table to the Orders table Order Date). When I try to use CALCULATE [TotalSales] then Filter 'Date'[Date] = 2016 or 'Orders'[Order Date] = 2016 I get blanks. I believe I've done this before but I may be wrong. Hope I'm not overcomplicating things.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jan 2022 08:30:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292893#M56425</guid>
      <dc:creator>learning_dax</dc:creator>
      <dc:date>2022-01-20T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292924#M56428</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You just need to add YEAR(&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;)&amp;nbsp; instead of&amp;nbsp;&lt;SPAN&gt;'Date'[Date] and you are good to go. E.g. CALCULATE([measure],ALL(Table),YEAR('Date'[Date])=2016))&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 08:39:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292924#M56428</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-20T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292975#M56433</link>
      <description>&lt;P&gt;Hi ValtteriN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I used the formula you suggested and it simply gave me the aggregate amount of sales for all years. It is not filtering for 2016. This does not change even if I exclude the ALL function nor if I change 'Date'[Date] = 2016 or 'Orders'[Order Date] = 2016. I thought there was a way to do this as you suggested but I'm not getting filtered output.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Calculations I tried:&amp;nbsp;&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;Orders[Order Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2016&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;2016&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Orders&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;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jan 2022 08:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292975#M56433</guid>
      <dc:creator>learning_dax</dc:creator>
      <dc:date>2022-01-20T08:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292997#M56434</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;YEAR() needs to encompass the date so&amp;nbsp;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;STRONG&gt;)&lt;/STRONG&gt;=2016. In the examples you posted the bracket is outside e.g.&amp;nbsp;,YEAR('Date'[Date]&amp;nbsp;=&amp;nbsp;2016&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 09:02:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2292997#M56434</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-20T09:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2293006#M56435</link>
      <description>&lt;P&gt;That worked. Little things like that I'm still getting used to. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 09:05:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/2293006#M56435</guid>
      <dc:creator>learning_dax</dc:creator>
      <dc:date>2022-01-20T09:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Specific Year (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/3610991#M139596</link>
      <description>&lt;P&gt;i tired this equation and i got the result but when i draged this measure into visual where i want to show monthly wise &amp;nbsp;i am getting the same amount till December.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 12:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-for-Specific-Year-DAX/m-p/3610991#M139596</guid>
      <dc:creator>Abdulsamnad</dc:creator>
      <dc:date>2024-01-02T12:52:55Z</dc:date>
    </item>
  </channel>
</rss>

