<?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 Importscript item attribute problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162139#M35751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't solve my problem, I still got 600K+ MST_ITEM_DATA items and 40K MST_ITEM_MAIN items. The MST_ITEM_DATA items have to be coupled to the MST_ITEM_MAIN items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 15:21:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-16T15:21:39Z</dc:date>
    <item>
      <title>Importscript item attribute problem</title>
      <link>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162137#M35749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the moment, I'm dealing with an importscript problem with QlikView 9SR5. In this script, I'm importing records (key is ITEM_ID) from a database. This record excists of several fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Articles:&lt;BR /&gt;LOAD&lt;BR /&gt; "ITEM_ID",&lt;BR /&gt; "ITEM_CODE" AS ArticleNumber,&lt;BR /&gt; "ITEM_REV" AS ArticleRevision,&lt;BR /&gt; "ITEM_GROUP" AS ArticleGroup,&lt;BR /&gt; "ITEM_DESC1" AS ArticleDescription1,&lt;BR /&gt; "ITEM_DESC2" AS ArticleDescription2,&lt;BR /&gt; "ITEM_DESC5" AS ArticleDescription5,&lt;BR /&gt; "ITEM_CURRENT" AS ArticleCurrent,&lt;BR /&gt; applymap('Temp_Preferred_Excel',ITEM_ID) AS ArticlePreferredFromExcel;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM MST."MST_ITEM_MAIN";&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so good. After this, I'm importing the attributes for the 'Articles' from a different table (structure: ITEM_ID, HEADER_CODE, TECH_VALUE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;ArticleAttributes:&lt;BR /&gt;LOAD&lt;BR /&gt; "ITEM_ID",&lt;BR /&gt; if("HEADER_CODE" = 'COLOR', "TECH_VALUE") AS ArticleAttributeColor,&lt;BR /&gt; if("HEADER_CODE" = 'CURRENT', "TECH_VALUE") AS ArticleAttributeCurrent,&lt;BR /&gt; if("HEADER_CODE" = 'DIAMETER', "TECH_VALUE") AS ArticleAttributeDiameter,&lt;BR /&gt; if("HEADER_CODE" = 'HEIGHT', "TECH_VALUE") AS ArticleAttributeHeight,&lt;BR /&gt; if("HEADER_CODE" = 'LENGTH', "TECH_VALUE") AS ArticleAttributeLenght,&lt;BR /&gt; if("HEADER_CODE" = 'POWER', "TECH_VALUE") AS ArticleAttributePower,&lt;BR /&gt; if("HEADER_CODE" = 'PREFPART', "TECH_VALUE") AS ArticleAttributePrefpart,&lt;BR /&gt; if("HEADER_CODE" = 'RESISTANCE', "TECH_VALUE") AS ArticleAttributeResistance,&lt;BR /&gt; if("HEADER_CODE" = 'ROHS', "TECH_VALUE") AS ArticleAttributeRohs,&lt;BR /&gt; if("HEADER_CODE" = 'VOLTAGE', "TECH_VALUE") AS ArticleAttributeVoltage,&lt;BR /&gt; if("HEADER_CODE" = 'WIDTH', "TECH_VALUE") AS ArticleAttributeWidth;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM MST."MST_ITEM_DATA";&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I would like to couple this table to the first table so the structure is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM_ID, ITEM_CODE, ... , ArticlePreferredFromExcel, ArticleAttributeColor, ... ArticleAttributeWidth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a LEFT JOIN to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LEFT JOIN (Articles)&lt;BR /&gt; LOAD *&lt;BR /&gt;RESIDENT ArticleAttributes;&lt;BR /&gt;DROP TABLE ArticleAttributes;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;But this won't give me the result I want. Because it has to be possible to have multiple attributes to a single ITEM_CODE. At the moment, every ITEM_CODE has only one attribute. So it's not possible to make a multiple attribute selection in a multibox (for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I making a bad join or do I have to change the code in 'ArticleAttributes'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martijn te Molder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 13:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162137#M35749</guid>
      <dc:creator />
      <dc:date>2010-08-16T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Importscript item attribute problem</title>
      <link>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162138#M35750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try only JOIN (TABLENAME) instead of left join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 15:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162138#M35750</guid>
      <dc:creator>Caique_Zaniolo</dc:creator>
      <dc:date>2010-08-16T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Importscript item attribute problem</title>
      <link>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162139#M35751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't solve my problem, I still got 600K+ MST_ITEM_DATA items and 40K MST_ITEM_MAIN items. The MST_ITEM_DATA items have to be coupled to the MST_ITEM_MAIN items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 15:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importscript-item-attribute-problem/m-p/162139#M35751</guid>
      <dc:creator />
      <dc:date>2010-08-16T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

