<?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 Count previous week in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784785#M61173</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a simple app where i want to count number of tickets for previous week.&lt;/P&gt;&lt;P&gt;However it doesn't work. Previous week is not correct and the count of tickets is for the whole period, not for prev week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year(Today())&amp;amp;'-'&amp;amp;Week(today()-7,'WW') as PreviosWeek&lt;/P&gt;&lt;P&gt;(Count( wor_ticket_ID))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stekol61_0-1614005455259.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49569iFE85D5716FED5674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stekol61_0-1614005455259.png" alt="stekol61_0-1614005455259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 14:58:52 GMT</pubDate>
    <dc:creator>stekol61</dc:creator>
    <dc:date>2021-02-22T14:58:52Z</dc:date>
    <item>
      <title>Count previous week</title>
      <link>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784785#M61173</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a simple app where i want to count number of tickets for previous week.&lt;/P&gt;&lt;P&gt;However it doesn't work. Previous week is not correct and the count of tickets is for the whole period, not for prev week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year(Today())&amp;amp;'-'&amp;amp;Week(today()-7,'WW') as PreviosWeek&lt;/P&gt;&lt;P&gt;(Count( wor_ticket_ID))&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stekol61_0-1614005455259.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49569iFE85D5716FED5674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stekol61_0-1614005455259.png" alt="stekol61_0-1614005455259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 14:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784785#M61173</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2021-02-22T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count previous week</title>
      <link>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784812#M61175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You probably want either an IF statement or a piece of set analysis on your count that either refers to the date that is associated with each ticket or to a calendar, depending on how complicated your previous week is to calculate.&lt;/P&gt;&lt;P&gt;What is the date field called?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784812#M61175</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-02-22T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count previous week</title>
      <link>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784843#M61178</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Previous week is calculated as above:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Year(Today())&amp;amp;'-'&amp;amp;Week(today()-7,'WW') as PreviosWeek&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784843#M61178</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2021-02-22T16:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count previous week</title>
      <link>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784846#M61179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not sure how that would handle first week of the year. When you say previous week, do you mean the last 7 days, or, the last set of seven days forming a week (so on a Monday to Sunday basis previous week is 15th-21st inclusive given today is 22nd, and would remain as that until next monday when this week becomes previous week).&lt;/P&gt;&lt;P&gt;But more fundamentally how do you know that a ticket is to be counted in the previous week? So I imagine it has a field something like 'TicketDate' or 'OrderDate' (or just 'Date') which you need to work out is in the previous week to then count wor_ticket_ID for those.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 17:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-previous-week/m-p/1784846#M61179</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-02-22T17:01:19Z</dc:date>
    </item>
  </channel>
</rss>

