<?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 Previous Week Sales Calculation Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193294#M54618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this one.... forgot that Qlikview in SR3 and 4 interprets a date as a number in set analysis... so my solution was to convert the date to a number in the script, then use the new field in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info on the nulls though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 20:40:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-17T20:40:58Z</dc:date>
    <item>
      <title>Previous Week Sales Calculation Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193292#M54616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a really strange issue calculating previous week sales. I've gone through these here forums, tried all relate examples, and nothing. Oddly enough, i can calculate previous year sales no problem. I'm remembering to exclude the year and such in my set analysis. Below is my code, and i'm wondering if anyone sees anything glaringly wrong that i may have missed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;SUM(&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt; [Week Date] = {$( =DATE(ONLY([Week Date])-7) )},&lt;BR /&gt; Year =,&lt;BR /&gt; Month =,&lt;BR /&gt; Quarter =&lt;BR /&gt;&amp;gt;}&lt;BR /&gt; [Qty Sold])&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for any advice/help,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 18:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193292#M54616</guid>
      <dc:creator />
      <dc:date>2010-06-17T18:35:22Z</dc:date>
    </item>
    <item>
      <title>Previous Week Sales Calculation Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193293#M54617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have many [Week Date] for current selection, the only() function will return NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 18:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193293#M54617</guid>
      <dc:creator />
      <dc:date>2010-06-17T18:42:58Z</dc:date>
    </item>
    <item>
      <title>Previous Week Sales Calculation Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193294#M54618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this one.... forgot that Qlikview in SR3 and 4 interprets a date as a number in set analysis... so my solution was to convert the date to a number in the script, then use the new field in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info on the nulls though!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 20:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week-Sales-Calculation-Issue/m-p/193294#M54618</guid>
      <dc:creator />
      <dc:date>2010-06-17T20:40:58Z</dc:date>
    </item>
  </channel>
</rss>

