<?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: Using InWeek with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646330#M474620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad - I will use your logics &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 15:18:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-09T15:18:33Z</dc:date>
    <item>
      <title>Using InWeek with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646326#M474616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible please to use set analysis with the function 'inweek' ? i.e. I have this to convert ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if ( inweek (MyTxnDate, today(2), -52 and DayOfWeek=Mon, Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........so the 'DayOfWeek=Mon' converts to set analysis easy enough, but when I try to convert the inweek, any syntax I use throws up an error. I am trying to convert as the calculation currently is so sloooooowwwww.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 10:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646326#M474616</guid>
      <dc:creator />
      <dc:date>2014-09-08T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using InWeek with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646327#M474617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you're missing a ) parentheses. But I would suggest you save yourself a lot of headaches and just create a variable. Looks like you're trying to get the Monday that occurred 52 weeks ago. Something like this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRelevantSalesDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=weekstart(today(2)-52*7))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MyTxnDate={'$(vRelevantSalesDate)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 17:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646327#M474617</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-09-08T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using InWeek with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646328#M474618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou - your formulae would indeed for just the monday, but then if I need the whole week i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if ( inweek (MyTxnDate, today(2), -52), Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. you are not aware of a 'set analysis' logic that could work with this please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 10:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646328#M474618</guid>
      <dc:creator />
      <dc:date>2014-09-09T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using InWeek with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646329#M474619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make a start and end date variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRelevantSalesStartDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=weekstart(today(2)-52*7))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRelevantSalesEndDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=weekend(today(2)-52*7))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MyTxnDate={"&amp;gt;=$(vRelevantSalesStartDate)&amp;lt;=$(vRelevantSalesEndDate)"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure of the exact "Monday" complexities that you need to include, but whatever you need to do can just be done in these 2 variables. That's why using variables with date set analysis is so nice--saves you a lot of work with maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 14:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646329#M474619</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-09-09T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using InWeek with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646330#M474620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad - I will use your logics &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 15:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-InWeek-with-set-analysis/m-p/646330#M474620</guid>
      <dc:creator />
      <dc:date>2014-09-09T15:18:33Z</dc:date>
    </item>
  </channel>
</rss>

