<?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: How do I write an expression utilizing the current week number? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494182#M1147892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to just calculate the weekly average of sales(not the evolution), you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sales)/Week(Date(Today))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 13:39:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-14T13:39:46Z</dc:date>
    <item>
      <title>How do I write an expression utilizing the current week number?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494181#M1147891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create an expression that calculates the average weekly sales of a product.&amp;nbsp; I have the total of sales, but can't see how automatically include the current week number as a differential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the 'average' function, but this just averages the total number of entries - there will be more than one entry per week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the current day to identify the current week, and then use that in the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494181#M1147891</guid>
      <dc:creator>ljackson</dc:creator>
      <dc:date>2013-08-14T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write an expression utilizing the current week number?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494182#M1147892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to just calculate the weekly average of sales(not the evolution), you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sales)/Week(Date(Today))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494182#M1147892</guid>
      <dc:creator />
      <dc:date>2013-08-14T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write an expression utilizing the current week number?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494183#M1147893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;week(today()) will return the week number of today. So perhaps sum(Sales)/week(today()) is what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494183#M1147893</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-14T14:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write an expression utilizing the current week number?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494184#M1147894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that worked a treat!&amp;nbsp; &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, 14 Aug 2013 14:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-write-an-expression-utilizing-the-current-week-number/m-p/494184#M1147894</guid>
      <dc:creator>ljackson</dc:creator>
      <dc:date>2013-08-14T14:47:19Z</dc:date>
    </item>
  </channel>
</rss>

