<?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 values with one value for unique ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680287#M592481</link>
    <description>&lt;P&gt;attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 242px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29303iEDEA87FC1E870865/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 10:24:50 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-02-28T10:24:50Z</dc:date>
    <item>
      <title>Replace values with one value for unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680260#M592480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with ID and Value field. I want to replace all values with a single value for a condition.&lt;/P&gt;&lt;P&gt;For example if a ID contains "Apple" Replace all values with "Fruit" for a thatID, if it doesn't contain "Apple" replace with others.&lt;/P&gt;&lt;P&gt;Below is my table&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;ID, Value&lt;BR /&gt;1, Apple&lt;BR /&gt;1, Orange&lt;BR /&gt;1, Banana&lt;BR /&gt;2, Apple&lt;BR /&gt;2, Mango&lt;BR /&gt;2, Date&lt;BR /&gt;3, Wallnut&lt;BR /&gt;4, Peas&lt;BR /&gt;5, Papaya&lt;BR /&gt;5, Apple&lt;BR /&gt;5, Orange&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My output expectation is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;ID, Value&lt;BR /&gt;1, Fruit&lt;BR /&gt;2, Fruit&lt;BR /&gt;3, Others&lt;BR /&gt;4, Others&lt;BR /&gt;5, Fruit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestion please. Sample file attached.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 09:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680260#M592480</guid>
      <dc:creator>safik003</dc:creator>
      <dc:date>2020-02-28T09:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace values with one value for unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680287#M592481</link>
      <description>&lt;P&gt;attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 242px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29303iEDEA87FC1E870865/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 10:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680287#M592481</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-02-28T10:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace values with one value for unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680289#M592482</link>
      <description>&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;ID, Value&lt;BR /&gt;1, Apple&lt;BR /&gt;1, Orange&lt;BR /&gt;1, Banana&lt;BR /&gt;2, Apple&lt;BR /&gt;2, Mango&lt;BR /&gt;2, Date&lt;BR /&gt;3, Wallnut&lt;BR /&gt;4, Peas&lt;BR /&gt;5, Papaya&lt;BR /&gt;5, Apple&lt;BR /&gt;5, Orange&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;FindIDwithApple:&lt;BR /&gt;Load Distinct ID as AppleID&lt;BR /&gt;Resident Test where Value = 'Apple';&lt;/P&gt;&lt;P&gt;Final:&lt;BR /&gt;Load Distinct ID as ID1,If(Exists(AppleID,ID),'Fruit','Other') as Value1&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 10:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-with-one-value-for-unique-ID/m-p/1680289#M592482</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2020-02-28T10:26:36Z</dc:date>
    </item>
  </channel>
</rss>

