<?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: Create a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16958#M2815</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;maybe I was not obvious,&lt;/P&gt;&lt;P&gt;I've well understood id being joined,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; table test :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="170"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="49"&gt;group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="47"&gt;id&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="74"&gt;score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempid:&lt;/P&gt;&lt;P&gt;load distinct id resident test;&lt;/P&gt;&lt;P&gt;tempgroup:&lt;/P&gt;&lt;P&gt;load distinct group resident test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outer join (tempid) load group resident tempgroup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get :&lt;/P&gt;&lt;P&gt;1 A&lt;/P&gt;&lt;P&gt;1 B&lt;/P&gt;&lt;P&gt;1 C&lt;/P&gt;&lt;P&gt;2 A&lt;/P&gt;&lt;P&gt;2 B&lt;/P&gt;&lt;P&gt;2 C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; left join (tempid) load&amp;nbsp; id,group ,score resident test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get new column with your value known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;noconcatenate load id,group, if(isnull(score),'N/A',score) as score resident tempid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table test;&lt;/P&gt;&lt;P&gt;drop table tempid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get now N/A if row A,B or C not exist in generic table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 07:39:09 GMT</pubDate>
    <dc:creator>ogautier62</dc:creator>
    <dc:date>2018-06-14T07:39:09Z</dc:date>
    <item>
      <title>Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16955#M2812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a scenario where I need to create a field based on if it exists or not and this is out of generic load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;Generic load&lt;/P&gt;&lt;P&gt;ID, key, value resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key has fieldnames like&amp;nbsp; city, country,region&lt;/P&gt;&lt;P&gt;I need to create a field "country" for the records that doesn't have "country" field coming out of this load.&lt;/P&gt;&lt;P&gt;eg: sample data that I have is below&lt;/P&gt;&lt;P&gt;id&amp;nbsp;&amp;nbsp; key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; city&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; country1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region1&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city2&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; region2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I need to create record for id=2 as it does not have fieldname "country" in the sample data above&lt;/P&gt;&lt;P&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; country&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help with how to achieve this result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16955#M2812</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-06-12T19:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16956#M2813</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;an idea:&lt;/P&gt;&lt;P&gt;with id field make an outer join with a single field table with 3 rows : city,country,region&lt;/P&gt;&lt;P&gt;to have this :&lt;/P&gt;&lt;P&gt;1 city&lt;/P&gt;&lt;P&gt;1 country&lt;/P&gt;&lt;P&gt;1 region&lt;/P&gt;&lt;P&gt;2 city&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then join this table with your generic load with if(isnull(value),'N/A', value ) as value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16956#M2813</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-06-13T18:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16957#M2814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we should not&amp;nbsp; be checking the values as Isnull. Need to look for 'field' (column header) available or no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id's are being joined to a table before generic load. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16957#M2814</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-06-13T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16958#M2815</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;maybe I was not obvious,&lt;/P&gt;&lt;P&gt;I've well understood id being joined,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; table test :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="170"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="49"&gt;group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="47"&gt;id&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="74"&gt;score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempid:&lt;/P&gt;&lt;P&gt;load distinct id resident test;&lt;/P&gt;&lt;P&gt;tempgroup:&lt;/P&gt;&lt;P&gt;load distinct group resident test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outer join (tempid) load group resident tempgroup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get :&lt;/P&gt;&lt;P&gt;1 A&lt;/P&gt;&lt;P&gt;1 B&lt;/P&gt;&lt;P&gt;1 C&lt;/P&gt;&lt;P&gt;2 A&lt;/P&gt;&lt;P&gt;2 B&lt;/P&gt;&lt;P&gt;2 C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; left join (tempid) load&amp;nbsp; id,group ,score resident test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get new column with your value known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;noconcatenate load id,group, if(isnull(score),'N/A',score) as score resident tempid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table test;&lt;/P&gt;&lt;P&gt;drop table tempid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get now N/A if row A,B or C not exist in generic table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 07:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16958#M2815</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-06-14T07:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16959#M2816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Olivier!&lt;/P&gt;&lt;P&gt;But I need it out of generic load. How to achieve with this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic load table create separate tables for each of the 'key'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic Load&lt;/P&gt;&lt;P&gt;ID, Key, attribute;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and we can't use Noconcatenate for this.&lt;/P&gt;&lt;P&gt;Can you please share a working sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 18:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16959#M2816</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-06-19T18:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16960#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Olivier!&lt;/P&gt;&lt;P&gt;how can I get just one key...not all keys. like in my initial post..&lt;/P&gt;&lt;P&gt;I want to insert only the 'country' key for the records (if they don't already have it)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field/m-p/16960#M2817</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2018-06-19T19:44:24Z</dc:date>
    </item>
  </channel>
</rss>

