<?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: Replace a field value subject to a specific combinations of fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277600#M621237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both, sometimes the solution is so easy :-). QlikView is such a great tool!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 10:23:47 GMT</pubDate>
    <dc:creator>chriys1337</dc:creator>
    <dc:date>2017-02-02T10:23:47Z</dc:date>
    <item>
      <title>Replace a field value subject to a specific combinations of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277597#M621234</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 have a task in front of me, where the table looks like: ID, Country and Place.&lt;/P&gt;&lt;P&gt;So if the Country is a specific value like "GERMANY" and the Place is "Munich", I would like to create a new field with the value "GER South".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this with Group by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Test:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#GEO_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name_test&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Place_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Place_Name_test&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'GERMANY' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Place_Name_test&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= 'Munich', 'GER South',&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_new&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [Geo From] &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_Name_test&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Place_Name_test&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but there is a error occurring, "Aggregation expressions required by GROUP BY clause", so I guess my group by idea is not working out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an idea how to handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277597#M621234</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2017-02-02T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field value subject to a specific combinations of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277598#M621235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need Group By here since you are not doing any Sum() or Count() in your load.... try just this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD #GEO_ID as ID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country_Name as Country_Name_test,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Place_Name as Place_Name_test,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Country_Name = 'GERMANY' and &lt;SPAN style="color: #ff0000;"&gt;Place_Name &lt;/SPAN&gt;= 'Munich', 'GER South', Country_Name) as Country_Name_new&amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident [Geo From];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277598#M621235</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T10:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field value subject to a specific combinations of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277599#M621236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In above you didn't use any aggregations right?&lt;/P&gt;&lt;P&gt;then why you specified&lt;STRONG&gt; Group by clause.it is not required.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277599#M621236</guid>
      <dc:creator>surendraj</dc:creator>
      <dc:date>2017-02-02T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field value subject to a specific combinations of fields</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277600#M621237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both, sometimes the solution is so easy :-). QlikView is such a great tool!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-a-field-value-subject-to-a-specific-combinations-of/m-p/1277600#M621237</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2017-02-02T10:23:47Z</dc:date>
    </item>
  </channel>
</rss>

