<?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: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3237470#M119042</link>
    <description>&lt;P&gt;Thanks for the reply. I replaced 'Calendar'[Calendar Quarter] with the column 'Calendar'[DayNumberofMonth] and that worked. Using the 'Calendar'[MonthName] as a filter, I could see the TOTALQTD increasing from Jan --&amp;gt; March then resetting at April.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I think I misunderstood how these functions worked. I expected the TOTALQTD to grow across all quarters in a year (e.g. Q4&amp;gt;Q3&amp;gt;Q2&amp;gt;Q1 like below). But the TOTALQTD function only provides a sum within a specified quarter before resetting for the next quarter. Is this correct?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 09:58:29 GMT</pubDate>
    <dc:creator>RokuCap</dc:creator>
    <dc:date>2023-05-16T09:58:29Z</dc:date>
    <item>
      <title>TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3235620#M118922</link>
      <description>&lt;P&gt;Chapter 15 of 'Supercharge Power BI' by Matt Allington talks about Time Intelligence Functions like TOTALMTD() and TOTALQTD().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It recommends to create a matrix to test the measures using the contiguous date range from the 'Calendar' Table in Calendar[Date] and slicers to compare the Year/Month/Quarter-to-date value with the matrix summed total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm having issues with this measure: &lt;EM&gt;Total Sales Quarter to Date = &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;TOTALQTD([Total Sales],'Calendar'[Date]) on page 119&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;- Only filter applied for 'Calendar' [Calendar Year] = 2018&lt;/DIV&gt;&lt;DIV&gt;- The formula is correct however I can't get the 'Total Sales Quarter to Date' to show the running total for each quarter in 2017.&lt;/DIV&gt;&lt;DIV&gt;- What might be the issue here? Am I using the wrong filters? Wrong matrix fields?&lt;/DIV&gt;&lt;DIV&gt;- Note: TOTALMTD() worked fine when I used 'Calendar'[DayNumberofMonth] in the matrix row.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;&amp;nbsp;Matrix snippets:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&amp;nbsp;Measure formula:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2023 12:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3235620#M118922</guid>
      <dc:creator>RokuCap</dc:creator>
      <dc:date>2023-05-15T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3235665#M118927</link>
      <description>&lt;P&gt;The measure is working correctly. If you put one of the month columns in the matrix you will see the total qtd grow until it resets at the start of the next quarter.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:36:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3235665#M118927</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-15T12:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3237470#M119042</link>
      <description>&lt;P&gt;Thanks for the reply. I replaced 'Calendar'[Calendar Quarter] with the column 'Calendar'[DayNumberofMonth] and that worked. Using the 'Calendar'[MonthName] as a filter, I could see the TOTALQTD increasing from Jan --&amp;gt; March then resetting at April.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I think I misunderstood how these functions worked. I expected the TOTALQTD to grow across all quarters in a year (e.g. Q4&amp;gt;Q3&amp;gt;Q2&amp;gt;Q1 like below). But the TOTALQTD function only provides a sum within a specified quarter before resetting for the next quarter. Is this correct?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:58:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3237470#M119042</guid>
      <dc:creator>RokuCap</dc:creator>
      <dc:date>2023-05-16T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3237474#M119043</link>
      <description>&lt;P&gt;Yes, that's correct. To see the figures growing quarter on quarter you would use the TOTALYTD function instead.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 10:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3237474#M119043</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-16T10:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241966#M119312</link>
      <description>&lt;P&gt;Hi John, instead of creating a new thread, I thought I'd add this here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total Sales Previous Quarter = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUSQUARTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm expecting the [Total Sales Previous Quarter] value to match the value from the [Total Sales] column, one row above. [Total Sales]{1} does not match [Total Sales Previous Quarter]{2}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm not sure if the above syntax is correct for referring to the value in 'Total Sales' Column and row {1} or row {2}. Feel free to correct me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why this is?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 10:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241966#M119312</guid>
      <dc:creator>RokuCap</dc:creator>
      <dc:date>2023-05-18T10:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241979#M119315</link>
      <description>&lt;P&gt;Is your calendar table marked as a date table ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 10:16:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241979#M119315</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-18T10:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241987#M119317</link>
      <description>&lt;P&gt;Thanks for the quick reply! It wasn't before. I marked it as a data table but the 'Total Sales'[Q1] still doesn't match 'Total Sales Previous Quarter'[Q2].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula is correct per the book. I wonder if it has something to do with the filters/filter context?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;^ after marking the 'Calendar' table as a date table and selecting the [Date] column.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 10:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3241987#M119317</guid>
      <dc:creator>RokuCap</dc:creator>
      <dc:date>2023-05-18T10:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3242031#M119319</link>
      <description>&lt;P&gt;It looks like the problem is either in the calculation for Q1 for [Total Sales] or in Q2 for [Total sales previous quarter]. Which one is the correct answer and which one is wrong ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 10:43:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3242031#M119319</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-18T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALQTD() Not Showing Running Total for Calendar Quarters in Matrix Row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3247051#M119664</link>
      <description>&lt;P&gt;A quick update:&lt;/P&gt;&lt;P&gt;The reason formula:&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUSQUARTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)) didn't work is because I had a slicer from another matrix unintentionally interacting with this matrix. Something I hadn't considered. Lesson learned!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 09:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALQTD-Not-Showing-Running-Total-for-Calendar-Quarters-in/m-p/3247051#M119664</guid>
      <dc:creator>RokuCap</dc:creator>
      <dc:date>2023-05-22T09:12:09Z</dc:date>
    </item>
  </channel>
</rss>

