<?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: Same period Previous Year for the selected Dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1343665#M24077</link>
    <description>Time-intelligence requires a proper Date table. You can't get away without it.</description>
    <pubDate>Thu, 03 Sep 2020 09:16:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-03T09:16:18Z</dc:date>
    <item>
      <title>Same period Previous Year for the selected Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1342166#M24018</link>
      <description>&lt;P&gt;I am trying to write a DAX&amp;nbsp; to filter the Data for the same periof prior year.&amp;nbsp; I could write DAX for current year&amp;nbsp; and tried using "samepreiod lastear" but it doesnt give me required result.&amp;nbsp; Can someone help me apply the logic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where as&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MinMax = CALCULATE(MIN('Sales'[Actual Ship Date]),ALLSELECTED(Sales[Actual Ship Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MaxMDate = CALCULATE(MAX(Sales[Actual Ship Date]),ALLSELECTED(Sales[Actual Ship Date])) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 18:50:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1342166#M24018</guid>
      <dc:creator>Tanyag</dc:creator>
      <dc:date>2020-09-02T18:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Same period Previous Year for the selected Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1342234#M24021</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253397" data-lia-user-login="Tanyag" class="lia-mention lia-mention-user"&gt;Tanyag&lt;/a&gt;&amp;nbsp;- Well, there are things like PREVIOUSYEAR and other TI functions.&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise,&amp;nbsp;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 19:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1342234#M24021</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-02T19:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Same period Previous Year for the selected Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1343167#M24057</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253397" data-lia-user-login="Tanyag" class="lia-mention lia-mention-user"&gt;Tanyag&lt;/a&gt; , You need to use date table for that. You can also use trailing year measure &lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;/P&gt;
&lt;P&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer : &lt;BR /&gt;&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Video -&lt;A href="https://youtu.be/Qt0TM-4H09U" target="_blank"&gt;https://youtu.be/Qt0TM-4H09U&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi" target="_blank"&gt;https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See if my webinar on Time Intelligence can help: &lt;A href="https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184" target="_blank"&gt;https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate your Kudos.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 06:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1343167#M24057</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-03T06:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Same period Previous Year for the selected Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1343665#M24077</link>
      <description>Time-intelligence requires a proper Date table. You can't get away without it.</description>
      <pubDate>Thu, 03 Sep 2020 09:16:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1343665#M24077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-03T09:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Same period Previous Year for the selected Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1345472#M24137</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; &amp;nbsp;I was able to resolve it using&amp;nbsp;&lt;A href="https://bielite.com/blog/last-12-months-from-selected-date-trailing-12-months-ttm/" target="_blank"&gt;https://bielite.com/blog/last-12-months-from-selected-date-trailing-12-months-ttm/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-period-Previous-Year-for-the-selected-Dates/m-p/1345472#M24137</guid>
      <dc:creator>Tanyag</dc:creator>
      <dc:date>2020-09-03T19:29:14Z</dc:date>
    </item>
  </channel>
</rss>

