<?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: how to get week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204419#M462227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even this is not working ,i am getting&amp;nbsp;&amp;nbsp; ')' missing&amp;nbsp; error but everything looks ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Day &amp;lt;=7,'Week1',&amp;nbsp; if(Day &amp;gt;7&amp;lt;=14 ,'Week2', if(Day &amp;gt;14&amp;lt;=21,'Week3', if(Day &amp;gt;21&amp;lt;=31,'Week4')))) as Weeks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 09:06:45 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2016-10-06T09:06:45Z</dc:date>
    <item>
      <title>how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204416#M462224</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;i am trying to put days under particular weeks,which is not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Day='1,2,3,4,5,6,7','Week1',if(Day='8,9,10,11,12,13,14','Week2',if(Day='15,16,17,18,19,20,21','Week3',if(Day='22,23,24,25,26,27,28,29,30,31','Week4')))) as Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggestion where it went wrong&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;/P&gt;&lt;P&gt;&lt;STRONG&gt;qt1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Date(Date,'MMMM') ,Month(Date(Date,'MMM'))) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;day(Date) as Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//'Week' &amp;amp; Week(Date) as Week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;LOAD date#(Date( Date,'MM/DD/YYYY'),'DD/MM/YYYY') as Date,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&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;/P&gt;&lt;P&gt;&lt;STRONG&gt;load Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Day='1,2,3,4,5,6,7','Week1',if(Day='8,9,10,11,12,13,14','Week2',if(Day='15,16,17,18,19,20,21','Week3',if(Day='22,23,24,25,26,27,28,29,30,31','Week4')))) as Week&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident qt1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 06:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204416#M462224</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2016-10-06T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204417#M462225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;your if statement is wrong&lt;/P&gt;&lt;P&gt;here is another version that should work&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;qt1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Load*,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Dual(Date(Date,'MMMM') ,Month(Date(Date,'MMM'))) as Month,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;day(Date) as Day,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;//'Week' &amp;amp; Week(Date) as Week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;LOAD date#(Date( Date,'MM/DD/YYYY'),'DD/MM/YYYY') as Date,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&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;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;load Day,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;ceil(Day/7) as Week &lt;SPAN style="color: #ff0000;"&gt;///this will create your week number in much more efficient way&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Resident qt1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 06:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204417#M462225</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-10-06T06:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204418#M462226</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;if i use ceil function it coming out 5 weeks in a month,but i need only 4 weeks for all the months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 08:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204418#M462226</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2016-10-06T08:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204419#M462227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even this is not working ,i am getting&amp;nbsp;&amp;nbsp; ')' missing&amp;nbsp; error but everything looks ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Day &amp;lt;=7,'Week1',&amp;nbsp; if(Day &amp;gt;7&amp;lt;=14 ,'Week2', if(Day &amp;gt;14&amp;lt;=21,'Week3', if(Day &amp;gt;21&amp;lt;=31,'Week4')))) as Weeks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204419#M462227</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2016-10-06T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204420#M462228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;in this case , change the function to :&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;load Day,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(ceil(Day/7)&amp;gt;4,4,&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 12px; font-style: inherit; background-color: #f2f2f2;"&gt;ceil(Day/7))&lt;/STRONG&gt; as Week &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;///this will create your week number in much more efficient way&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident qt1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204420#M462228</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-10-06T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204421#M462229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perfect man,thanks very munch...it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204421#M462229</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2016-10-06T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204422#M462230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u plz explain me wat exactly this is doing ..plz&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(ceil(Day/7)&amp;gt;4,4,&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ceil(Day/7))&lt;/STRONG&gt; as Week&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204422#M462230</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2016-10-06T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204423#M462231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should read this post and it has links to other week manipulation posts embedded &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4878"&gt;Recipe for a 4-4-5 Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204423#M462231</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-10-06T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get week</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204424#M462232</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;also po&lt;SPAN style="font-size: 10pt;"&gt;ssible:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14757906273275802 jive_text_macro" jivemacro_uid="_14757906273275802"&gt;
&lt;P&gt;RangeMin(Ceil(Day/7),4) as Week&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-week/m-p/1204424#M462232</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-06T21:50:32Z</dc:date>
    </item>
  </channel>
</rss>

