<?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: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763785#M36936</link>
    <description>&lt;P&gt;Thanks for your reply. This is how the view looking like, may be months gaps are showing up. Where the desired output is to show all last 3 years YTD and current year till week 15 and then continued.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 11:12:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-05T11:12:56Z</dc:date>
    <item>
      <title>Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1762894#M36917</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help in DAX to calculate current year forecast YTD sales to display on Line Chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached the PBIX file with the Date, Sales, Year table.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A title="PBIX file to calculate YTD Forecast Sales for current year " href="https://drive.google.com/file/d/1YFDcWd6CREtfBuqnO-zFqQeNQSwMj1BM/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1YFDcWd6CREtfBuqnO-zFqQeNQSwMj1BM/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see all last three YTD 2018, 2019, 2020 are plotted on the single graph to compare against 2021 YTD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The desired output that i like to achieve is (preferably first), if not then the 2nd optional output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. To calculate current year forecast YTD sales to display on Line Chart. To display a line graph showing sales till current week 15 and Week 16 to 52 with forecast data (need help in creating Forecast DAX). So sales graph line (Orange 2021) must show up to the current week 15 with real data and from week 16 onwards forecast data, which dynamically change from week 16 going forward so on and so forth.&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;2. If the first desired output not possible, can we try this one. Presently the current year YTD sales are only populated up to week 15 because weeks 16 – 52 have not happened yet. From Week 16 2021 sales are flat-lining till week 52. How can I tweak the current DAX to stop at week 15 the 2021 YTD Orange line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be very grateful if you can help me find thr DAX for Forecast for remaning week or else the modify my current DAX to stop at week 15 the 2021 YTD Orange line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 22:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1762894#M36917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-04T22:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763038#M36920</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not open your file because the link asked me to enter a password.&lt;/P&gt;&lt;P&gt;Please provide another link.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 03:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763038#M36920</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-05T03:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763474#M36927</link>
      <description>&lt;P&gt;&lt;A title="Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sal " href="https://drive.google.com/file/d/1KfQfWMP3eKebZoF7R2Xmz6Cce4RXsSKD/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1KfQfWMP3eKebZoF7R2Xmz6Cce4RXsSKD/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this will work - do let me know pls&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763474#M36927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763495#M36928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The link still asks to enter a password.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763495#M36928</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-05T08:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763516#M36929</link>
      <description>&lt;P&gt;Try again, pls.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1YFDcWd6CREtfBuqnO-zFqQeNQSwMj1BM/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1YFDcWd6CREtfBuqnO-zFqQeNQSwMj1BM/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763516#M36929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T08:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763623#M36930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your YTD measure, please try the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SCE YTD $ = IF( not ISBLANK( [SCE_Sales $]), TOTALYTD([SCE_Sales $],'Date'[Date]), BLANK())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then, your VEW ALL measure for 2021 will show until the current value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Apr 2021 09:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763623#M36930</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-05T09:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763785#M36936</link>
      <description>&lt;P&gt;Thanks for your reply. This is how the view looking like, may be months gaps are showing up. Where the desired output is to show all last 3 years YTD and current year till week 15 and then continued.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 11:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763785#M36936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T11:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate current year forecast YTD sales to display on Line Chart to compare All last 3 YTD Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763799#M36937</link>
      <description>&lt;P&gt;Very strange &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, google drive access working at my end. Will send you the screen shot so that you can see the dataset and model overview.&amp;nbsp;&lt;img /&gt;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SCE_Sales $ = SUMX(SCE,SCE[Sales $])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1. SCE YTD $ = TOTALYTD([SCE_Sales $],'Date'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2. View (All Year YTD) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. VAR YearsBack = year(today()) - SELECTEDVALUE('Year'[Year])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE([SCE YTD $],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEADD('Date'[Date], -YearsBack, YEAR)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Used three DAXs and Year TBL as Value from Date Table.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Let me know if you need any more information. Thank&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Apr 2021 11:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-current-year-forecast-YTD-sales-to-display-on-Line/m-p/1763799#M36937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T11:22:12Z</dc:date>
    </item>
  </channel>
</rss>

