<?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: Current week Vs Previous week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083421#M360815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have closed dates as only one date that to Wednesday every week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 05:07:47 GMT</pubDate>
    <dc:creator>pavanqlik</dc:creator>
    <dc:date>2016-02-23T05:07:47Z</dc:date>
    <item>
      <title>Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083416#M360810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a scenario, where i had a closed date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am taking week from close date. when a user click on w32 in list box, i need to see columns in staright table with w32 current week and w31 previous week of same year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select w1 of 2014 , then i need to see two columns with W1 2014 as one and W52 2013 as second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing sum of sales for Current and Previous week across Account Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in getting the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083416#M360810</guid>
      <dc:creator>pavanqlik</dc:creator>
      <dc:date>2016-02-22T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083417#M360811</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;Create a week from Date using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week(Date) as Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also have Year field created from Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below Expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sum(Sales)&amp;nbsp;&amp;nbsp; ---- For elected Week.&lt;/P&gt;&lt;P&gt;2. Sum({&amp;lt;Week = {"$(=week(max(Date)-7))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 10:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083417#M360811</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-02-22T10:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083418#M360812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a sequential field counting the weeks in your master calendar, maybe using autonumber(), then use this field in your set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar:&amp;nbsp; //DateField input records come in sorted asc&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(Weekstart(DateField), 'Week') as WeekNoSeq,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;WeekNoSeq = {'$(=Max(WeekNoSeq))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;WeekNoSeq = {'$(=Max(WeekNoSeq)-1)'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 10:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083418#M360812</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-22T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083419#M360813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it,but WeekNoSql is not coming in order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 12:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083419#M360813</guid>
      <dc:creator>pavanqlik</dc:creator>
      <dc:date>2016-02-22T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083420#M360814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might depend on the way you create your DateField.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to create a sequential order independent from load order of DatField using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Div(WeekStart( DateField), 7)&lt;/STRONG&gt; as WeekNoSeq,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 13:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083420#M360814</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-22T13:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083421#M360815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have closed dates as only one date that to Wednesday every week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 05:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083421#M360815</guid>
      <dc:creator>pavanqlik</dc:creator>
      <dc:date>2016-02-23T05:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083422#M360816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might be helpful for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9162"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9144"&gt;Set Analysis for Rolling Periods&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 05:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083422#M360816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T05:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083423#M360817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 05:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083423#M360817</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-02-23T05:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083424#M360818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be like this,&lt;/P&gt;&lt;P&gt;I have taken a sample data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Variable,&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14562096080854141 jive_text_macro" jivemacro_uid="_14562096080854141"&gt;
&lt;P&gt;&lt;STRONG&gt;=max({&amp;lt;Flag={'week'} , Year={'$(=Max(Year))'} &amp;gt;}Week)&lt;/STRONG&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In straight Table,&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1456209635620489" jivemacro_uid="_1456209635620489"&gt;
&lt;P&gt;=IF( vWeek=1,(Sum({&amp;lt;Flag={'week'} , Year={'$(=Max(Year))'},Week={$(=vWeek)}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Flag={'week'} , Year={'$(=Max(Year)-1)'},Week={53}&amp;gt;}Sales)),&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;(Sum({&amp;lt;Flag={'week'} , Year={'$(=Max(Year))'},Week={$(=vWeek)}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Flag={'week'} , Year={'$(=Max(Year))'},Week={$(=vWeek-1)}&amp;gt;}Sales))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="115580" alt="Week-PreviousYear-206454.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115580_Week-PreviousYear-206454.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There by ,When you select week 1 , condition is set to pick previous year max(Week) and if other means 2 weeks current and previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 06:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083424#M360818</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-23T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083425#M360819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this links for similar type of expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="9162" data-objecttype="102" href="https://community.qlik.com/docs/DOC-9162" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="9144" data-objecttype="102" href="https://community.qlik.com/docs/DOC-9144" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Set Analysis for Rolling Periods&lt;/A&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regarsd,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Jagan.&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="980486" data-object-type="2" href="https://community.qlik.com/thread/206454" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Current week Vs Previous week&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083425#M360819</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-23T07:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083426#M360820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have closed dates as only one date that to Wednesday every week.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This should work also with only a date record per week. Didn't it work using Div() function and Weekstart()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just take care to clear selections in calendar field when querying the previous week, to avoid incompatible set assignments. So when the user may select in CloseDate, you need to clear field CloseDate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;WeekNoSeq = {'$(=Max(WeekNoSeq)-1)'},CloseDate= &amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and all other calendar fields that the user may select in.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083426#M360820</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083427#M360821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think we have to use CEIL function as well, like bellow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ceil(WeekStart(Date_Field)/7) as WeekSeq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ceil(Weekstart(Date#('1900-1-1','YYYY-MM-DD'))/7)&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;returns&lt;STRONG&gt; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DIV(Weekstart(Date#('1900-1-1','YYYY-MM-DD')),7)&amp;nbsp; returns 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083427#M360821</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-23T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083428#M360822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe there is just a constant offset of 1 for all weeks between these two functions. Doesn't really matter IMO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 10:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083428#M360822</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T10:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083429#M360823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to generate seqnumber correctly, but when i am writing expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Sum({&amp;lt;WeekNoSeq = {'$(=Max(WeekNoSeq)-1)'},CloseDate= &amp;gt;}Sales) for prev week its not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using single quotes in expression its not working , but when i removed its working fine but am having a issue here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select Year,Quarter and Week filters in my dashboard i am able to see current week information in st table but prev week is showing as 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i unselect week selection and when i make selection in seqnumber list box iam able to see both current week and prev week in st table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 12:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083429#M360823</guid>
      <dc:creator>pavanqlik</dc:creator>
      <dc:date>2016-02-23T12:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083430#M360824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I tried to explain above, you need to take care the the field modifications made in the set expression are compatible with user selections. If you make selections in field Week, this selection will be incompatible with a field modifier trying to select the previous WeekNoSeq. Hence you need to clear the user selections in calendar fields in the set expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Sum({&amp;lt;WeekNoSeq = {'$(=Max(WeekNoSeq)-1)'},CloseDate=, Week=, Year=, Quarter= &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: 13.3333px;"&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: 13.3333px;"&gt;[add more calendar fields as required.]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1083430#M360824</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-23T20:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Current week Vs Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1654997#M448158</link>
      <description>&lt;P&gt;Hi, I have simmilar problem due to values from the previous week in reference to the next (not current, as I have future data)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to display value from the previous week in each column,&amp;nbsp; details in the picture&lt;/P&gt;&lt;P&gt;The week format is 'YY-WW', but i also added autonumbering. As far I tried to do that with set anylysis like&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({ &amp;lt;master_calendar_week= { '$(vPreviousWeek)' }&amp;gt;} [Wartość])&amp;nbsp; where&amp;nbsp;vPreviousWeek =Right(year(imputationDate),2)&amp;amp;'-'&amp;amp;(week(imputationDate)-1)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[master_calendar_week_Flag]={"$(=([master_calendar_week_Flag]-1))"}&amp;gt;} [Wartość])&amp;nbsp; where master_calendar_week is autonumbered week&amp;nbsp;&lt;/P&gt;&lt;P&gt;but both of them don't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only formula which work it is:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[master_calendar_week_Flag]={"$(=max([master_calendar_week_Flag]-1))"}&amp;gt;} [Wartość])&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it displays value for max week-1 correctly, but only for this one and affect other measures.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me with that&amp;nbsp; one, please?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 12:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-week-Vs-Previous-week/m-p/1654997#M448158</guid>
      <dc:creator>natalia_sterniak</dc:creator>
      <dc:date>2019-12-06T12:48:55Z</dc:date>
    </item>
  </channel>
</rss>

