<?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 Total sales quantity for last complete week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307129#M1199920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any thoughts on this please??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 10:42:25 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2011-02-21T10:42:25Z</dc:date>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307128#M1199919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get the total sales qty for the last COMPLETE week.&lt;/P&gt;&lt;P&gt;The week being MONDAY to SUNDAY.&lt;/P&gt;&lt;P&gt;So if i were looking at the application on a FRIDAY then i will see sales quantities for the previous week (MON to SUN).&lt;/P&gt;&lt;P&gt;Is this easy to do? It would probably be achieved using SET ANALYSIS but i am not very good at SET ANALYSIS at the moment!&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 17:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307128#M1199919</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-18T17:09:35Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307129#M1199920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any thoughts on this please??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307129#M1199920</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-21T10:42:25Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307130#M1199921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anything like this?&lt;/P&gt;&lt;P&gt;= SUM(IF(DateSale &amp;gt;= WEEKSTART(TODAY() - 7) AND DateSale &amp;lt;= WEEKEND(TODAY() - 7), Amount, 0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307130#M1199921</guid>
      <dc:creator />
      <dc:date>2011-02-21T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307131#M1199922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply..&lt;/P&gt;&lt;P&gt;this is your example (but with my fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(IF(StoreDate &amp;gt;= WEEKSTART(TODAY() - 7) AND StoreDate &amp;lt;= WEEKEND(TODAY() - 7), SalesQuantity &lt;P&gt;, 0))&lt;/P&gt;&lt;P&gt;Unfortunately this brings back all zero's.&lt;/P&gt;&lt;P&gt;Am i doing something wrong?&lt;/P&gt;&lt;P&gt;Also, will this display the sales quantity from MONDAY to SUNDAY?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307131#M1199922</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-21T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307132#M1199923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WEEKSTART(date) returns the date for monday for the given date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;WEEKEND(date) returns the date for sundayfor the given date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to explain further, are you using StoreDate as a Dimension?&lt;/P&gt;&lt;P&gt;Send an example of how it should look.&lt;/P&gt;&lt;P&gt;If you put this in a text obejct it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= SUM(IF(StoreDate &amp;gt;= WEEKSTART(TODAY() - 7) AND StoreDate &amp;lt;= WEEKEND(TODAY() - 7), SalesQuantity, 0))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 12:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307132#M1199923</guid>
      <dc:creator />
      <dc:date>2011-02-21T12:16:04Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307133#M1199924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attached is how i want it to look. The last column is the column i am trying to create. It should display sales for the previous week, so QLIKVIEW will need to know that the week starts on a MONDAY and end on a SUNDAY.&lt;/P&gt;&lt;P&gt;If i am looking at the application Tomoorow (22/02/11), the last colum should display the sales quantity for the last completed week (14/02/11-20/02/11)&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;P&gt;The expression from your post is only displaying '0' (in a text box)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 12:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307133#M1199924</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-21T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307134#M1199925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that you use the date as a dimension. This limits you to the data shown for each row.&lt;/P&gt;&lt;P&gt;There are various solutions for this:&lt;/P&gt;&lt;P&gt;1. Create the value when loading the data (subselect sum for each combination of the diemnsions)&lt;/P&gt;&lt;P&gt;2. Take in the data 2 times, linking it on the diemnsions exept date&lt;/P&gt;&lt;P&gt;3. Something like this: &lt;A href="http://community.qlik.com/forums/t/36446.aspx"&gt;http://community.qlik.com/forums/t/36446.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 13:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307134#M1199925</guid>
      <dc:creator />
      <dc:date>2011-02-21T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307135#M1199926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am confused on why it causes a problem with me using it as a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i not use set analysis to look at the sales per product by week number -1 (Which should give last week)&lt;/P&gt;&lt;P&gt;If yes, then can someone help me on how to write it please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 14:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307135#M1199926</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-21T14:38:34Z</dc:date>
    </item>
    <item>
      <title>Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307136#M1199927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any more help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 17:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307136#M1199927</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-02-21T17:51:20Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Total sales quantity for last complete week</title>
      <link>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307137#M1199928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Set analysis is not so difficult, in this example you get allways the Sum(Sales) kumulated from 1. day of year until last week (month, warter or year):&lt;/P&gt;&lt;P&gt;I have fields: Week, Month, NumMonth (numeric), Quarter and Year&lt;/P&gt;&lt;P&gt;and variables: varPreWeek "=(Only(Week)-1)", varPreQuarter "=(Only(Qarter)-1)", varPreMonth "=(Only(NumMonth)-1)" and&lt;BR /&gt;varPreYear "=Only(Year)-1)"&lt;/P&gt;&lt;P&gt;The user can select in the fields Week, Month, Quarter and Year&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(Week)=1 And GetSelectedCount(Year)=1,&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;lt;=$(varPreYear)"},Week=&amp;gt;} Sales)+&lt;BR /&gt;Sum({&amp;lt;Week={"&amp;lt;=$(vPreWeek)"}&amp;gt;} Sales),&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(Month)=1 And GetSelectedCount(Year)=1,&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;lt;=$(varPreYear)"},Month=,Week=&amp;gt;} Sales)+&lt;BR /&gt;Sum({&amp;lt;Month+={"&amp;lt;=$(varPreMonth)"}&amp;gt;} Sales),&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(Quarter)=1 And GetSelectedCount(Year)=1,&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;lt;=$(varPreYear)"},Quarter=,Month=,Week=&amp;gt;} Sales)+&lt;BR /&gt;Sum({&amp;lt;Quarter+={"&amp;lt;=$(varPreQuarter)"}&amp;gt;} Sales),&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(Year)=1,&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;lt;=$(varPreYearSel)"}&amp;gt;} Sales),&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;lt;=$(varPreYear)"}&amp;gt;} Sales)))))&lt;/P&gt;&lt;P&gt;sum(sales) of last week only: Sum({&amp;lt;Week={$(=Only(Week-1)}&amp;gt;} Sales),&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 18:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-sales-quantity-for-last-complete-week/m-p/307137#M1199928</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-02-21T18:05:08Z</dc:date>
    </item>
  </channel>
</rss>

