<?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: Help with same period, but the month is not finished in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061729#M46533</link>
    <description>&lt;P&gt;Can you please try with,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TTMMPASSSYS = CALCULATE(TOTALMTD(SUM(AC_TKTBYMM[COUNT]),(AC_TKTBYMM[DATE]),(AC_TKTBYMM[TKT_TYPE]="System")),PARALLELPERIOD(AC_TKTBYMM[DATE],-1,YEAR))&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Sep 2021 11:33:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-07T11:33:58Z</dc:date>
    <item>
      <title>Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061642#M46525</link>
      <description>&lt;P&gt;Hello community, I have tried some solutions that I saw but I got no success.&lt;/P&gt;&lt;P&gt;I have a simple table with DATE, COUNT and TKT_TYPE&lt;/P&gt;&lt;P&gt;Date = its a day, like 01/01/2021&lt;/P&gt;&lt;P&gt;Tkt_Type = There are two values here, System or Network&lt;/P&gt;&lt;P&gt;Count = total tickets opened on that day&lt;/P&gt;&lt;P&gt;Here how the table looks&lt;/P&gt;&lt;P&gt;Date | Count | Tkt_type&lt;/P&gt;&lt;P&gt;01/01/2021 | 5 | System&lt;/P&gt;&lt;P&gt;01/01/2021 | 3 | Network&lt;/P&gt;&lt;P&gt;02/01/2021 | 4 | System&lt;/P&gt;&lt;P&gt;02/01/2021 | 8 | Network&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need two infos:&lt;/P&gt;&lt;P&gt;1) Total tickets by type on this month (It works)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TTMMATUALSYS = TOTALMTD(SUM(AC_TKTBYMM[COUNT]),AC_TKTBYMM[DATE],AC_TKTBYMM[TKT_TYPE]="System")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TTMMATUALNET = TOTALMTD(SUM(AC_TKTBYMM[COUNT]),AC_TKTBYMM[DATE],AC_TKTBYMM[TKT_TYPE]="Network")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2) And now I need same result, but at the same period of last year. Today is 07/09/2021 so, i need from 01/09/2020 to 07/09/2020&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I tried this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TTMMPASSSYS = TOTALMTD(SUM(AC_TKTBYMM[COUNT]),SAMEPERIODLASTYEAR(AC_TKTBYMM[DATE]),(AC_TKTBYMM[TKT_TYPE]="System"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but the result is for all month.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can please anyone help?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Sep 2021 10:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061642#M46525</guid>
      <dc:creator>acorcos</dc:creator>
      <dc:date>2021-09-07T10:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061679#M46526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324513" data-lia-user-login="acorcos" class="lia-mention lia-mention-user"&gt;acorcos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try below measure:&lt;BR /&gt;PreviousyrMTD(System)=&amp;nbsp; CALCULATE(&lt;SPAN&gt;TTMMATUALSYS&amp;nbsp;,PARALLELPERIOD(AC_TKTBYMM[DATE], -12, MONTH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PreviousyrMTD(Network)=&amp;nbsp;CALCULATE(TTMMATUALNET&amp;nbsp;,PARALLELPERIOD(AC_TKTBYMM[DATE], -12, MONTH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps!&lt;BR /&gt;Mark this as a solution, if it answered your question. Kudos are always appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:00:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061679#M46526</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-09-07T11:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061691#M46528</link>
      <description>&lt;P&gt;Hello! Thanks, but the results show all month of sep/2020.&lt;/P&gt;&lt;P&gt;I just need sep/2020 but the end date must be same as today (07/09/2020)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:05:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061691#M46528</guid>
      <dc:creator>acorcos</dc:creator>
      <dc:date>2021-09-07T11:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061705#M46529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324513" data-lia-user-login="acorcos" class="lia-mention lia-mention-user"&gt;acorcos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TTMMPASSSYS = CALCULATE(TOTALMTD(SUM(AC_TKTBYMM[COUNT]),(AC_TKTBYMM[DATE]),(AC_TKTBYMM[TKT_TYPE]="System")),SAMEPERIODLASTYEAR(AC_TKTBYMM[DATE]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:16:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061705#M46529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-07T11:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061706#M46530</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324513" data-lia-user-login="acorcos" class="lia-mention lia-mention-user"&gt;acorcos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;SalesMTDLastYear&amp;nbsp;=
CALCULATE&amp;nbsp;( &lt;SPAN&gt;TTMMATUALSYS&lt;/SPAN&gt;,&amp;nbsp;SAMEPERIODLASTYEAR&amp;nbsp;(&amp;nbsp;&lt;SPAN&gt;AC_TKTBYMM[DATE]&lt;/SPAN&gt; )&amp;nbsp;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SalesMTDLastYear2&amp;nbsp;= CALCULATE&amp;nbsp;( &lt;SPAN&gt;TTMMATUALNET&lt;/SPAN&gt;,&amp;nbsp;SAMEPERIODLASTYEAR&amp;nbsp;(&amp;nbsp;&lt;SPAN&gt;AC_TKTBYMM[DATE]&lt;/SPAN&gt; )&amp;nbsp;)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:19:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061706#M46530</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-09-07T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061710#M46531</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I got same result of all month&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061710#M46531</guid>
      <dc:creator>acorcos</dc:creator>
      <dc:date>2021-09-07T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061712#M46532</link>
      <description>&lt;P&gt;Use a date table if you want to make the best of time intelligence functions,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TTMMPASSSYS =
CALCULATE(
    SUM( AC_TKTBYMM[COUNT] ),
    DATEADD( DATESMTD( DATES[Date] ), -1, YEAR ),
    AC_TKTBYMM[TKT_TYPE] = "System"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:21:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061712#M46532</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-09-07T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061729#M46533</link>
      <description>&lt;P&gt;Can you please try with,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TTMMPASSSYS = CALCULATE(TOTALMTD(SUM(AC_TKTBYMM[COUNT]),(AC_TKTBYMM[DATE]),(AC_TKTBYMM[TKT_TYPE]="System")),PARALLELPERIOD(AC_TKTBYMM[DATE],-1,YEAR))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:33:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061729#M46533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-07T11:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with same period, but the month is not finished</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061732#M46534</link>
      <description>&lt;P&gt;Just got same result till here, all month of sep/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going to the oracle database, i run this:&lt;/P&gt;&lt;P&gt;SELECT SUM(COUNT) FROM AC_TKTBYMM WHERE DATE&amp;gt;=to_date('01/09/2020','DD/MM/YYYY') and DATE&amp;lt;=to_date('07/09/2020','DD/MM/YYYY') and tkt_Type='System'&lt;/P&gt;&lt;P&gt;The result is 24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i just change the date 07/09/2020 to 30/09/2020 i got 147.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All tries till here show 147 on card&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-same-period-but-the-month-is-not-finished/m-p/2061732#M46534</guid>
      <dc:creator>acorcos</dc:creator>
      <dc:date>2021-09-07T11:37:49Z</dc:date>
    </item>
  </channel>
</rss>

