<?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 Years past data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3119668#M110577</link>
    <description>&lt;P&gt;How can I get the total of a previous year on an automated basis?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking to have&amp;nbsp; report that is always displayin gall of last years data, on an automated basis.&lt;/P&gt;&lt;P&gt;For example show all of last year 2022 and change every time the year changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data for this is a measure [Accidents per 100k Miles] and Date is '&lt;SPAN&gt;'Datamart AccidentSummary'[Merged FC]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 18:44:14 GMT</pubDate>
    <dc:creator>amandabus21</dc:creator>
    <dc:date>2023-03-08T18:44:14Z</dc:date>
    <item>
      <title>Years past data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3119668#M110577</link>
      <description>&lt;P&gt;How can I get the total of a previous year on an automated basis?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking to have&amp;nbsp; report that is always displayin gall of last years data, on an automated basis.&lt;/P&gt;&lt;P&gt;For example show all of last year 2022 and change every time the year changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data for this is a measure [Accidents per 100k Miles] and Date is '&lt;SPAN&gt;'Datamart AccidentSummary'[Merged FC]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 18:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3119668#M110577</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2023-03-08T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Years past data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3119922#M110595</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424505" data-lia-user-login="amandabus21" class="lia-mention lia-mention-user"&gt;amandabus21&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[Accidents per 100k Miles],&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; YEAR('Datamart AccidentSummary'[Merged FC]) = YEAR( MAX(&lt;/SPAN&gt;&lt;SPAN&gt;'Datamart AccidentSummary'[Merged FC]&lt;/SPAN&gt;&lt;SPAN&gt;))-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Mar 2023 21:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3119922#M110595</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-08T21:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Years past data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3120148#M110621</link>
      <description>&lt;P&gt;This givs me a total of all not the specific year. I need a display of this year and last year.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 00:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Years-past-data/m-p/3120148#M110621</guid>
      <dc:creator>amandabus21</dc:creator>
      <dc:date>2023-03-09T00:47:56Z</dc:date>
    </item>
  </channel>
</rss>

