<?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 current week vs previous week ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072091#M17542</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 show current week and previous week bar in bar chart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the following expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Current Week :&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt; sum({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date)),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date)),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Previous Week:&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;sum({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date),-1),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date),-1),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;but the weekstart() function which i have used starts the week from Sunday to Saturday &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want the week to start from Monday to Sunday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So the expression which i have wrote gives me the wrong output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2016 11:33:26 GMT</pubDate>
    <dc:creator>gauravgg</dc:creator>
    <dc:date>2016-03-25T11:33:26Z</dc:date>
    <item>
      <title>current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072091#M17542</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 show current week and previous week bar in bar chart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the following expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Current Week :&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt; sum({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date)),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date)),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Previous Week:&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;sum({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date),-1),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date),-1),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;but the weekstart() function which i have used starts the week from Sunday to Saturday &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want the week to start from Monday to Sunday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So the expression which i have wrote gives me the wrong output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 11:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072091#M17542</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-03-25T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072092#M17543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Current Week :&lt;/SPAN&gt;&lt;STRONG&gt; S&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&lt;STRONG&gt;um({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date)&lt;SPAN style="color: #ff0000;"&gt;, 0, 0&lt;/SPAN&gt;),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date)&lt;SPAN style="color: #ff0000;"&gt;, 0, 0&lt;/SPAN&gt;),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Previous Week:&lt;/SPAN&gt; &lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&lt;STRONG&gt;um({$&amp;lt;Date={'&amp;gt;=$(=Date(WeekStart(Max(Date),-1&lt;SPAN style="color: #ff0000;"&gt;, 0&lt;/SPAN&gt;),'DD/MM/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max(Date),-1&lt;SPAN style="color: #ff0000;"&gt;, 0&lt;/SPAN&gt;),'DD/MM/YYYY'))'}&amp;gt;}[Order Value])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072092#M17543</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-25T12:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072093#M17544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072093#M17544</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-03-25T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072094#M17545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Sunny answer is correct, please, check it as "Correct Answer"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 13:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072094#M17545</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2016-03-25T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072095#M17546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of this: inweek(), inweektodate()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1072095#M17546</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-03-28T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: current week vs previous week ?</title>
      <link>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1598097#M44218</link>
      <description>&lt;P&gt;i didn't get the answer using inweek() ,inweektodate()&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/current-week-vs-previous-week/m-p/1598097#M44218</guid>
      <dc:creator>raviteja475</dc:creator>
      <dc:date>2019-07-02T12:44:09Z</dc:date>
    </item>
  </channel>
</rss>

