<?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 formatting. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875748#M659497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want last 4 weeks data, don't use the week numbers in your calculation. Use dates instead in the calculation, the date four weeks ago is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date_created-27. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 07:21:25 GMT</pubDate>
    <dc:creator>Ralf-Narfeldt</dc:creator>
    <dc:date>2015-05-06T07:21:25Z</dc:date>
    <item>
      <title>Week number formatting.</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875746#M659495</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 data of 2013, 2014 and 2015. and i need to select the data of last 4 weeks and display in bar graph using &lt;STRONG style="font-size: 12pt;"&gt;Qlik sense&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;PFA how data resembles in my db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used variables like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate= '=max(date_created)';&lt;/P&gt;&lt;P&gt;LET vMaxWeek= '=max(week_number)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vFirstOfLast7 = '=max(date_created,6)';&lt;/P&gt;&lt;P&gt;LET vFourWeeksAgo = '=max(week_number)-3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the week number is till only 52. what i needed is, for 2013 it has to produce week_number till 52 and for 2014 it has to start from 53. same for 2015 it has to start from the week_number where 2014 ends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To produce the week_number i am using the date_created column in table which has the dates in format&amp;nbsp; dd-mm-yyyy hh-mm-ss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone please help this to sort out&amp;nbsp; and to get the data of last 4 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875746#M659495</guid>
      <dc:creator />
      <dc:date>2015-05-05T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Week number formatting.</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875747#M659496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post in the Qlik Sense forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875747#M659496</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-05T07:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Week number formatting.</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875748#M659497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want last 4 weeks data, don't use the week numbers in your calculation. Use dates instead in the calculation, the date four weeks ago is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date_created-27. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 07:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875748#M659497</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-05-06T07:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Week number formatting.</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875749#M659498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I used it. If I use “date_created-27”,  it shows data in daily basis. But I need that in week basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you understand the scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 07:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-formatting/m-p/875749#M659498</guid>
      <dc:creator />
      <dc:date>2015-05-06T07:50:10Z</dc:date>
    </item>
  </channel>
</rss>

