<?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: Week Number from Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202387#M386957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to know all the weeks that come in the month of October? Is that the goal? In the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 09:27:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-05T09:27:21Z</dc:date>
    <item>
      <title>Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202386#M386956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, i need your expertice help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to obtain the week numbers grouping by month from a date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp; today()&amp;nbsp; is Month=10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to obtain one table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week39 &lt;/P&gt;&lt;P&gt;Week40&lt;/P&gt;&lt;P&gt;Week41&lt;/P&gt;&lt;P&gt;Week42&lt;/P&gt;&lt;P&gt;Week43&lt;/P&gt;&lt;P&gt;Week44&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is This possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advenced!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202386#M386956</guid>
      <dc:creator />
      <dc:date>2016-10-05T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202387#M386957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to know all the weeks that come in the month of October? Is that the goal? In the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202387#M386957</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T09:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202388#M386958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, but the source is today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202388#M386958</guid>
      <dc:creator />
      <dc:date>2016-10-05T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202389#M386959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(Today()) + IterNo() - 1) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(MonthStart(Today()) + IterNo() - 1) as WeekNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While IterNo() &amp;lt;= (Floor(&lt;SPAN style="color: #ff0000;"&gt;MonthEnd&lt;/SPAN&gt;(Today())) - Floor(&lt;SPAN style="color: #ff0000;"&gt;MonthStart&lt;/SPAN&gt;(Today())) &lt;SPAN style="color: #ff0000;"&gt;+ 1&lt;/SPAN&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: Fixed the order of MonthEnd and MonthStart in the while statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139683_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202389#M386959</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202390#M386960</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; , but does not work, return 0 Rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202390#M386960</guid>
      <dc:creator />
      <dc:date>2016-10-05T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202391#M386961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I just updated my code:&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD Date(MonthStart(Today()) + IterNo() - 1) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Week(MonthStart(Today()) + IterNo() - 1) as WeekNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;While IterNo() &amp;lt;= (Floor(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;MonthEnd&lt;/SPAN&gt;(Today())) - Floor(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;MonthStart&lt;/SPAN&gt;(Today())) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;+ 1&lt;/SPAN&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202391#M386961</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-05T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202392#M386962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeeeeeeeeeah!! you are the best!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!! Works perfectly!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202392#M386962</guid>
      <dc:creator />
      <dc:date>2016-10-05T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202393#M386963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi francisco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get a particular week number between two different dates or you can take the current week number for this year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have added for current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=ceil((Today()-'01/01/2016')/7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202393#M386963</guid>
      <dc:creator>eromiyasimon</dc:creator>
      <dc:date>2016-10-05T09:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number from Month</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202394#M386964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Simon, the Sunny answer resolved mi issue &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 06:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-from-Month/m-p/1202394#M386964</guid>
      <dc:creator />
      <dc:date>2016-10-06T06:37:13Z</dc:date>
    </item>
  </channel>
</rss>

