<?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: What is difference between DatesYTD and TotalYTD in simple terms with example. lot of confusion. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3646869#M141245</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="525140" data-lia-user-login="Rsing" class="lia-mention lia-mention-user"&gt;Rsing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are both time intelligence functions that rely on a well-formed date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 measures return the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YTD Sales =
	CALCULATE(
		[Sales],
		DATESYTD( 'Date'[Date] )
	)


YTD Sales 2 =
	TOTALYTD(
		[Sales],
		'Date'[Date]
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/totalytd/" target="_blank"&gt;https://dax.guide/totalytd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/datesytd/" target="_blank"&gt;https://dax.guide/datesytd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 01:05:31 GMT</pubDate>
    <dc:creator>gmsamborn</dc:creator>
    <dc:date>2024-01-19T01:05:31Z</dc:date>
    <item>
      <title>What is difference between DatesYTD and TotalYTD in simple terms with example. lot of confusion.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3646855#M141244</link>
      <description />
      <pubDate>Thu, 18 Jan 2024 23:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3646855#M141244</guid>
      <dc:creator>Rsing</dc:creator>
      <dc:date>2024-01-18T23:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is difference between DatesYTD and TotalYTD in simple terms with example. lot of confusion.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3646869#M141245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="525140" data-lia-user-login="Rsing" class="lia-mention lia-mention-user"&gt;Rsing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are both time intelligence functions that rely on a well-formed date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 measures return the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YTD Sales =
	CALCULATE(
		[Sales],
		DATESYTD( 'Date'[Date] )
	)


YTD Sales 2 =
	TOTALYTD(
		[Sales],
		'Date'[Date]
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/totalytd/" target="_blank"&gt;https://dax.guide/totalytd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/datesytd/" target="_blank"&gt;https://dax.guide/datesytd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 01:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3646869#M141245</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-01-19T01:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is difference between DatesYTD and TotalYTD in simple terms with example. lot of confusion.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3647353#M141262</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="525140" data-lia-user-login="Rsing" class="lia-mention lia-mention-user"&gt;Rsing&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;DATESYTD and TOTALYTD are both DAX time intelligence functions in Power BI.&lt;/P&gt;
&lt;P&gt;Common points:&lt;/P&gt;
&lt;P&gt;1.can be used to calculate the year-to-date totals for a given metric. Specifically refer to the following format and link:&lt;/P&gt;
&lt;P&gt;DATESYTD(&amp;lt;dates&amp;gt; [,&amp;lt;year_end_date&amp;gt;])&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdax%2Fdatesytd-function-dax&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7Cbd45227465a54cea972308dc18b33d5e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412405307302971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=eQ0eFmtk1SF3Rg98d5TBt%2FtyzLtTfR%2F7EPaLIhXaCKE%3D&amp;amp;reserved=0" target="_blank"&gt;DATESYTD function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;TOTALYTD(&amp;lt;expression&amp;gt;,&amp;lt;dates&amp;gt;[,&amp;lt;filter&amp;gt;][,&amp;lt;year_end_date&amp;gt;])&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdax%2Ftotalytd-function-dax&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7Cbd45227465a54cea972308dc18b33d5e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412405307310558%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=q9BKY5EB57nUm6in%2BXM6nvAqo%2FK0Chr24X3BnugxBWY%3D&amp;amp;reserved=0" target="_blank"&gt;TOTALYTD function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.There is an optional parameter &amp;lt;year_end_date&amp;gt;, if the value of this parameter is filled in "06/30", it means that the start of the calculation is July 1 of the current year, you can refer to the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fradacad.com%2Fbasics-of-time-intelligence-in-dax-for-power-bi-year-to-date-quarter-to-date-month-to-date&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7Cbd45227465a54cea972308dc18b33d5e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412405307317125%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=8Rl7eeAMBBsPc0zyi02QOdkZr1r8MXwP3YSOhuxEbOI%3D&amp;amp;reserved=0" target="_blank"&gt;Basics of Time Intelligence in DAX for Power BI; Year to Date, Quarter to Date, Month to Date - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Different points:&lt;/P&gt;
&lt;P&gt;1.The return value of DATESYTD is a table that contains a column of dates for that year-to-date in the current context.&lt;/P&gt;
&lt;P&gt;TOTALYTD calculates the current calculation of the value of the expression in the context of the year-to-date value, return scalar results.&lt;/P&gt;
&lt;P&gt;2.TOTALYTD can only add a filter, but DATESYTD and CALCULAT can be added in combination with a number of filter conditions, so DATESYTD more flexible than TOTALYTD. Although it is possible to add more than one filter using TotalYTD, it may make the expression a bit complicated, please refer to the following link for details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.sqlbi.com%2Fblog%2Fmarco%2F2018%2F08%2F10%2Fthe-hidden-secrets-of-totalytd%2F&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7Cbd45227465a54cea972308dc18b33d5e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412405307324696%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=cC%2FSlq9BNX2s14EvFberNrZYywt32eMkcpUECZJvZBQ%3D&amp;amp;reserved=0" target="_blank"&gt;The hidden secrets of TOTALYTD - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 05:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-difference-between-DatesYTD-and-TotalYTD-in-simple-terms/m-p/3647353#M141262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-19T05:58:57Z</dc:date>
    </item>
  </channel>
</rss>

