<?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: Convert Year Month and Week Begin Date from sql to load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1726987#M722893</link>
    <description>&lt;P&gt;load ...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Calendar Year]&amp;amp;num([Calendar Month Number],'00') as&amp;nbsp;YEAR_MONTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Assuming your week starts from Saturday. If it starts from other days then change the number highlighted in weekstart function.&amp;nbsp; Week Number starts from.. 0 -Mon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weekstart([Calendar Date],0,&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/FONT&gt;) as&amp;nbsp;WEEK_BEGIN_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 23:14:52 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-10T23:14:52Z</dc:date>
    <item>
      <title>Convert Year Month and Week Begin Date from sql to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1726986#M722892</link>
      <description>&lt;P&gt;Can you please help me convert the 2 below sql scripts into load statements?&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Concat(CONVERT(VARCHAR,[Calendar Year]),iif(len(CONVERT(VARCHAR,[Calendar Month Number]))=&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,'0'+CONVERT(VARCHAR,[Calendar Month Number]),CONVERT(VARCHAR,[Calendar Month Number]))) AS YEAR_MONTH&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; DATEADD(DAY, 2 - DATEPART(WEEKDAY, [Calendar Date]), [Calendar Date]) AS WEEK_BEGIN_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1726986#M722892</guid>
      <dc:creator>xarapre7</dc:creator>
      <dc:date>2024-11-16T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Year Month and Week Begin Date from sql to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1726987#M722893</link>
      <description>&lt;P&gt;load ...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Calendar Year]&amp;amp;num([Calendar Month Number],'00') as&amp;nbsp;YEAR_MONTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Assuming your week starts from Saturday. If it starts from other days then change the number highlighted in weekstart function.&amp;nbsp; Week Number starts from.. 0 -Mon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;weekstart([Calendar Date],0,&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/FONT&gt;) as&amp;nbsp;WEEK_BEGIN_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 23:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1726987#M722893</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-10T23:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Year Month and Week Begin Date from sql to load script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1728165#M722894</link>
      <description>&lt;P&gt;Sorry for the late reply.&amp;nbsp; I was travelling.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you this Kush!&amp;nbsp; I appreciate your kind help.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 18:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Year-Month-and-Week-Begin-Date-from-sql-to-load-script/m-p/1728165#M722894</guid>
      <dc:creator>xarapre7</dc:creator>
      <dc:date>2020-07-15T18:37:18Z</dc:date>
    </item>
  </channel>
</rss>

