<?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 Previous Year Sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Sum/m-p/2925259#M96073</link>
    <description>&lt;P&gt;again another simple question but maybe im over thinking it.&amp;nbsp;&lt;BR /&gt;I'm wanting to calculate the SUM('Table'[Sales]) (At a given time) for the previous year at a given quarter,&lt;BR /&gt;I guess my confusion is what if we are not using dates in the visualization itself how could i do this?&lt;BR /&gt;I have created a measure:&lt;BR /&gt;= Calculate(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum('Table'[Sales]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DateAdd('Table'[Date], -1, YEAR),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table'[Quarter] = "Q4"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;when inserting into the visual it just returns all sales (im assuming because there is no context specifying the date)&lt;BR /&gt;So my thought is to maybe include TODAY() but then what if a year on a slicer how would it then work?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 19:15:50 GMT</pubDate>
    <dc:creator>Euro0681</dc:creator>
    <dc:date>2022-11-23T19:15:50Z</dc:date>
    <item>
      <title>Previous Year Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Sum/m-p/2925259#M96073</link>
      <description>&lt;P&gt;again another simple question but maybe im over thinking it.&amp;nbsp;&lt;BR /&gt;I'm wanting to calculate the SUM('Table'[Sales]) (At a given time) for the previous year at a given quarter,&lt;BR /&gt;I guess my confusion is what if we are not using dates in the visualization itself how could i do this?&lt;BR /&gt;I have created a measure:&lt;BR /&gt;= Calculate(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum('Table'[Sales]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DateAdd('Table'[Date], -1, YEAR),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table'[Quarter] = "Q4"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;when inserting into the visual it just returns all sales (im assuming because there is no context specifying the date)&lt;BR /&gt;So my thought is to maybe include TODAY() but then what if a year on a slicer how would it then work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 19:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Sum/m-p/2925259#M96073</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-23T19:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Sum/m-p/2925534#M96086</link>
      <description>&lt;P&gt;Time intelligence helps shifting calculation period. With this code, to show the Q4 of the previous year, you need somewhere in your visual with the context of Q4 of this year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Calculate(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum('Table'[Sales]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DateAdd('Table'[Date], -1, YEAR)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 00:46:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Year-Sum/m-p/2925534#M96086</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-24T00:46:00Z</dc:date>
    </item>
  </channel>
</rss>

