<?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: Sum the total sales for every 12 weeks in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709735#M166261</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22847"&gt;@stj1120&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were right, I thought you wanted to create groups of 12 weeks and then sum. Now it's clear, I have amended the workflow to only sum the values for the next 12 weeks from the current week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelosPachis_0-1611764940521.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/167405i04D1E5837F8062B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelosPachis_0-1611764940521.png" alt="AngelosPachis_0-1611764940521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that worked for you please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Angelos&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 16:29:26 GMT</pubDate>
    <dc:creator>AngelosPachis</dc:creator>
    <dc:date>2021-01-27T16:29:26Z</dc:date>
    <item>
      <title>Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708094#M165756</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in calculating the sum of sales for every 12 weeks per each Material.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say, this is week 4 and it should sum the sales values of each material for the next 11 weeks&amp;nbsp;until week 16 along with week 4 which will be total 12 weeks. If we are in week 5 then it should sum the sales values from week 5 to week 17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we calculate this dynamically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Teja.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 07:18:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708094#M165756</guid>
      <dc:creator>stj1120</dc:creator>
      <dc:date>2021-01-23T07:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708097#M165757</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22847"&gt;@stj1120&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Assume the first week in your file is the start week.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0123-sreenivasateja.PNG" style="width: 439px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/166811i7B7282E142681B97/image-size/large?v=v2&amp;amp;px=999" role="button" title="0123-sreenivasateja.PNG" alt="0123-sreenivasateja.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 08:24:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708097#M165757</guid>
      <dc:creator>Qiu</dc:creator>
      <dc:date>2021-01-23T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708103#M165758</link>
      <description>&lt;P&gt;Hi Teja (&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22847"&gt;@stj1120&lt;/a&gt;&amp;nbsp;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a workflow that I think answers your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelosPachis_1-1611393225247.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/166814i9639B982592E3996/image-size/large?v=v2&amp;amp;px=999" role="button" title="AngelosPachis_1-1611393225247.png" alt="AngelosPachis_1-1611393225247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What the workflow does, in the first formula tool, you convert the Inventory week from a yyyyww format to an actual date and then you dynamically check at which inventory week we are currently at.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in the multi-row formula tool, for each Material Number, you are counting how many weeks are left in the future in your dataset; Note that this count won't restart at the end of the year, because I wasn't sure if that was a requirement. However, if you want the week count to restart for every Material Number and year, you can group it on "Matno" and "Monday start of year".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then it was just a matter of grouping the different weeks together in groups of 12 and summing as necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the results, Null "Groups of weeks" mean that these weeks are in the past. I have also added the first and last date for each group, thought that would be useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Angelos&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 09:15:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/708103#M165758</guid>
      <dc:creator>AngelosPachis</dc:creator>
      <dc:date>2021-01-23T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709510#M166179</link>
      <description>&lt;P&gt;Any updates on this&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22847"&gt;@stj1120&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 06:56:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709510#M166179</guid>
      <dc:creator>AngelosPachis</dc:creator>
      <dc:date>2021-01-27T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709715#M166251</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/128851"&gt;@AngelosPachis&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/96723"&gt;@Qiu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the delay response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your work. But somehow, the solution is not appropriate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We should only sum the Sales based on each material from the Current week to until next 11 weeks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say this is week 4. So it should sum the sales based on each material from week 4 to week 15 and again when the flow runs in&amp;nbsp; week 5 it should sum the sales values from week 5 to week 16.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like wise, it has to sum the sales value for each material considering every current week and its value for the next 11 weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you understand what I said above. I have been trying but, no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me with the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Teja.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:52:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709715#M166251</guid>
      <dc:creator>stj1120</dc:creator>
      <dc:date>2021-01-27T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the total sales for every 12 weeks</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709735#M166261</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/22847"&gt;@stj1120&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were right, I thought you wanted to create groups of 12 weeks and then sum. Now it's clear, I have amended the workflow to only sum the values for the next 12 weeks from the current week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelosPachis_0-1611764940521.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/167405i04D1E5837F8062B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelosPachis_0-1611764940521.png" alt="AngelosPachis_0-1611764940521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that worked for you please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Angelos&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 16:29:26 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Sum-the-total-sales-for-every-12-weeks/m-p/709735#M166261</guid>
      <dc:creator>AngelosPachis</dc:creator>
      <dc:date>2021-01-27T16:29:26Z</dc:date>
    </item>
  </channel>
</rss>

