<?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 Need help - combine left and right in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389221#M698984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got a huge problem that i cant solve on my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Situation: There has been some changes(law) that fakture numbers now look different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old Nr: 05-12345 (Left(INVOICEID,2))&lt;/P&gt;&lt;P&gt;new Nr: 12345 - 05 - 1 (Right(INVOICEID, 4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Left(INVOICEID,2) &amp;lt;&amp;gt;'06' and Left(INVOICEID,2) &amp;lt;&amp;gt;'ER' and Left(INVOICEID,2) &amp;lt;&amp;gt;'15' and Left(INVOICEID,2) &amp;lt;&amp;gt;'09' and Left(INVOICEID,2) &amp;lt;&amp;gt;'12' and Left(INVOICEID,2) &amp;lt;&amp;gt;'23' and Left(INVOICEID,2) &amp;lt;&amp;gt;'22' and Left(INVOICEID,2) &amp;lt;&amp;gt;'24' and Left(INVOICEID,2) &amp;lt;&amp;gt;'25';&lt;/P&gt;&lt;P&gt;drop Table ReLinije;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All faktures that beginn with those numbers are not to be considered in my stats and will be dropped from the resident!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: Old fakture number will not be changed but i need to compare f. ex. 2012 with 2013 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need/hope for help: How can i combine Left and Right formula in one script, so that All faktures before 2013 fall under LEFT formula and all following on RIGHT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope four your help and thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a Happy new Year &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 08:21:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-03T08:21:02Z</dc:date>
    <item>
      <title>Need help - combine left and right in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389221#M698984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got a huge problem that i cant solve on my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Situation: There has been some changes(law) that fakture numbers now look different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old Nr: 05-12345 (Left(INVOICEID,2))&lt;/P&gt;&lt;P&gt;new Nr: 12345 - 05 - 1 (Right(INVOICEID, 4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Left(INVOICEID,2) &amp;lt;&amp;gt;'06' and Left(INVOICEID,2) &amp;lt;&amp;gt;'ER' and Left(INVOICEID,2) &amp;lt;&amp;gt;'15' and Left(INVOICEID,2) &amp;lt;&amp;gt;'09' and Left(INVOICEID,2) &amp;lt;&amp;gt;'12' and Left(INVOICEID,2) &amp;lt;&amp;gt;'23' and Left(INVOICEID,2) &amp;lt;&amp;gt;'22' and Left(INVOICEID,2) &amp;lt;&amp;gt;'24' and Left(INVOICEID,2) &amp;lt;&amp;gt;'25';&lt;/P&gt;&lt;P&gt;drop Table ReLinije;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All faktures that beginn with those numbers are not to be considered in my stats and will be dropped from the resident!. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: Old fakture number will not be changed but i need to compare f. ex. 2012 with 2013 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need/hope for help: How can i combine Left and Right formula in one script, so that All faktures before 2013 fall under LEFT formula and all following on RIGHT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope four your help and thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a Happy new Year &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389221#M698984</guid>
      <dc:creator />
      <dc:date>2013-01-03T08:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - combine left and right in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389222#M698985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can load old factures in a first time, and the new with the key word CONCATENATE after. Both with their own restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amand Dupretz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389222#M698985</guid>
      <dc:creator />
      <dc:date>2013-01-03T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - combine left and right in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389223#M698986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could load you table twice. The first time with all the rows but setting a flag of whether to include, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Match(Left(INVOICEID,2),'06','ER','15','09','12','23','22','24','25'),1) AS Exclude&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the second load could have awhere clause to exclude those matching this field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WHERE Exclude = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389223#M698986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-03T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - combine left and right in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389224#M698987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention, that the new facture number changes like this: 1 - 05 - 1, 2 - 05 - 1, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the whole one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReLinije:&lt;/P&gt;&lt;P&gt;LOAD CJ_AK, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CJ_DOG, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CJ_MIN, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMISSSALESGROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTACCOUNT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM10, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM5, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM6_JOUR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM6_TRANS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLVMODE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROSPROFIT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVENTLOCATIONID, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICEDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mesec, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Godina, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICEID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEMID, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINEAMOUNT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALESDISCPERCENT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALESID, //br specke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STOCKVALUE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STOCKVALUE2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Y:\Linije.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linije:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CJ_AK, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CJ_DOG, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CJ_MIN, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMISSSALESGROUP, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTACCOUNT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM10, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM5, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM6_JOUR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIM6_TRANS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DLVMODE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROSPROFIT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVENTLOCATIONID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICEDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(INVOICEDATE,10) as [Datum_fakture], // TEST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(INVOICEDATE) as Dan, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(INVOICEDATE) as ImeMjeseca,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mesec as Mjesec, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Godina, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INVOICEID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(INVOICEID,2) as [Predbroj fakture],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(PurgeChar(text(ITEMID), ' ')) as ITEMID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEMID as ITEMID1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINEAMOUNT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALESDISCPERCENT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALESID, //br specke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STOCKVALUE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STOCKVALUE2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LINEAMOUNT/QTY as [Prodajna cijena]&lt;/P&gt;&lt;P&gt;RESIDENT ReLinije&lt;/P&gt;&lt;P&gt;WHERE Left(INVOICEID,2) &amp;lt;&amp;gt;'06' and Left(INVOICEID,2) &amp;lt;&amp;gt;'ER' and Left(INVOICEID,2) &amp;lt;&amp;gt;'15' and Left(INVOICEID,2) &amp;lt;&amp;gt;'09' and Left(INVOICEID,2) &amp;lt;&amp;gt;'12' and Left(INVOICEID,2) &amp;lt;&amp;gt;'23' and Left(INVOICEID,2) &amp;lt;&amp;gt;'22' and Left(INVOICEID,2) &amp;lt;&amp;gt;'24' and Left(INVOICEID,2) &amp;lt;&amp;gt;'25';&lt;/P&gt;&lt;P&gt;drop Table ReLinije;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me where to put your suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389224#M698987</guid>
      <dc:creator />
      <dc:date>2013-01-03T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - combine left and right in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389225#M698988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somebody tell me the formula(in script) for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If INVOICEDATE &amp;lt;01.01.2013 where left(Invoiceid, 2) &amp;lt;&amp;gt; '06',...&lt;/P&gt;&lt;P&gt;If invoicedate &amp;gt;31.12.2012 where right(Invoiceid,5) &amp;lt;&amp;gt; '-06-1'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table relinije&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to combine them somehow that Linije.qvd and relevant data from 2012 and2013 remain in the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-combine-left-and-right-in-script/m-p/389225#M698988</guid>
      <dc:creator />
      <dc:date>2013-01-03T09:53:02Z</dc:date>
    </item>
  </channel>
</rss>

