<?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 sales for last 4 weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5275#M791937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate sales for last weeks excluding last 28 days excluding saturday sunday.&lt;/P&gt;&lt;P&gt;Can any one help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>manu1512</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>sales for last 4 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5275#M791937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate sales for last weeks excluding last 28 days excluding saturday sunday.&lt;/P&gt;&lt;P&gt;Can any one help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5275#M791937</guid>
      <dc:creator>manu1512</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sales for last 4 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5276#M791938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you elaborate more with an example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where do you want to use this expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you want to use a set analysis for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share a screenshot of your data model ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5276#M791938</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-01-23T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: sales for last 4 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5277#M791939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekDay(DateField) as WeekDay,&lt;/P&gt;&lt;P&gt;Week(DateField) as Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then Set analysis should&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Week = {"&amp;gt;=$(=Max(Week)-4)&amp;lt;=$(=Max(Week))"}, WeekDay -= {'Sat','Sun'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5277#M791939</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-23T09:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: sales for last 4 weeks</title>
      <link>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5278#M791941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This will give you the last 28 days:&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;Date={"$(=max(Date)-28)"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then you need to find a way to exclude weekends. This is anything where the WeekDay function returns &amp;lt;5 (this runs from 0=Monday to 6= Sunday)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;so you could add this to your set analysis: WeekDay(YourDateField)*1&amp;lt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(the *1 is to force the result to be numeric)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-for-last-4-weeks/m-p/5278#M791941</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2018-01-23T09:31:38Z</dc:date>
    </item>
  </channel>
</rss>

