<?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: Merge List with Flags in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022886#M639271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would start with transforming the table1 from a cross table into a straight table, then creating a record per each comma separated item value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DECROSS:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CROSSTABLE (Store, Item)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Customer ID], [Store 1], [Store 2], [Store 3]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT Table1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;STRAIGHT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Customer ID],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(Item, ',') as Item&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT DECROSS;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now you should have a table with fields Customer ID, Store and Item, one item per record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO, this is how you should store your data in QV data model, see also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to &lt;EM&gt;show &lt;/EM&gt;the data as you show for table 2, create a pivot table chart with dimensions Customer ID, Store and Item and create one expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(Item) &amp;gt;0,'Y','N')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 22:58:33 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-07T22:58:33Z</dc:date>
    <item>
      <title>Merge List with Flags</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022885#M639270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to transform my data from table 1 to table 2. What's the best way to script it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 454px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;" width="147"&gt;&lt;SPAN style="color: #000000;"&gt;Customer ID&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="179"&gt;&lt;SPAN style="color: #000000;"&gt;Store 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Store 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Store 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;apple,pear&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;apple,pear &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;pear&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;apple,orange&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;pear&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;orange&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 570px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;" width="147"&gt;&lt;SPAN style="color: #000000;"&gt;Customer ID&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="179"&gt;&lt;SPAN style="color: #000000;"&gt;Item&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="116"&gt;&lt;SPAN style="color: #000000;"&gt;Store 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Store 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000;"&gt;Store 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;apple&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;pear&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;apple&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;pear&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17" style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;orange&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px windowtext; border-image: none;"&gt;&lt;SPAN style="color: #000000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 21:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022885#M639270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T21:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merge List with Flags</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022886#M639271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would start with transforming the table1 from a cross table into a straight table, then creating a record per each comma separated item value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DECROSS:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CROSSTABLE (Store, Item)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Customer ID], [Store 1], [Store 2], [Store 3]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT Table1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;STRAIGHT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Customer ID],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(Item, ',') as Item&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT DECROSS;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now you should have a table with fields Customer ID, Store and Item, one item per record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO, this is how you should store your data in QV data model, see also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to &lt;EM&gt;show &lt;/EM&gt;the data as you show for table 2, create a pivot table chart with dimensions Customer ID, Store and Item and create one expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(Item) &amp;gt;0,'Y','N')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022886#M639271</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-07T22:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merge List with Flags</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022887#M639272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this script can help -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117277_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sample Data - add Comma after each item to be picked up by subfield individually&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;Load [Customer ID],Store1 &amp;amp; ',' as Store1, Store2 &amp;amp; ',' as Store2, Store3 as Store3;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Customer ID, Store1, Store2, Store3&lt;/P&gt;&lt;P&gt;Customer1, "apple,pear","apple,pear",pear&lt;/P&gt;&lt;P&gt;Customer2,"apple,orange",pear,orange&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Created Item field from Store fields&lt;/P&gt;&lt;P&gt;Left Join(table1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Customer ID],&lt;/P&gt;&lt;P&gt;subfield(Store1 &amp;amp; Store2 &amp;amp; Store3,',') as Item&lt;/P&gt;&lt;P&gt;resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Created new Store data by matching item in old store fields&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;F1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Customer ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(SubStringCount(Store1,Item)&amp;gt;0,'Y','N') as Store1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(SubStringCount(Store2,Item)&amp;gt;0,'Y','N') as Store2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(SubStringCount(Store3,Item)&amp;gt;0,'Y','N') as Store3&lt;/P&gt;&lt;P&gt;resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Removed old store data&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;F2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Customer ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Store1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Store2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Store3&lt;/P&gt;&lt;P&gt;resident F1&lt;/P&gt;&lt;P&gt;Where len(Store1)=1 and len(Store2)=1 and len(Store3)=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table table1,F1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 06:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-List-with-Flags/m-p/1022887#M639272</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-08T06:31:20Z</dc:date>
    </item>
  </channel>
</rss>

