<?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 Better Year to Date Total in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/2875532#M908</link>
    <description>&lt;P&gt;Continuing with exploring alternatives to Power BI's default quick measures that don't involve the CALCULATE function, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Running-Total/td-p/2755666" target="_self"&gt;Better Running Total&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Average-per-Category/td-p/2758871" target="_self"&gt;Better Average per Category&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Weighted-Average-per-Category/td-p/2805460" target="_self"&gt;Better Weighted Average per Category&lt;/A&gt;, &lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Filtered-Value/td-p/2828654" target="_self"&gt;Better Filtered Value&lt;/A&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Sales-from-New-Customers/td-p/2843073" target="_self"&gt;Better Sales from New Customers&lt;/A&gt;, this one starts to tackle some of the time intellignce-based quick measures, Year to Date Total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI's Year to Date Total quick measure returns something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Value YTD = 
TOTALYTD(SUM('Table'[Value]), 'Dates'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;Which may seem great until you try to use it with fiscal calendars and such. A better way:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Better YTD = 
    VAR __Date = MAX('Table'[Date])
    VAR __Year = MAX('Table'[Year])
    VAR __Table = FILTER(ALL('Table'),[Date] &amp;lt;= __Date &amp;amp;&amp;amp; [Year] = __Year)
RETURN
    SUMX(__Table,[Value])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Watch the video!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;div data-video-id="https://youtu.be/LL_CDYFtgz8" data-video-remote-vid="https://youtu.be/LL_CDYFtgz8" class="lia-video-container lia-media-is-center lia-media-size-medium"&gt;&lt;iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLL_CDYFtgz8%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLL_CDYFtgz8&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLL_CDYFtgz8%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" allowfullscreen="" style="max-width: 100%"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiOTAxMjFlNDYtNTgxMy00ZDRiLWI3NzMtZWI0NjI2MDQ2MjQ5IiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 21:40:30 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-10-31T21:40:30Z</dc:date>
    <item>
      <title>Better Year to Date Total</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/2875532#M908</link>
      <description>&lt;P&gt;Continuing with exploring alternatives to Power BI's default quick measures that don't involve the CALCULATE function, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Running-Total/td-p/2755666" target="_self"&gt;Better Running Total&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Average-per-Category/td-p/2758871" target="_self"&gt;Better Average per Category&lt;/A&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Weighted-Average-per-Category/td-p/2805460" target="_self"&gt;Better Weighted Average per Category&lt;/A&gt;, &lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Filtered-Value/td-p/2828654" target="_self"&gt;Better Filtered Value&lt;/A&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Better-Sales-from-New-Customers/td-p/2843073" target="_self"&gt;Better Sales from New Customers&lt;/A&gt;, this one starts to tackle some of the time intellignce-based quick measures, Year to Date Total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI's Year to Date Total quick measure returns something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Value YTD = 
TOTALYTD(SUM('Table'[Value]), 'Dates'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;Which may seem great until you try to use it with fiscal calendars and such. A better way:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Better YTD = 
    VAR __Date = MAX('Table'[Date])
    VAR __Year = MAX('Table'[Year])
    VAR __Table = FILTER(ALL('Table'),[Date] &amp;lt;= __Date &amp;amp;&amp;amp; [Year] = __Year)
RETURN
    SUMX(__Table,[Value])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Watch the video!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;div data-video-id="https://youtu.be/LL_CDYFtgz8" data-video-remote-vid="https://youtu.be/LL_CDYFtgz8" class="lia-video-container lia-media-is-center lia-media-size-medium"&gt;&lt;iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLL_CDYFtgz8%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLL_CDYFtgz8&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLL_CDYFtgz8%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" allowfullscreen="" style="max-width: 100%"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiOTAxMjFlNDYtNTgxMy00ZDRiLWI3NzMtZWI0NjI2MDQ2MjQ5IiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 21:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/2875532#M908</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-31T21:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Better Year to Date Total</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/3526033#M1027</link>
      <description>&lt;P&gt;Greg, Love the video, super easy to follow but I can't seem to get the Better YTD total formula to filter my data which are located on a different table then the calendar master which has the dates.&amp;nbsp; I think my calendar table doesn't want to recognize my "year" column as a date because I'm limited to formatting it as either text or a whole number in my calendar table. When I try to change the data type to date it changes all the values to 1905 Any thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 17:56:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Year-to-Date-Total/m-p/3526033#M1027</guid>
      <dc:creator>pete_x_fox</dc:creator>
      <dc:date>2023-11-09T17:56:42Z</dc:date>
    </item>
  </channel>
</rss>

