<?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 Problem with week numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445629#M1160551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table which i am forcasting figures for 10 weeks. &lt;/P&gt;&lt;P&gt;I have a seperate calendar for my weekly forcast and i have set up variables for the 10 weeks. i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWeekSelection = ForecastCal_Week&lt;/P&gt;&lt;P&gt;vWeekSelection+1 = ForecastCal_Week+1&lt;/P&gt;&lt;P&gt;vWeekSelection+2 = ForecastCal_Week+2&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem i am having is with the expression labels of the chart. &lt;/P&gt;&lt;P&gt;for each label i am using the variable. &lt;/P&gt;&lt;P&gt;so if i select the current week (46), i get the correct week numbers up to 52, but then the next expression lable is showing 53 when i want it to go back to 1&lt;/P&gt;&lt;P&gt;Does anyone know what i can do to correct this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25297" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25297_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 11:41:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-19T11:41:37Z</dc:date>
    <item>
      <title>Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445629#M1160551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table which i am forcasting figures for 10 weeks. &lt;/P&gt;&lt;P&gt;I have a seperate calendar for my weekly forcast and i have set up variables for the 10 weeks. i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWeekSelection = ForecastCal_Week&lt;/P&gt;&lt;P&gt;vWeekSelection+1 = ForecastCal_Week+1&lt;/P&gt;&lt;P&gt;vWeekSelection+2 = ForecastCal_Week+2&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem i am having is with the expression labels of the chart. &lt;/P&gt;&lt;P&gt;for each label i am using the variable. &lt;/P&gt;&lt;P&gt;so if i select the current week (46), i get the correct week numbers up to 52, but then the next expression lable is showing 53 when i want it to go back to 1&lt;/P&gt;&lt;P&gt;Does anyone know what i can do to correct this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25297" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25297_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445629#M1160551</guid>
      <dc:creator />
      <dc:date>2012-11-19T11:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445630#M1160553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using the mod function:&lt;/P&gt;&lt;P&gt;vWeekSelection+1 = mod(ForecastCal_Week+1,52)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445630#M1160553</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-19T12:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445631#M1160555</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;Instead of writing multiple expressions you can do that in single expression, if you have date and week fields in your data model then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;DateDimension={'&amp;gt;=$(=WeekStart(Max(DateDimension), -10))&amp;lt;=$(=Max(DateDimension))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression replace DateDimension with you dimension name and Sales with your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445631#M1160555</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-19T12:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445632#M1160557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have just noticed a problem with your solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select week 46 for example, i get 47,48,49,50,51,0. it doesnt show me 52&lt;/P&gt;&lt;P&gt;Do you know what the problem could be?&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;IMG __jive_id="25312" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25312_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 13:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445632#M1160557</guid>
      <dc:creator />
      <dc:date>2012-11-19T13:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445633#M1160558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; vWeekSelection+1 = ceil(mod((ForecastCal_Week+1)*10,521)/10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWeekSelection+1 = if(mod(ForecastCal_Week+1,52)=0,52,mod(ForecastCal_Week+1,52))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 13:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445633#M1160558</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-19T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with week numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445634#M1160559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, great, the 2nd one did the trick&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 14:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-week-numbers/m-p/445634#M1160559</guid>
      <dc:creator />
      <dc:date>2012-11-19T14:00:25Z</dc:date>
    </item>
  </channel>
</rss>

