<?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: Evaluating a column with multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423814#M800911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No issues... Please see the attached files where I created the excel file the way you want it. Please go over it and modify accordingly. Hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping_CommodityCodes:&lt;/P&gt;&lt;P&gt;Mapping LOAD *,&lt;/P&gt;&lt;P&gt;[Valid Codes] as CommodityCodes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final_Data:&lt;/P&gt;&lt;P&gt;Load CommodityCodes,&lt;/P&gt;&lt;P&gt;If(Isnull(Applymap('Mapping_CommodityCodes',CommodityCodes,null())),'N','Y') as [Valid Codes];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Subfield(CommodityCodes,',') as CommodityCodes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Request ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Q8.2 Commodity Codes Selected] as CommodityCodes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 00:11:09 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2017-12-05T00:11:09Z</dc:date>
    <item>
      <title>Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423810#M800907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an excel file that contains a column of Commodity Codes.&amp;nbsp; On another sheet I have a list of valid Commodity codes.&amp;nbsp; I need to create a table with a new column that indicates if the a commodity code in the Commodity Codes column is valid or not.&amp;nbsp; The Commodity Codes columns can have multiple Codes serrated by a columns (see screenshot below)&amp;nbsp; If any of the codes are valid the in the original column are valid, then the evaluation should indicate that the Commodity Code is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185655_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423810#M800907</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423811#M800908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Mapping_CommodityCodes:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mapping&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; CommodityCodes,Valid&lt;BR /&gt; HCOCRS,Yes&lt;BR /&gt; HCPFOF,Yes&lt;BR /&gt; HCOBBK,Yes&lt;BR /&gt; HCOFFG,Yes&lt;BR /&gt; HCORFR,Yes&lt;BR /&gt; COLSLO,Yes&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Data:&lt;BR /&gt; &lt;BR /&gt; Final_Data:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommodityCodes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Mapping_CommodityCodes', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommodityCodes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'No') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Valid_Yes_No&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommodityCodes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommodityCodes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; CommodityCodes&lt;BR /&gt; HCOCRS,HCPFOF,HCOBBK,HCOFFG,HCORFR,HCOSMS&lt;BR /&gt; COLSLO&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '|');&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185662_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 21:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423811#M800908</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-12-04T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423812#M800909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thirumala, !&lt;/P&gt;&lt;P&gt;I'm a little new to all this so I could use a little more hand holding.&amp;nbsp; I have an excel file with 2 tabs.&amp;nbsp; The first tab include many columns including Request ID as the identifier and Q8.2 Commodity Codes Selected containing the Commodity codes with some rows having multiple.&amp;nbsp; I then have a second tab titled Valid Codes that contains a list of valid codes (Commodity Codes).&amp;nbsp; How do I apply the logic above using the spreadsheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 22:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423812#M800909</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2017-12-04T22:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423813#M800910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post some sample data and your expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 00:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423813#M800910</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-12-05T00:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423814#M800911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No issues... Please see the attached files where I created the excel file the way you want it. Please go over it and modify accordingly. Hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping_CommodityCodes:&lt;/P&gt;&lt;P&gt;Mapping LOAD *,&lt;/P&gt;&lt;P&gt;[Valid Codes] as CommodityCodes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final_Data:&lt;/P&gt;&lt;P&gt;Load CommodityCodes,&lt;/P&gt;&lt;P&gt;If(Isnull(Applymap('Mapping_CommodityCodes',CommodityCodes,null())),'N','Y') as [Valid Codes];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Subfield(CommodityCodes,',') as CommodityCodes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Request ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Q8.2 Commodity Codes Selected] as CommodityCodes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 00:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423814#M800911</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-12-05T00:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423815#M800912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 00:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423815#M800912</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2017-12-05T00:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating a column with multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423816#M800913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 01:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-a-column-with-multiple-values/m-p/1423816#M800913</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-12-05T01:11:57Z</dc:date>
    </item>
  </channel>
</rss>

