<?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: Not understanding TOTALYTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4008284#M157355</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks again for your efforts.&lt;/P&gt;&lt;P&gt;But my aim was to understand why the function does not work. I didn't need a workaround.&lt;/P&gt;&lt;P&gt;Even with a date table, which I have marked accordingly, the function alone does not work.&lt;/P&gt;&lt;P&gt;I just want to understand why this is not the case.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 05:39:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T05:39:50Z</dc:date>
    <item>
      <title>Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006834#M157343</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am wondering whether I have misunderstood the TOTALYTD function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it only calculated values in an expression that are in the range from 01.01. of this year to today's date.&lt;/P&gt;&lt;P&gt;I have imported an Excel list into Power BI in which only one date column and the corresponding sales are stored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today is the 24.06.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion, the measure&lt;/P&gt;&lt;P&gt;TotalYTD = TOTALYTD(SUM(Table1[Sales]),Table1[Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should show a total of 80. However, 90 is displayed. There are no filters in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 11:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006834#M157343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006887#M157344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Can you try below measure for total YTD&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or with TotalYTD:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalYTD =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPA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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;BR /&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 12:34:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006887#M157344</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-24T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006928#M157345</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for your effort.&lt;/P&gt;&lt;P&gt;Yes, that works. I had already thought about workarounds.&lt;/P&gt;&lt;P&gt;I just don't understand why the function doesn't work on its own and why I need a filter.&lt;/P&gt;&lt;P&gt;That's why I'm wondering if I've misunderstood the function.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 12:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006928#M157345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T12:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006939#M157346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&amp;nbsp; Glad that you found works, Can you please mark this as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The TotalYTD&amp;nbsp;function should work on its own without additional filters, provided the date table is correctly set up and recognized by Power BI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TOTALYTD&amp;nbsp;function is specifically used for calculating year-to-date totals. It inherently considers the date context applied in your report or visualization.TOTALYTD calculates the year-to-date (YTD) total for an expression over a given time period. It is commonly used in time intelligence calculations to aggregate data from the start of the year to the last date in the current context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/totalytd-function-dax" target="_blank"&gt;TOTALYTD function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 12:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4006939#M157346</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-24T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4008284#M157355</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks again for your efforts.&lt;/P&gt;&lt;P&gt;But my aim was to understand why the function does not work. I didn't need a workaround.&lt;/P&gt;&lt;P&gt;Even with a date table, which I have marked accordingly, the function alone does not work.&lt;/P&gt;&lt;P&gt;I just want to understand why this is not the case.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 05:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4008284#M157355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T05:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4009163#M157490</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Please go through the similar thread more information about TOTALYTD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-use-TOTALYTD-command-for-compute-YTD/td-p/1637268" target="_blank"&gt;Solved: How to use TOTALYTD command for compute YTD ? - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick bite:&lt;/P&gt;&lt;P&gt;The TOTALYTD function in DAX is used to calculate the year-to-date total of an expression, such as a sum of sales, up to a specified date. This function takes into account the date context to aggregate the values from the start of the year to the specified date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;TOTALYTD(&lt;BR /&gt;&amp;lt;expression&amp;gt;,&lt;BR /&gt;&amp;lt;dates&amp;gt;,&lt;BR /&gt;[&amp;lt;year_end_date&amp;gt;],&lt;BR /&gt;[&amp;lt;filter&amp;gt;]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some reference link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/totalytd-function-dax" target="_blank"&gt;TOTALYTD function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 13:16:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4009163#M157490</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-25T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4010779#M157838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the Date column into the same table visual as the&amp;nbsp;&lt;SPAN&gt;TotalYTD&amp;nbsp;measure. Observe the result of each date, I'm sure this will help you understand how&amp;nbsp;TOTALYTD function works better. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The "date" of "year-to-date" is &lt;FONT color="#000000"&gt;&lt;STRONG&gt;not &lt;/STRONG&gt;&lt;/FONT&gt;today, it refers to a specified date in the context where the measure is evaluated. In the following data, there are two years data in the table. On each row, the specified date is the date on that row and the measure calculates the TYD result based on that date.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In your original table visual which only has the measure, the&amp;nbsp;&lt;SPAN&gt;specified date will be the maximum date available in the data table, so it calculates YTD based on the date 02.07.24 and returns the result 90.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may need to learn about the concept of &lt;STRONG&gt;Context&lt;/STRONG&gt;. It is very important in DAX. The context of a measure may change so it will return different results when evaluated in different visuals or along with different fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-context-transition-in-dax/" target="_blank" rel="noopener"&gt;Understanding context transition in DAX - SQLBI&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:30:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4010779#M157838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T08:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding TOTALYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4013254#M158061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Now I have finally understood it.&lt;/P&gt;&lt;P&gt;My wrong thought was actually that I was referring to today's date and not the context.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 10:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-understanding-TOTALYTD/m-p/4013254#M158061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T10:34:48Z</dc:date>
    </item>
  </channel>
</rss>

