<?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: Get relevant values under the same key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506914#M600115</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;This is not good enough, this solution useful for 2,3,4 keys. I am looking for a solution for thousands of keys.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 08:45:34 GMT</pubDate>
    <dc:creator>kfir1987</dc:creator>
    <dc:date>2018-11-15T08:45:34Z</dc:date>
    <item>
      <title>Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506865#M600112</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a problem during my project. I have 2 columns:&lt;/P&gt;&lt;P&gt;Key (string),&lt;/P&gt;&lt;P&gt;SC (string)&lt;/P&gt;&lt;P&gt;for each key I can find few SC. I have 3 value under SC column: direct, indirect and N/A.&lt;/P&gt;&lt;P&gt;my question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case key contain 2 instances of SC, that one of them is N/A and the second&amp;nbsp;one is direct or indirect then show only the indirect or direct instance.&lt;/P&gt;&lt;P&gt;for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key&amp;nbsp; &amp;nbsp; &amp;nbsp; SC&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N/A&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Indirect&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Direct&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N/A&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Direct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;in the end I want to see the below table:&lt;/P&gt;&lt;P&gt;Key&amp;nbsp; &amp;nbsp; &amp;nbsp; SC&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Indirect&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Direct&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Direct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do it in the editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506865#M600112</guid>
      <dc:creator>kfir1987</dc:creator>
      <dc:date>2024-11-16T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506900#M600114</link>
      <description>&lt;P&gt;T:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key, SC&lt;BR /&gt;1, N/A&lt;BR /&gt;1, Indirect&lt;BR /&gt;2, Direct&lt;BR /&gt;3, N/A&lt;BR /&gt;3, Direct&lt;BR /&gt;];&lt;BR /&gt;Join Load Key , count(SC) as SC_Count Resident T Group by Key;&lt;/P&gt;&lt;P&gt;Final_Set:&lt;BR /&gt;Load Key , SC Resident T where SC_Count=1;Concatenate&lt;BR /&gt;LOAD Key , SC Resident T where SC_Count&amp;lt;&amp;gt;1 and SC&amp;lt;&amp;gt;'N/A';&lt;/P&gt;&lt;P&gt;DROP Table T;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 07:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506900#M600114</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2018-11-15T07:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506914#M600115</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;This is not good enough, this solution useful for 2,3,4 keys. I am looking for a solution for thousands of keys.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 08:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1506914#M600115</guid>
      <dc:creator>kfir1987</dc:creator>
      <dc:date>2018-11-15T08:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507176#M600116</link>
      <description>&lt;P&gt;I would request can you share some data over which you are working, so that we can provide you a perfect solution.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507176#M600116</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2018-11-15T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507230#M600117</link>
      <description>&lt;P&gt;This may be another option&lt;/P&gt;&lt;PRE&gt;Table:
LOAD Key,
	 SC,
	 Match(SC, 'Direct', 'Indirect', 'N/A') as SCNum;
LOAD * INLINE [
    Key, SC
    1, N/A
    1, Indirect
    2, Direct
    3, N/A
    3, Direct
];

FinalTable:
NoConcatenate
LOAD *
Resident Table
Order By Key, SCNum;

STORE FinalTable into Temp.qvd (qvd);
DROP Table Table, FinalTable;

Table:
LOAD Key,
	 SC
FROM Temp.qvd (qvd)
Where not Exists (Key);&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 13:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507230#M600117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T13:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get relevant values under the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507990#M600118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this script .may be it would helpful to you&lt;/P&gt;&lt;P&gt;load&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;SC&lt;/P&gt;&lt;P&gt;from location where match(SC,'Direct','Indirect');&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 12:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-relevant-values-under-the-same-key/m-p/1507990#M600118</guid>
      <dc:creator>sasis551</dc:creator>
      <dc:date>2018-11-16T12:03:34Z</dc:date>
    </item>
  </channel>
</rss>

