<?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: Combining two functions together in scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1611969#M597665</link>
    <description>&lt;P&gt;Did the last poster's comment help you resolve things?&amp;nbsp; If so, please be sure to use the Accept as Solution button to give them credit for the help.&amp;nbsp; If you are still working on things, let us know where you are still stuck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a link that may help a little as well, there are also hundreds of other posts in this area, so be sure to search there in more detail if this one does not do the trick:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 12:43:13 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-08-13T12:43:13Z</dc:date>
    <item>
      <title>Combining two functions together in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1603451#M597663</link>
      <description>Dear all Following are the two tables and I want to combine two functionalities in one table so for that how to write the script? Basically I have to combine mid function and if conditions stated below LOAD *, Mid(LABNAME,1,index(LABNAME,'-',1)-1) as Lab_Code, Mid(LABNAME,index(LABNAME,'-',1)+1,index(LABNAME,'-',2)-index(LABNAME,'-',1)-1) as Lab_Location, Mid(LABNAME, index(LABNAME,'-',2)+1, Len(LABNAME)-index(LABNAME,'-',2)) as Lab_Zone; SQL SELECT ANALYTE, CITY, Comment, CorrectiveAction, ExpiredDate, FixedCV, FixedMean, FixedSD, from xyz.dbo.xyz; LOAD *, if(LABID = '166051','S03', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'), 'L51','LPL')) as Lab_Code, if(LABID = '166051','Preet Vihar', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'),'KRL','NRL')) as Lab_Location, if(LABID = '166051','DNCR', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'),'KRL','NRL')) as Lab_Zone; SQL SELECT ANALYTE, CITY, Comment, CorrectiveAction, ExpiredDate, FixedCV, FixedMean, FixedSD from xyz.dbo.xyz;</description>
      <pubDate>Thu, 18 Jul 2019 05:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1603451#M597663</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2019-07-18T05:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two functions together in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1603857#M597664</link>
      <description>&lt;P&gt;Just add the 'join' keyword between the tables.&lt;/P&gt;&lt;P&gt;LOAD *, Mid(LABNAME,1,index(LABNAME,'-',1)-1) as Lab_Code, Mid(LABNAME,index(LABNAME,'-',1)+1,index(LABNAME,'-',2)-index(LABNAME,'-',1)-1) as Lab_Location, Mid(LABNAME, index(LABNAME,'-',2)+1, Len(LABNAME)-index(LABNAME,'-',2)) as Lab_Zone; SQL SELECT ANALYTE, CITY, Comment, CorrectiveAction, ExpiredDate, FixedCV, FixedMean, FixedSD, from xyz.dbo.xyz;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;LOAD *, if(LABID = '166051','S03', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'), 'L51','LPL')) as Lab_Code, if(LABID = '166051','Preet Vihar', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'),'KRL','NRL')) as Lab_Location, if(LABID = '166051','DNCR', if(Match(LABID,'180128','180130','180132','180138','180140','180142','180144','180148','180150','180152','180154','180156','180163'),'KRL','NRL')) as Lab_Zone; SQL SELECT ANALYTE, CITY, Comment, CorrectiveAction, ExpiredDate, FixedCV, FixedMean, FixedSD from xyz.dbo.xyz;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1603857#M597664</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-07-18T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two functions together in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1611969#M597665</link>
      <description>&lt;P&gt;Did the last poster's comment help you resolve things?&amp;nbsp; If so, please be sure to use the Accept as Solution button to give them credit for the help.&amp;nbsp; If you are still working on things, let us know where you are still stuck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a link that may help a little as well, there are also hundreds of other posts in this area, so be sure to search there in more detail if this one does not do the trick:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-two-functions-together-in-scripting/m-p/1611969#M597665</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-13T12:43:13Z</dc:date>
    </item>
  </channel>
</rss>

