<?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: Year to Date Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553538#M72383</link>
    <description>&lt;P&gt;Yes but those should work if you have date table marked as Date Table with only consequtive date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this next sugestion doesn't work, please send an example pbix file as something seems off.&lt;/P&gt;&lt;P&gt;Total Sales =&amp;nbsp;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cumulative Sales = CALCULATE([Total Sales],&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(ALLSELECTED('Date Table'[Date]),&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Date Table'[Date] &amp;lt;= MAX('Date Table'[Date]))&lt;/P&gt;&lt;P&gt;If you have multiple years you can add IF statement preceding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;= IF('Date Table'[Year] = "2022", FORMULA ABOVE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 17:45:00 GMT</pubDate>
    <dc:creator>Whitewater100</dc:creator>
    <dc:date>2022-06-01T17:45:00Z</dc:date>
    <item>
      <title>Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553441#M72370</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a chart that shows the data of each week as well as the YTD total as it goes through the weeks. Currently my DAX function is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Actuals YTD = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Delivery Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"12/31"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my DAX formula for a calculated column within my data table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The 'Date Table' is a table that I created using a DAX formula to link my all of my dates across the report.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Why isn't my YTD function showing YTD? Even though the quantity is decreasing week over week, the YTD line should still be increasing. If possible, please provide some insight into what I am doing wrong with my YTD function and how I can edit it to get the graph I want. Thank you.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jun 2022 16:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553441#M72370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T16:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553480#M72373</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Your Date Table should ocnnect to your Fact Table [Delivery Date] and then you don't need that column in your measure.&lt;/P&gt;&lt;P&gt;YTD = CALCULATE(&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;), DATESYTD('Date Table'[Date]) or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;YTD = TOTALYTD(SUM(Table1[Quantity]),&amp;nbsp;'Date Table'[Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:01:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553480#M72373</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-06-01T17:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553522#M72380</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;Thank you for your suggestion, but neither of these expressions provided a different visual than shown above. Are there any other ways to calculate year to date?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553522#M72380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553538#M72383</link>
      <description>&lt;P&gt;Yes but those should work if you have date table marked as Date Table with only consequtive date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this next sugestion doesn't work, please send an example pbix file as something seems off.&lt;/P&gt;&lt;P&gt;Total Sales =&amp;nbsp;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cumulative Sales = CALCULATE([Total Sales],&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(ALLSELECTED('Date Table'[Date]),&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Date Table'[Date] &amp;lt;= MAX('Date Table'[Date]))&lt;/P&gt;&lt;P&gt;If you have multiple years you can add IF statement preceding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;= IF('Date Table'[Year] = "2022", FORMULA ABOVE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553538#M72383</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-06-01T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553551#M72386</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I'll attach a file for you. Please see page 2 "YTD". I hope you can mark as solution if this works for you. Thanks&lt;A title="YTD -weekly" href="https://drive.google.com/file/d/1lzi428Xm1DqMPlMOkMjXoYKALkvJxvlv/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1lzi428Xm1DqMPlMOkMjXoYKALkvJxvlv/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sometimes it's tough to compare weekly sales to YTD , especially when the YTD figures dwarf the weekly figures.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553551#M72386</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-06-01T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553906#M72408</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Were you able to check on the solution? Thanks..&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:02:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2553906#M72408</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-06-02T00:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2555729#M72544</link>
      <description>&lt;P&gt;This solution worked for me:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Also, adding YTD on a secondary axis helps solve the problem of YTD dwarfing the actuals.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Jun 2022 14:37:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-to-Date-Graph/m-p/2555729#M72544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T14:37:57Z</dc:date>
    </item>
  </channel>
</rss>

