<?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 back end table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61588#M10308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;You can use below in script.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Week(Date) as [Week No]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;This make sense, there is no date column we have to create date column based on today's date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 10:10:44 GMT</pubDate>
    <dc:creator>bushpalaamarnat</dc:creator>
    <dc:date>2018-04-19T10:10:44Z</dc:date>
    <item>
      <title>Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61583#M10303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please, based on today's date need to calculate current week , current week -6 and current week + 13. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attaching the out put in the excel file. Also, this need's to be created in back end&amp;nbsp; and store automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61583#M10303</guid>
      <dc:creator>bushpalaamarnat</dc:creator>
      <dc:date>2018-04-19T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61584#M10304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;you can use the week function&amp;nbsp;&amp;nbsp; week(date)&lt;/P&gt;&lt;P&gt;so week(today()) for the current week&lt;/P&gt;&lt;P&gt;week(today()-6) for past 6&lt;/P&gt;&lt;P&gt;and week(today()+13) for 13 days in the future&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61584#M10304</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-04-19T09:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61585#M10305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use below in script.&lt;/P&gt;&lt;P&gt;Week(Date) as [Week No]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61585#M10305</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-19T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61586#M10306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir, is there a better way to write, Week(today()-6), Week(today()-5) and so on.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each week number i need to create a formula. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61586#M10306</guid>
      <dc:creator>bushpalaamarnat</dc:creator>
      <dc:date>2018-04-19T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61587#M10307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;apply the function to your date column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61587#M10307</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-04-19T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61588#M10308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;You can use below in script.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Week(Date) as [Week No]&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;This make sense, there is no date column we have to create date column based on today's date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61588#M10308</guid>
      <dc:creator>bushpalaamarnat</dc:creator>
      <dc:date>2018-04-19T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61589#M10309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide input data as sample file&lt;/P&gt;&lt;P&gt;output data as per your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61589#M10309</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-19T12:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating back end table</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61590#M10310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the script I would recommend for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15241332329061548 jive_text_macro" jivemacro_uid="_15241332329061548" modifiedtitle="true"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; S.No,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Week No],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Week Representation],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dual('W' &amp;amp; If( RelWeek &amp;gt;= 0 , RelWeek+1 , RelWeek), RelWeek) AS [Week Labels];&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S.No, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date) AS [Week No], &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'W'&amp;amp;Week(Date)&amp;amp;'-'&amp;amp;Right(Year(Date),2) AS Week, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Week(Date) = Week(Today(1)) , 'Current', If( Week(Date) &amp;lt; Week(Today(1)) , 'History' , 'Future')) AS [Week Representation],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Week(Date)-Week(Today(1))) AS RelWeek, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'W' &amp;amp; (Week(Date)-Week(Today(1))) AS [Week Labels]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;WHERE IsNum(S.No);&amp;nbsp; // Necessary for the Excel file you provided&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the Dual function in QlikView to create a single field with both a text label and a numeric value as you can see in the last two columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-19 12_25_40-QlikView x64 Personal Edition - [C__Users_Bruker_Documents_Weeks.qvw_].png" class="jive-image image-1" src="/legacyfs/online/200196_2018-04-19 12_25_40-QlikView x64 Personal Edition - [C__Users_Bruker_Documents_Weeks.qvw_].png" style="height: 290px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-back-end-table/m-p/61590#M10310</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-04-19T12:27:13Z</dc:date>
    </item>
  </channel>
</rss>

