<?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: Creating a week dimension from dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169236#M911790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried placing it into my script as:&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;LOAD RecordingDate,&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;Week(RecordingDate) as RecordingWeek&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;&lt;BR /&gt;&lt;/STRONG&gt;But i do not get a new field after running the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jun 2016 09:07:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-11T09:07:40Z</dc:date>
    <item>
      <title>Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169231#M911785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem which i can't seem to solve for my application. In the data i have three lists/fields of dates:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;, the normal calendar (narrows the two below calendars down)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;BatchDate&lt;/STRONG&gt;, which refers to dates where a operation was started&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;RecordingDate&lt;/STRONG&gt;, which refers to the date of the outcome of the process (an analysis for example)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that i only have one week field, which refers to &lt;STRONG&gt;Date &lt;/STRONG&gt;and therefore when doing trending/plots pr. week, it selects the wrong data. This is because &lt;STRONG&gt;Date&lt;/STRONG&gt; is similar to &lt;STRONG&gt;BatchDate&lt;/STRONG&gt; - so when a certain week is selected, it narrows these two lists down to the same 7 days, but has twice the amount of possible dates in &lt;STRONG&gt;RecordingDate. &lt;/STRONG&gt;This is since the recording of the operation could have been done the week after the operation was started (which &lt;STRONG&gt;Date&lt;/STRONG&gt; and &lt;STRONG&gt;BatchDate&lt;/STRONG&gt; binds to). This makes sense, but ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... the question then is, am i able to create a new dimension such as &lt;EM&gt;&lt;STRONG&gt;RecordingWeek&lt;/STRONG&gt;&lt;/EM&gt;, which selects the actual dates of the selected week in &lt;STRONG&gt;RecordingDate&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help is kindly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ Rasmus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169231#M911785</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169232#M911786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should be possible. Have you given it a try yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169232#M911786</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169233#M911787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somewhat, mostly by using a variable to select the first week day in the list and then select +6 - but that seems like a tedious way. Was hoping for some input, since I'm quite new to QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169233#M911787</guid>
      <dc:creator />
      <dc:date>2016-06-10T15:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169234#M911788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried creating a ReportingWeek field in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ReportingDate,&lt;/STRONG&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; Week(ReportingDate) as ReportingWeek&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then make seleection in ReportingWeek to further drill down into a particular rerporting week?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169234#M911788</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169235#M911789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, but will try that as soon as possible - thanks for the quick reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169235#M911789</guid>
      <dc:creator />
      <dc:date>2016-06-10T15:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169236#M911790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried placing it into my script as:&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;LOAD RecordingDate,&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;Week(RecordingDate) as RecordingWeek&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;&lt;BR /&gt;&lt;/STRONG&gt;But i do not get a new field after running the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 09:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169236#M911790</guid>
      <dc:creator />
      <dc:date>2016-06-11T09:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169237#M911791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to create 3 list box out of following week fields, that way you will be able to filter data better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordingDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , Week(RecordingDate) AS RecordingWeek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , Week(Date) AS DateWeek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , BatchDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , Week(BatchDate) AS BatchWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 06:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169237#M911791</guid>
      <dc:creator>shaktisinghchau</dc:creator>
      <dc:date>2016-06-12T06:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a week dimension from dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169238#M911792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have a field for week which filters correctly in Date and BatchDate. It also filters in RecordingDate but in regards to the start of the process which means this will not be a calendar week but a list of dates where these operations were started. I want to create a new field which selects calendar weeks in RecordingDate, is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 10:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-week-dimension-from-dates/m-p/1169238#M911792</guid>
      <dc:creator />
      <dc:date>2016-06-12T10:57:38Z</dc:date>
    </item>
  </channel>
</rss>

