<?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: Finding Values from Type of Code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132807#M372255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aa:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Identifier) as test;&lt;/P&gt;&lt;P&gt;load * inline [Order Number,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Payment_cd,&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 246853,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5CR&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 574245,&amp;nbsp;&amp;nbsp;&amp;nbsp; 465&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 458168,&amp;nbsp;&amp;nbsp;&amp;nbsp; 8PG];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bb:&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;[Order Number],&lt;/P&gt;&lt;P&gt;if(len(test)&amp;lt;&amp;gt;0,Payment_cd) as primary_payment&lt;/P&gt;&lt;P&gt;resident aa;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;[Order Number],&lt;/P&gt;&lt;P&gt;if(len(test)=0,Payment_cd) as secondary_payment&lt;/P&gt;&lt;P&gt;resident aa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;cc:&lt;/P&gt;&lt;P&gt;load distinct *&lt;/P&gt;&lt;P&gt;Resident bb where len(primary_payment)&amp;lt;&amp;gt;0 and len(secondary_payment)&amp;lt;&amp;gt;0;&lt;/P&gt;&lt;P&gt;drop table bb;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 14:01:49 GMT</pubDate>
    <dc:creator>florentina_doga</dc:creator>
    <dc:date>2016-06-28T14:01:49Z</dc:date>
    <item>
      <title>Finding Values from Type of Code</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132803#M372251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have records where, for a single order, the payment is done by credit card and by gift card by splitting the amount. I have my data as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="75" style="border: 1px solid #000000; width: 310px; height: 77px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Order Number &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Payment_cd&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Identifier&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;223436AGR435&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;246853&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5CR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;223436AGR435&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;574245&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;465&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;223436AGR435&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;458168&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8PG&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for a single order &lt;SPAN style="font-size: 13.3333px;"&gt;223436AGR435, three types of Payments were used. If the identifier is alphanumeric, the Payment_cd indicates a gift card.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If the Identifier is numeric, the Payment_cd indicates a credit card. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need another two columns where the primary_payment is credit card and secondary_payment is giftcard. I need the above table to be shown as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 368px; height: 71px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Order Number &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Primary_payment&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Secondary Payment&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;223436AGR435&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;574245&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;246853&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;223436AGR435&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;574245&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;458168&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this in load script. Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132803#M372251</guid>
      <dc:creator>reshmakala</dc:creator>
      <dc:date>2016-06-28T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Values from Type of Code</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132804#M372252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Order Number], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Payment_cd, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="222851" data-objecttype="1" href="https://community.qlik.com/thread/222851"&gt;https://community.qlik.com/thread/222851&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Order Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Payment_cd as [Primary Payment]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where IsNum(Identifier);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Order Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Payment_cd as [Secondary Payment]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where IsText(Identifier);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129408_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132804#M372252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Values from Type of Code</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132805#M372253</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;LOAD OrderNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Payment_CD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (IsNum(&lt;SPAN style="font-size: 13.3333px;"&gt;Identifier&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;Identifier, Null())&lt;/SPAN&gt; as CreditCard,&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;&amp;nbsp; If (IsText(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Identifier&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Identifier, Null())&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; as GiftCard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Follow the script with a join with the second table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this help you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Joaquín&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132805#M372253</guid>
      <dc:creator>Joaquin_Lazaro</dc:creator>
      <dc:date>2016-06-28T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Values from Type of Code</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132806#M372254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Sunny! You have been very helpful. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132806#M372254</guid>
      <dc:creator>reshmakala</dc:creator>
      <dc:date>2016-06-28T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Values from Type of Code</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132807#M372255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aa:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Identifier) as test;&lt;/P&gt;&lt;P&gt;load * inline [Order Number,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Payment_cd,&amp;nbsp;&amp;nbsp;&amp;nbsp; Identifier&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 246853,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5CR&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 574245,&amp;nbsp;&amp;nbsp;&amp;nbsp; 465&lt;/P&gt;&lt;P&gt;223436AGR435,&amp;nbsp;&amp;nbsp;&amp;nbsp; 458168,&amp;nbsp;&amp;nbsp;&amp;nbsp; 8PG];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bb:&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;[Order Number],&lt;/P&gt;&lt;P&gt;if(len(test)&amp;lt;&amp;gt;0,Payment_cd) as primary_payment&lt;/P&gt;&lt;P&gt;resident aa;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;[Order Number],&lt;/P&gt;&lt;P&gt;if(len(test)=0,Payment_cd) as secondary_payment&lt;/P&gt;&lt;P&gt;resident aa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;cc:&lt;/P&gt;&lt;P&gt;load distinct *&lt;/P&gt;&lt;P&gt;Resident bb where len(primary_payment)&amp;lt;&amp;gt;0 and len(secondary_payment)&amp;lt;&amp;gt;0;&lt;/P&gt;&lt;P&gt;drop table bb;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Values-from-Type-of-Code/m-p/1132807#M372255</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-06-28T14:01:49Z</dc:date>
    </item>
  </channel>
</rss>

