<?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: Pivot table expression based on previous and current week data. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218351#M866797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am trying to over-complicate it to myself for no reason &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I will try with your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 08:02:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-07T08:02:13Z</dc:date>
    <item>
      <title>Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218343#M866789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find the best and easiest method to achieve cross week analysis in pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say we have below data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 289px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="75"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="75"&gt;Project&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="75"&gt;Stage&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;7/12/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Closed&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;30/11/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;In progress&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;7/12/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;In progress&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;30/11/2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;In progress&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to have blow output in pivot table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="107" style="width: 322px; height: 108px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="75"&gt;Date&lt;/TD&gt;&lt;TD width="75"&gt;Amount In progress&lt;/TD&gt;&lt;TD width="75"&gt;Closed amount this week&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;7/12/2016&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;30/11/2016&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So there is one dimension:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Two expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- "Amount in progress" - this I am able to easily calculate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;- "Closed amount this week" - is a real struggle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This should show how much of Cost got Closed this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I must check if project was "in progress" last week and is closed this week.&lt;/P&gt;&lt;P&gt;If yes, I must show the closed amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PS. I can't simply subtract current in progress amount from last weeks, because this is one of many scenarios which i must code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you for the help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218343#M866789</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218344#M866790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per ur output No need to do any additional; check attached file:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218344#M866790</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2016-12-07T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218345#M866791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="In Process.PNG" class="jive-image image-1" src="/legacyfs/online/145840_In Process.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218345#M866791</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2016-12-07T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218346#M866792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;your table it seems that &lt;/P&gt;&lt;P&gt;sum({&amp;lt;Stage={'Closed'}&amp;gt;}Cost) &lt;/P&gt;&lt;P&gt;should work for you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218346#M866792</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-12-07T07:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218347#M866793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but based on your data, you have what was closed this week?&lt;/P&gt;&lt;P&gt;Or on 14/12/2016 will project A still show up as closed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made an assumption that this is the case on your data (hence the complication) and this particular scenario is a good candidate for using the 'previous' function in the load script to make a nice simple flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a QVW but in case you only have personal edition see my working below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14810962708143220" jivemacro_uid="_14810962708143220"&gt;
&lt;P&gt;&lt;STRONG&gt;testdata:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Date,Project,Stage,Cost&lt;/P&gt;
&lt;P&gt;14/12/2016,A,Closed,100&lt;/P&gt;
&lt;P&gt;14/12/2016,B,Closed,200&lt;/P&gt;
&lt;P&gt;07/12/2016,A,Closed,100&lt;/P&gt;
&lt;P&gt;30/11/2016,A,In progress,100&lt;/P&gt;
&lt;P&gt;07/12/2016,B,In progress,200&lt;/P&gt;
&lt;P&gt;30/11/2016,B,In progress,200&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;finaldata:&lt;/P&gt;
&lt;P&gt;LOAD *, if(Project = Previous(Project) and Stage='Closed' and Previous(Stage)='In progress',1,0) as ClosedFlag&lt;/P&gt;
&lt;P&gt;resident testdata&lt;/P&gt;
&lt;P&gt;order by Project,Date asc;&lt;/P&gt;
&lt;P&gt;drop table testdata;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="145841" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145841_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="145842" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/145842_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Formula:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14810963907599075 jive_text_macro" jivemacro_uid="_14810963907599075"&gt;
&lt;P&gt;=sum({&amp;lt;Stage={'In progress'}&amp;gt;}Cost)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14810964270814787 jive_text_macro" jivemacro_uid="_14810964270814787"&gt;
&lt;P&gt;=sum(if(ClosedFlag=1,Cost))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14810964317092160" jivemacro_uid="_14810964317092160"&gt;
&lt;P&gt;=sum({&amp;lt;Stage={'Closed'}&amp;gt;}Cost)&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218347#M866793</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-07T07:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218348#M866794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Thanks for your answers, I think my example is not good enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allow me to state this: I need to precisely base my logic on below criteria:&lt;/P&gt;&lt;P&gt;- sum only if project in previous week was in &lt;STRONG&gt;In progress&lt;/STRONG&gt; stage and this week is in &lt;STRONG&gt;Closed&lt;/STRONG&gt; stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Lets add two more entries:&lt;/STRONG&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 516px;"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Project&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Stage&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;7/12/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Closed&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;30/11/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;In progress&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;7/12/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;In progress&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;30/11/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;In progress&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;7/12/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Closed&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit;" width="129"&gt;30/11/2016&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;Closed&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit;" width="129"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your expression will return 400 instead of 100 which would be correct as per my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned - there are many more stage combinations which I will need to code on separate expressions. &lt;/P&gt;&lt;P&gt;I am looking for some clever way to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218348#M866794</guid>
      <dc:creator />
      <dc:date>2016-12-07T07:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218349#M866795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my solution will work for you then?&lt;/P&gt;&lt;P&gt;I mean if you want to get clever in the front end rather in the&amp;nbsp; script (I always prefer the script) then the above / below before / after formula are probably what you want to work with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8205"&gt;Missing Manual - Before() and After()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145843_Capture.PNG" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218349#M866795</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-07T07:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218350#M866796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your assumption is correct.&amp;nbsp; This is basically how I wanted to do this, but was thinking it is not the best way to start with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still thinking how this can be done using set analysis (and if it can be done using it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, this helps. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218350#M866796</guid>
      <dc:creator />
      <dc:date>2016-12-07T07:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218351#M866797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am trying to over-complicate it to myself for no reason &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I will try with your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218351#M866797</guid>
      <dc:creator />
      <dc:date>2016-12-07T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table expression based on previous and current week data.</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218352#M866798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am exactly the same don't worry, my mind always goes to set analysis first but often we can make a much simpler and more responsive app with a little script trickery &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-expression-based-on-previous-and-current-week-data/m-p/1218352#M866798</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-07T08:04:43Z</dc:date>
    </item>
  </channel>
</rss>

