<?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: Separate two different things in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932947#M948849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be adding these lines in your LOAD statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If([Scanned Hub]=[Hub From], [Hub From])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS LOCATE_FROM,&lt;/P&gt;&lt;P&gt;If([Scanned Hub]=[Hub To], [Hub To])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS LOCATE_TO,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 15:13:16 GMT</pubDate>
    <dc:creator>sergiorey</dc:creator>
    <dc:date>2015-12-15T15:13:16Z</dc:date>
    <item>
      <title>Separate two different things in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932946#M948847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset in my company that you can see below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 490px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;&amp;nbsp;&amp;nbsp; Hub From&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Hub To&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Scanned Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Scanned Hub&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;20046678&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp; REY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AKU&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LOCATE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25820863&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp; REY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AKU&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LOCATE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;REY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;26532119&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp; REY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AKU&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LOCATE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;REY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;20046546&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp; REY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;EGS&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LOCATE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;REY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;26052256&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp; REY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;EGS&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;LOCATE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;EGS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that the IDs that are scanned get Scanned Type = LOCATE.&lt;/P&gt;&lt;P&gt;But I want separate if the ID is scanned at Hub From or Hub To.&lt;/P&gt;&lt;P&gt;I need the scanned type to have something like LOCATE_FROM and LOCATE_TO.&lt;/P&gt;&lt;P&gt;How can make something like that in the script?&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932946#M948847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Separate two different things in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932947#M948849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be adding these lines in your LOAD statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If([Scanned Hub]=[Hub From], [Hub From])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS LOCATE_FROM,&lt;/P&gt;&lt;P&gt;If([Scanned Hub]=[Hub To], [Hub To])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS LOCATE_TO,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932947#M948849</guid>
      <dc:creator>sergiorey</dc:creator>
      <dc:date>2015-12-15T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Separate two different things in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932948#M948851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hub From], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hub To], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;[Scanned Hub]=&lt;SPAN style="font-size: 13.3333px;"&gt;[Hub From],&lt;/SPAN&gt;&lt;/SPAN&gt; [Scanned Type] &amp;amp; '_FROM' , &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Scanned Hub]=&lt;SPAN style="font-size: 13.3333px;"&gt;[Hub To],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [Scanned Type] &amp;amp; '_TO' , [Scanned Type])) as [Scanned Type],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Scanned Hub]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Qlikview Data - Scanned.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separate-two-different-things-in-the-script/m-p/932948#M948851</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-15T15:34:47Z</dc:date>
    </item>
  </channel>
</rss>

