<?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 use LEFT function in inline load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547685#M204580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AsOfTable:&lt;/P&gt;&lt;P&gt;LOAD AsOfQuarter, left(AsOfQuarter,4) as Quarter, Type Inline &lt;SPAN style="font-size: 10pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AsOfQuarter, Type&lt;/P&gt;&lt;P&gt; $(vyerqtr),&amp;nbsp; 'Last'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Jul 2013 14:55:49 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-07-07T14:55:49Z</dc:date>
    <item>
      <title>how to use LEFT function in inline load</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547684#M204579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to use left function to take the first 4 digits from the string in the INLINE load. This string is the output of a variable I have declared in Edit Script page.&lt;/P&gt;&lt;P&gt;I am writing like this&lt;/P&gt;&lt;P&gt;AsOfTable:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[AsOfQuarter, Quarter, Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; $(vyerqtr),&amp;nbsp; $(left($(vyerqtr),4)), 'Last'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Quarter field is not returning any thing. It is blank. Please help me how should I write the left function here. Here in my code vyerqtr is the variable I have declared in Edit Script and this is returning the current year and quarter like 2013Q2. So in the second field of my inline table Quarter, I need the year 2013 from this variable.&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2013 14:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547684#M204579</guid>
      <dc:creator>musketeers</dc:creator>
      <dc:date>2013-07-07T14:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to use LEFT function in inline load</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547685#M204580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AsOfTable:&lt;/P&gt;&lt;P&gt;LOAD AsOfQuarter, left(AsOfQuarter,4) as Quarter, Type Inline &lt;SPAN style="font-size: 10pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AsOfQuarter, Type&lt;/P&gt;&lt;P&gt; $(vyerqtr),&amp;nbsp; 'Last'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2013 14:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547685#M204580</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-07T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to use LEFT function in inline load</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547686#M204581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehi,&lt;/P&gt;&lt;P&gt;Thanks for your answer. But I need to load the data for last 4 quarters in this table example if current year and quarter is 2013Q2, then I need data till 2012Q3. and my variable &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vyerqtr&lt;/SPAN&gt; is returning the current year and quarter example 2013Q2.&lt;/P&gt;&lt;P&gt;This is the reason I wanted to use left function in my Load script.&lt;/P&gt;&lt;P&gt;I think if i use your suggestion, I have to create that many variables. Is this a good way or we have any other good way to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-LEFT-function-in-inline-load/m-p/547686#M204581</guid>
      <dc:creator>musketeers</dc:creator>
      <dc:date>2013-07-08T08:05:00Z</dc:date>
    </item>
  </channel>
</rss>

