<?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: YTD calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3016604#M102458</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490510" data-lia-user-login="nanacobsbs" class="lia-mention lia-mention-user"&gt;nanacobsbs&lt;/a&gt; , Assuming Actual is a measure &lt;/P&gt;
&lt;P&gt;You new measure should be . else you have to use sum( [Actual TTL])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual YTD = CALCULATE( [Actual TTL],DATESYTD('Calender'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the axis and filter should be on Date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you select one month and want to display more than that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 11:44:06 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-01-12T11:44:06Z</dc:date>
    <item>
      <title>YTD calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3015813#M102406</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;I have a budget control graph as shown below.&lt;/P&gt;&lt;P&gt;The bar graph is the actual YTD and the line graph is the budget YTD.&lt;BR /&gt;The code is as follows.&lt;BR /&gt;Actual YTD = CALCULATE('Budget Control'[Actual TTL],DATESYTD('Calender'[Date]))&lt;/P&gt;&lt;P&gt;I would like to link this graph to a slicer so that when the user selects a single month, the YTD of the bar graph for actual is displayed up to the month selected in the slicer and not beyond.&lt;BR /&gt;But I want the budget YTD to be displayed through December.&lt;BR /&gt;How should the code for the actual YTD be calculated?&lt;/P&gt;&lt;P&gt;Sorry for the rudimentary question, but please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 06:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3015813#M102406</guid>
      <dc:creator>nanacobsbs</dc:creator>
      <dc:date>2023-01-12T06:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3016604#M102458</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490510" data-lia-user-login="nanacobsbs" class="lia-mention lia-mention-user"&gt;nanacobsbs&lt;/a&gt; , Assuming Actual is a measure &lt;/P&gt;
&lt;P&gt;You new measure should be . else you have to use sum( [Actual TTL])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual YTD = CALCULATE( [Actual TTL],DATESYTD('Calender'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the axis and filter should be on Date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you select one month and want to display more than that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 11:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3016604#M102458</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-12T11:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3027793#M103317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490510" data-lia-user-login="nanacobsbs" class="lia-mention lia-mention-user"&gt;nanacobsbs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;P&gt;First duplicat the calendar table for slicer:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then apply the measrue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Actual = IF(MAX('Calendar'[Date])&amp;lt;=MAX('For slicer'[Date]),SUM('Budget Control'[Actual TTL]))

SUM of Budget = IF(MAX('Calendar'[Date])&amp;lt;=MAX('For slicer'[Date]),SUM('Budget Control'[Budget]))&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 06:59:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3027793#M103317</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-01-18T06:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3032673#M103733</link>
      <description>&lt;P&gt;Thank you very much for your help!!&lt;/P&gt;&lt;P&gt;It works!!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 01:11:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3032673#M103733</guid>
      <dc:creator>nanacobsbs</dc:creator>
      <dc:date>2023-01-20T01:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3032674#M103734</link>
      <description>&lt;P&gt;Thank you for your help!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 01:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-calculation/m-p/3032674#M103734</guid>
      <dc:creator>nanacobsbs</dc:creator>
      <dc:date>2023-01-20T01:12:14Z</dc:date>
    </item>
  </channel>
</rss>

