<?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: Custom Current &amp;amp; Previous week Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/1999949#M82817</link>
    <description>&lt;P&gt;&lt;BR /&gt;Test:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Week, salesAmt, Item&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1000, p1&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,254,p1&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,345, p1&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1630, p2&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,294,p2&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,845, p2&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1050, p3&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,654,p3&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,545, p3&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Load *&lt;BR /&gt;,Previous(salesAmt) as PreviousSales&lt;/P&gt;
&lt;P&gt;Resident Test order by Item,Week;&lt;/P&gt;
&lt;P&gt;Drop table Test;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IamBack_0-1667462514892.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92791i4C3862E1BBFB513C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IamBack_0-1667462514892.png" alt="IamBack_0-1667462514892.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see the attached file&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 08:01:53 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2022-11-03T08:01:53Z</dc:date>
    <item>
      <title>Custom Current &amp; Previous week Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/1999811#M82803</link>
      <description>&lt;P&gt;I should implement a requirement using transaction date In Qlikview , can someone assist here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let say weekly analysis to be presented with week format as weekstart (date) &amp;amp;'-'&amp;amp; weekend (date ) i.e.&amp;nbsp; 1/1/2022 - 1/7/2022 , 1/8/2022 - 1/14/2022 , 1/15/2022 - 1/21/2022 ... in a filter and that should&amp;nbsp; display the data Accordingly.&lt;/P&gt;
&lt;P&gt;In a chart show product wise | current week sales | Previous week Sales .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:- week format should be as weekstart&amp;amp; weekend as shown below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week,&amp;nbsp; salesAmt,&amp;nbsp; Item&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1000, p1&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,254,p1&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,345, p1&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1630, p2&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,294,p2&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,845, p2&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1050, p3&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,654,p3&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,545, p3&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 02:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/1999811#M82803</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2022-11-03T02:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Current &amp; Previous week Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/1999949#M82817</link>
      <description>&lt;P&gt;&lt;BR /&gt;Test:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Week, salesAmt, Item&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1000, p1&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,254,p1&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,345, p1&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1630, p2&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,294,p2&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,845, p2&lt;/P&gt;
&lt;P&gt;1/1/2022 - 1/7/2022 , 1050, p3&lt;/P&gt;
&lt;P&gt;1/8/2022 - 1/14/2022 ,654,p3&lt;/P&gt;
&lt;P&gt;1/15/2022 - 1/21/2022,545, p3&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Load *&lt;BR /&gt;,Previous(salesAmt) as PreviousSales&lt;/P&gt;
&lt;P&gt;Resident Test order by Item,Week;&lt;/P&gt;
&lt;P&gt;Drop table Test;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IamBack_0-1667462514892.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92791i4C3862E1BBFB513C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IamBack_0-1667462514892.png" alt="IamBack_0-1667462514892.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see the attached file&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 08:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/1999949#M82817</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-11-03T08:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Current &amp; Previous week Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/2001369#M82939</link>
      <description>&lt;P&gt;Hi sunil...&amp;nbsp; Thanks for your response.&lt;/P&gt;
&lt;P&gt;Actually my requirement is not like you have shared.&lt;/P&gt;
&lt;P&gt;Let say my table should be displayed with Data as below posted sample data&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Product|Currentweeksales|PreviousWeeksales&amp;nbsp; X,&amp;nbsp; 10, 6&lt;/P&gt;
&lt;P&gt;Y, 6,7&lt;/P&gt;
&lt;P&gt;Z, 8,9&lt;/P&gt;
&lt;P&gt;Now assume current week is 40th &amp;amp; previous week is 39th.&lt;/P&gt;
&lt;P&gt;If I filter data that should dynamically filter the data accordingly.&lt;/P&gt;
&lt;P&gt;In general we go for set expressions followed by for current &amp;amp; Previous as shown&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current = Sum({&amp;lt;weeknumber={ ' $(=max( weeknumber) )'}&amp;gt;}sales )&lt;/P&gt;
&lt;P&gt;Store variable as vPrevWeek= Max( Weeknumber)-1&lt;/P&gt;
&lt;P&gt;Previous =Sum({&amp;lt;weeknumber={ ' $(=max( wvPrevWeek) )'}&amp;gt;}sales )&lt;/P&gt;
&lt;P&gt;While there is a filter provided for weeknumber data as&amp;nbsp; 40,39,38,37 ...&lt;/P&gt;
&lt;P&gt;Now in my case user asked to enhance the filter with start date &amp;amp; end date of week in one filter to apply the filter accordingly while I did that by doing work around like&amp;nbsp; weekstart ( Trandate )&amp;amp;"-"weekend(Tran date ) As weekrange in back-end script. While I use this as a filter in front end this is not filtering data for previous week&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same time I'm good with set expression using weeknumber but not using week filter as startdate&amp;amp;' '&amp;amp;enddate&amp;nbsp; (d/m/y ) format&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1/1/2022-1/7/2022&lt;/P&gt;
&lt;P&gt;1/8/2022-1/14/2022&lt;/P&gt;
&lt;P&gt;1/15/2022-1/21/022&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you got my&amp;nbsp; expectation .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Current-amp-Previous-week-Analysis/m-p/2001369#M82939</guid>
      <dc:creator>kakani87</dc:creator>
      <dc:date>2022-11-07T18:30:10Z</dc:date>
    </item>
  </channel>
</rss>

