<?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: Re: How to create another field in an existing table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602499#M1113136</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;You need the calculate manual in the script which is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can make another table included productName or Code with groupCode (A,B,C) then you can join it with your main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 19:45:39 GMT</pubDate>
    <dc:creator>makkemik</dc:creator>
    <dc:date>2014-02-18T19:45:39Z</dc:date>
    <item>
      <title>How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602494#M1113131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have an invoice table loaded. One of the field is "Product Name". I am trying to add another field called "Product Group". (Please see attached file. )&lt;/P&gt;&lt;P&gt;The current script is as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InvoiceTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;InvoiceTable.ProductName,&lt;/P&gt;&lt;P&gt;InvoiceNumber,&lt;/P&gt;&lt;P&gt;InvoiceTable.Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[..\..\OrderDetail.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602494#M1113131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-18T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602495#M1113132</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;you missed attachment in your post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602495#M1113132</guid>
      <dc:creator />
      <dc:date>2014-02-18T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602496#M1113133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Product Group field is derived (calculated) from the Product Name field you can do it in the same load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13927507669941890" jivemacro_uid="_13927507669941890"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceTable:&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceTable.ProductName,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceNumber,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceTable.Amount,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;subfield(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InvoiceTable.ProductName&lt;/SPAN&gt;, '\', 1) as ProductGroup // this is just an imaginary example&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;From&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;[..\..\OrderDetail.qvd]&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get the information from another source you can load it in another table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13927507669792737" jivemacro_uid="_13927507669792737"&gt;
&lt;P&gt;&lt;EM&gt;Products:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load ProductName as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InvoiceTable.ProductName&lt;/SPAN&gt;, ProductGroup&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;From &lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;[..\..\Products.qvd]&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could join the information the the InvoiceTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1392750766947432" jivemacro_uid="_1392750766947432"&gt;
&lt;P&gt;&lt;EM&gt;join(InvoiceTable)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load ProductName as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InvoiceTable.ProductName&lt;/SPAN&gt;, ProductGroup&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;From &lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;[..\..\Products.qvd]&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;Or you could first load the ProductGroups in a mapping table and use the applymap function:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13927507668856386 jive_macro_code" jivemacro_uid="_13927507668856386" modifiedtitle="true"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;MapGroups:&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;mapping &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load ProductName, ProductGroup&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;From &lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;[..\..\Products.qvd]&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;InvoiceTable:&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceTable.ProductName,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceNumber,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;InvoiceTable.Amount,&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;applymap('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MapGroups&lt;/SPAN&gt;',InvoiceTable.ProductName) as ProductGroup&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; From&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;[..\..\OrderDetail.qvd]&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602496#M1113133</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-18T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602497#M1113134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachment is now added. The new field is not an existing field in the database. I have to create it on my own as mentioned in the attachment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602497#M1113134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-18T19:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602498#M1113135</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;Try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InvoiceTable:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InvoiceTable.ProductName,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InvoiceNumber,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pick(WildMatch(ProductName,'M12*','N23*','GE*','TD10*'),'A','A','B','C') as PRODUCTGROUP,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InvoiceTable.Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[..\..\OrderDetail.qvd]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602498#M1113135</guid>
      <dc:creator />
      <dc:date>2014-02-18T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to create another field in an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602499#M1113136</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;You need the calculate manual in the script which is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can make another table included productName or Code with groupCode (A,B,C) then you can join it with your main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-another-field-in-an-existing-table/m-p/602499#M1113136</guid>
      <dc:creator>makkemik</dc:creator>
      <dc:date>2014-02-18T19:45:39Z</dc:date>
    </item>
  </channel>
</rss>

