<?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: Pivot Grand Total ignores prior year in TOTALYTD Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2411077#M63518</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255219" data-lia-user-login="moliveira-GA" class="lia-mention lia-mention-user"&gt;moliveira-GA&lt;/a&gt; , you should only use &lt;/P&gt;
&lt;P&gt;TOTALYTD( [real_net_revenue] ; fCalendar[Date]) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fCalendar should be marked as date table&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&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;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 03:59:56 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-23T03:59:56Z</dc:date>
    <item>
      <title>Pivot Grand Total ignores prior year in TOTALYTD Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2410375#M63482</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious about this little issue. That's not a real problem at all but, it seem I'm forgetting something. Note the column "Real_netRevenue_YTD" in the pivot below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm using the line: TOTALYTD( [real_net_revenue] ) ; fCalendar[Date] ; ALLSELECTED( fCalendar ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results for each year (lines) are correct, but the grand total in the pivot seems to ignore the prior years, and by that, doesn't calculate the total (note the Grand Total sum. It's equal to the 2022 year).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you guys saw this happen before?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 18:24:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2410375#M63482</guid>
      <dc:creator>moliveira-GA</dc:creator>
      <dc:date>2022-03-22T18:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grand Total ignores prior year in TOTALYTD Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2411077#M63518</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255219" data-lia-user-login="moliveira-GA" class="lia-mention lia-mention-user"&gt;moliveira-GA&lt;/a&gt; , you should only use &lt;/P&gt;
&lt;P&gt;TOTALYTD( [real_net_revenue] ; fCalendar[Date]) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fCalendar should be marked as date table&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&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;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 03:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2411077#M63518</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-23T03:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grand Total ignores prior year in TOTALYTD Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2411078#M63519</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255219" data-lia-user-login="moliveira-GA" class="lia-mention lia-mention-user"&gt;moliveira-GA&lt;/a&gt; , you should only use &lt;/P&gt;
&lt;P&gt;TOTALYTD( [real_net_revenue] ; fCalendar[Date]) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fCalendar should be marked as date table&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&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;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 03:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2411078#M63519</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-23T03:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grand Total ignores prior year in TOTALYTD Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2412138#M63568</link>
      <description>&lt;P&gt;Hello amitchandak,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the answer but, unfortunally it doesn't worked. I've tried this way (TOTALYTD ([Real_net_revenue] ; fCalendar[Date]) and got the same result (yes, the fCalendar table is marked as date table).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm consulting the links you mentioned. thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2412138#M63568</guid>
      <dc:creator>moliveira-GA</dc:creator>
      <dc:date>2022-03-23T11:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grand Total ignores prior year in TOTALYTD Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2417489#M63877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255219" data-lia-user-login="moliveira-GA" class="lia-mention lia-mention-user"&gt;moliveira-GA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, if you want the "&lt;SPAN&gt;Real_netRevenue_YTD" display the sum of this column at the total,&amp;nbsp;&lt;/SPAN&gt;try this measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Real_netRevenue_YTD =
VAR _T =
    ADDCOLUMNS (
        VALUES ( 'fCalendar'[Date] ),
        "YTD", TOTALYTD ( [real_net_revenue], fCalendar[Date] )
    )
RETURN
    IF (
        HASONEVALUE ( 'fCalendar'[Date] ),
        TOTALYTD ( [real_net_revenue], fCalendar[Date] ),
        SUMX ( _T, [YTD] )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;If it still has other problems, please feel free to let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 09:46:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pivot-Grand-Total-ignores-prior-year-in-TOTALYTD-Dax/m-p/2417489#M63877</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-03-25T09:46:16Z</dc:date>
    </item>
  </channel>
</rss>

