<?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: Add item for each unique entry in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466098#M174159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there, thanks for your response.&amp;nbsp; I've pasted the relevant sections of the script below.&amp;nbsp; Options is a comma delimited list of consultant names.&amp;nbsp; So I first create a table called "CombinedTable", then I'm delimiting "Options." I've pasted two screenshots to try and illustrate the issue.&amp;nbsp; If I filter using the name of a consultant, I don't want to lose other items with the same itemId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CombinedTable:&lt;/P&gt;&lt;P&gt;LOAD fieldId,&lt;/P&gt;&lt;P&gt;trackerId,&lt;/P&gt;&lt;P&gt;name,&lt;/P&gt;&lt;P&gt;options,&lt;/P&gt;&lt;P&gt;itemId,&lt;/P&gt;&lt;P&gt;value,&lt;/P&gt;&lt;P&gt;DateTimeCreated,&lt;/P&gt;&lt;P&gt;MonthCreated,&lt;/P&gt;&lt;P&gt;YearCreated,&lt;/P&gt;&lt;P&gt;created,&lt;/P&gt;&lt;P&gt;Auditor,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;lastModif,&lt;/P&gt;&lt;P&gt;lastModifBy,&lt;/P&gt;&lt;P&gt;itemId &amp;amp; fieldId &amp;amp; value as mappingKey&lt;/P&gt;&lt;P&gt;RESIDENT TrackerFields;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DelimitedOptions:&lt;/P&gt;&lt;P&gt;lOAD itemId &amp;amp; fieldId &amp;amp; SubField(options,',',ITERNO()) AS&amp;nbsp; mappingKey,&lt;/P&gt;&lt;P&gt;SubField(options,',',ITERNO()) as ConsultantName&lt;/P&gt;&lt;P&gt;RESIDENT CombinedTable&lt;/P&gt;&lt;P&gt;WHILE(ITERNO()&amp;lt;=SubStringCount(options,',')+1) AND fieldId = 49;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Without select&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33826" class="jive-image-thumbnail jive-image jiveImage" alt="WithoutSelect.png" src="https://community.qlik.com/legacyfs/online/33826_WithoutSelect.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;With select&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33827" class="jive-image-thumbnail jive-image" onclick="" alt="WithSelect.png" src="https://community.qlik.com/legacyfs/online/33827_WithSelect.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Feb 2013 18:01:49 GMT</pubDate>
    <dc:creator>nsm1234567</dc:creator>
    <dc:date>2013-02-24T18:01:49Z</dc:date>
    <item>
      <title>Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466095#M174156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been battling quite a bit with an issue I'm also battling to articulate.&amp;nbsp; The below table represents my data once it's imported into QV.&amp;nbsp; The below is a single entry from a form used to capture data.&amp;nbsp; So this is John Smith who made a sale for "MyCompany" and the reference for his sale is 123456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've then taken a second table that contains a list of all the consultants and joined this to the first table.&amp;nbsp; The problem is that while "consultant" is now associated with John Smith, it's not associated with any of the related info.&amp;nbsp; What I want to do is have each "value" associated with "John Smith" such that John Smith will appear in all three rows, rather than just the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm battling to get this right.&amp;nbsp; Does anyone have any ideas?&amp;nbsp; In essence, the issue is that the "value" column contains all of the fields captured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;fieldId&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;itemId&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;consultant&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Salesperson&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;MyCompany&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;51&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Policy Reference&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 16:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466095#M174156</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2013-02-24T16:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466096#M174157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am understanding you, it appears you already have the association you want.&amp;nbsp; Can you describe your Table schema (or post screenshot of Table Viewer)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Donald Hutchins&amp;nbsp; (to clarify response)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 17:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466096#M174157</guid>
      <dc:creator />
      <dc:date>2013-02-24T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466097#M174158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It occurs to me that perhaps I misunderstood, and it's not an association you are after, rather you are Joining to create this table (as you picture it) in your Load Script.&amp;nbsp; And if that is the case, post your script to help clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 17:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466097#M174158</guid>
      <dc:creator />
      <dc:date>2013-02-24T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466098#M174159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there, thanks for your response.&amp;nbsp; I've pasted the relevant sections of the script below.&amp;nbsp; Options is a comma delimited list of consultant names.&amp;nbsp; So I first create a table called "CombinedTable", then I'm delimiting "Options." I've pasted two screenshots to try and illustrate the issue.&amp;nbsp; If I filter using the name of a consultant, I don't want to lose other items with the same itemId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CombinedTable:&lt;/P&gt;&lt;P&gt;LOAD fieldId,&lt;/P&gt;&lt;P&gt;trackerId,&lt;/P&gt;&lt;P&gt;name,&lt;/P&gt;&lt;P&gt;options,&lt;/P&gt;&lt;P&gt;itemId,&lt;/P&gt;&lt;P&gt;value,&lt;/P&gt;&lt;P&gt;DateTimeCreated,&lt;/P&gt;&lt;P&gt;MonthCreated,&lt;/P&gt;&lt;P&gt;YearCreated,&lt;/P&gt;&lt;P&gt;created,&lt;/P&gt;&lt;P&gt;Auditor,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;lastModif,&lt;/P&gt;&lt;P&gt;lastModifBy,&lt;/P&gt;&lt;P&gt;itemId &amp;amp; fieldId &amp;amp; value as mappingKey&lt;/P&gt;&lt;P&gt;RESIDENT TrackerFields;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DelimitedOptions:&lt;/P&gt;&lt;P&gt;lOAD itemId &amp;amp; fieldId &amp;amp; SubField(options,',',ITERNO()) AS&amp;nbsp; mappingKey,&lt;/P&gt;&lt;P&gt;SubField(options,',',ITERNO()) as ConsultantName&lt;/P&gt;&lt;P&gt;RESIDENT CombinedTable&lt;/P&gt;&lt;P&gt;WHILE(ITERNO()&amp;lt;=SubStringCount(options,',')+1) AND fieldId = 49;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Without select&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33826" class="jive-image-thumbnail jive-image jiveImage" alt="WithoutSelect.png" src="https://community.qlik.com/legacyfs/online/33826_WithoutSelect.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;With select&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33827" class="jive-image-thumbnail jive-image" onclick="" alt="WithSelect.png" src="https://community.qlik.com/legacyfs/online/33827_WithSelect.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 18:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466098#M174159</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2013-02-24T18:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466099#M174160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NSM....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview doesn't work like that,,,,Meaning your data will be filtered based on the selections you make...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i would suggest you to update your script to associate missing "Consultant Names" wiht the one you have ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example...&lt;/P&gt;&lt;P&gt;Do a Mapping load and replace those NULL items with "Test user" or its relevent data...based on Item Num..&lt;/P&gt;&lt;P&gt;Here 111 associated with Test user..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 18:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466099#M174160</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-02-24T18:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466100#M174161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the DelimitedOptions table, you create mappingKey using itemID + fieldid + (a consultant's name based on the iteration)...&lt;/P&gt;&lt;P&gt;But the mappingKey of your CombinedTable is itemID + fieldID + &lt;STRONG&gt;value&lt;/STRONG&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gather you want DelimitedOptions to be a list of Consultants, with mappingKey to be the link.&amp;nbsp; But currently, that's only going to happen if [value] is the name of the Consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there not a unique ID column for your CombinedTable?&amp;nbsp; If so, use that, or use what you have, but you must be consistent and use the same in your DelimitedOptions table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 18:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466100#M174161</guid>
      <dc:creator />
      <dc:date>2013-02-24T18:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add item for each unique entry</title>
      <link>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466101#M174162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, thanks for the response. I realise QV doesn't work that way, was just trying to illustrate my problem as I'm finding it difficult to articulate the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That kinda gets to the crux of the issue I'm facing then.&amp;nbsp; Consultants will capture a number of these daily (hundreds), so I don't think a mapping table is feasible.&amp;nbsp; So for all the identical itemId's, I want to have the consultant's name so that I &lt;EM&gt;can &lt;/EM&gt;filter using the ConsultantName and I'm really not sure how to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The itemId is 111 in this case, but like I say, the table will be growing daily and so I won't be able to use a mapping table (I don't think).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 18:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-item-for-each-unique-entry/m-p/466101#M174162</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2013-02-24T18:37:26Z</dc:date>
    </item>
  </channel>
</rss>

