<?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 Last Year Ticket Total for Current Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1658861#M33787</link>
    <description>&lt;P&gt;I am creating a scorecard that shows the number of tickets created for a month using card visuals.&amp;nbsp; I need to show the current month's number of tickets, the previous month's number of tickets, and the number of tickets one year ago from the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created these measures:&lt;/P&gt;&lt;P&gt;Current Month:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Current Prod Ct Month = CALCULATE(MAX(DateTable[YearMonthShort]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Current Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[YearMonthShort]=[Current Prod Ct Month]))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Previous Month:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct Month = CALCULATE(MAX(DateTable[Last Month]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[YearMonthShort]=[Prev Prod Ct Month]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;One Year Ago Current Month:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct Year = CALCULATE(MAX(DateTable[Last Year]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Yr Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[Last Year]=[Prev Prod Ct Year]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I added two custom columns to my Date Table: Last Month and Last Year and both return the expected results in the table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get back the expected information for all of the measures above except for the very last one:&amp;nbsp; Prev Yr Prod Ct, which is the February 2020 value of 8.&amp;nbsp; Below is a visual of the month and value side by side.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am trying to determine what I need to do for this last one to work as well.&amp;nbsp; &amp;nbsp;Thank you for your assistance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 Feb 2021 21:47:17 GMT</pubDate>
    <dc:creator>LAYACH</dc:creator>
    <dc:date>2021-02-10T21:47:17Z</dc:date>
    <item>
      <title>Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1658861#M33787</link>
      <description>&lt;P&gt;I am creating a scorecard that shows the number of tickets created for a month using card visuals.&amp;nbsp; I need to show the current month's number of tickets, the previous month's number of tickets, and the number of tickets one year ago from the current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created these measures:&lt;/P&gt;&lt;P&gt;Current Month:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Current Prod Ct Month = CALCULATE(MAX(DateTable[YearMonthShort]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Current Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[YearMonthShort]=[Current Prod Ct Month]))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Previous Month:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct Month = CALCULATE(MAX(DateTable[Last Month]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[YearMonthShort]=[Prev Prod Ct Month]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;One Year Ago Current Month:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Prod Ct Year = CALCULATE(MAX(DateTable[Last Year]), FILTER(ALL(DateTable), 'Measures for Product Scorecard'[Total Ct Issue ID]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Prev Yr Prod Ct = CALCULATE('Measures for Product Scorecard'[Total Ct Issue ID], FILTER(DateTable, DateTable[Last Year]=[Prev Prod Ct Year]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I added two custom columns to my Date Table: Last Month and Last Year and both return the expected results in the table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get back the expected information for all of the measures above except for the very last one:&amp;nbsp; Prev Yr Prod Ct, which is the February 2020 value of 8.&amp;nbsp; Below is a visual of the month and value side by side.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am trying to determine what I need to do for this last one to work as well.&amp;nbsp; &amp;nbsp;Thank you for your assistance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Feb 2021 21:47:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1658861#M33787</guid>
      <dc:creator>LAYACH</dc:creator>
      <dc:date>2021-02-10T21:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1659282#M33799</link>
      <description>&lt;P&gt;What prevents you from using SAMEPERIODLASTYEAR() ? What is your expected outcome?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 02:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1659282#M33799</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-11T02:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660596#M33844</link>
      <description>&lt;P&gt;I would expect the 531 tickets showing in the table to the left.&amp;nbsp; Any ideas what I need to change for the given DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try the SAMEPERIODLASTYEAR but could not figure out how to use it given the other two DAX formulas that are working correctly above.&amp;nbsp; If you have a suggestion using SAMEPERIODLASTYEAR with my current DAX that is working that would be great as well.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 13:26:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660596#M33844</guid>
      <dc:creator>LAYACH</dc:creator>
      <dc:date>2021-02-11T13:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660748#M33852</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;given the other two DAX formulas that are working correctly above"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I would like to challenge you on that. Those can be replaced by simpler version.&amp;nbsp; I would recommend you look at the "Quick Measures"&amp;nbsp; options, and/or consult &lt;A href="https://daxpatterns.com" target="_blank"&gt;https://daxpatterns.com&lt;/A&gt;&amp;nbsp; for reference implementation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Please provide sample data in usable format (not as a picture)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660748#M33852</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-11T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660894#M33860</link>
      <description>&lt;P&gt;I am fairly new to DAX and the possibilities are a bit overwhelming.&amp;nbsp; What "Quick Measure" would you reccomend that I start with for what I am attempting to do?&amp;nbsp; I am all for simple.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:11:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1660894#M33860</guid>
      <dc:creator>LAYACH</dc:creator>
      <dc:date>2021-02-11T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1661278#M33873</link>
      <description>&lt;P&gt;I would go with one of the time intelligence measures&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;</description>
      <pubDate>Thu, 11 Feb 2021 17:51:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1661278#M33873</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-11T17:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last Year Ticket Total for Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1661341#M33877</link>
      <description>&lt;P&gt;Using the Quick Measure and starting from Current Month, I get this since I have to pick an exact date in the Quick Measure.&amp;nbsp; How now can I modify the resulting DAX to get the MAX month to have the DAX that will be correct when the month changes to March?&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;Count of Issues for Current Month =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE(&lt;/DIV&gt;&lt;DIV&gt;COUNTA('NQ Work Intake Component Expand'[Issue Key]),&lt;/DIV&gt;&lt;DIV&gt;'DateTable'[YEARMONTHSHORT] IN {DATE(2021,2,1)},&lt;/DIV&gt;&lt;DIV&gt;ALL('DateTable'[SortMonth])&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Year-Ticket-Total-for-Current-Month/m-p/1661341#M33877</guid>
      <dc:creator>LAYACH</dc:creator>
      <dc:date>2021-02-11T18:37:45Z</dc:date>
    </item>
  </channel>
</rss>

