<?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: Displaying distinct rows based on two columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2031447#M84952</link>
    <description>&lt;P&gt;Yeah it works perfectly, many thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 10:54:28 GMT</pubDate>
    <dc:creator>MarcelPadu</dc:creator>
    <dc:date>2023-01-30T10:54:28Z</dc:date>
    <item>
      <title>Displaying distinct rows based on two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2030886#M84907</link>
      <description>&lt;P&gt;Im trying to display rows from the table underneath but only when i have 2 or more C1 fields with the same value but different C2 values.&lt;/P&gt;
&lt;P&gt;In this case:&lt;/P&gt;
&lt;P&gt;Changes:&lt;BR /&gt;Load * inline [ &lt;BR /&gt;C1 C2&lt;BR /&gt;1 1&lt;BR /&gt;2 3&lt;BR /&gt;2 3&lt;BR /&gt;2 4&lt;BR /&gt;3 5&lt;BR /&gt;3 2&lt;BR /&gt;4 12 &lt;BR /&gt;4 12&lt;BR /&gt;6 10&lt;BR /&gt;] (delimiter is '\t');&lt;/P&gt;
&lt;P&gt;i should only display&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 3&lt;/P&gt;
&lt;P&gt;2 4&lt;/P&gt;
&lt;P&gt;5 3&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5 2&lt;/P&gt;
&lt;P&gt;i found that using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if(Aggr(Count(C1),C1)&amp;lt;&amp;gt;Aggr(Count(C2),C2),C1)&lt;/P&gt;
&lt;P&gt;helps me find the fields fast but it only displays 1 value of C2 and i have to check another table to see the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2030886#M84907</guid>
      <dc:creator>MarcelPadu</dc:creator>
      <dc:date>2023-01-27T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying distinct rows based on two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2030954#M84917</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I'd aggregate the data in the script and calculate a conditional flag that determines if the data should be displayed or not:&lt;/P&gt;
&lt;P&gt;ChangesFlag:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;C1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(C2_Count &amp;gt; 1, 1, 0)&amp;nbsp; &amp;nbsp;as ChangeFlag&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;C1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;count(C2) as C2_Count&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;C1, C2, 1 as NoconcatDummy&lt;/P&gt;
&lt;P&gt;RESIDENT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Changes&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;Something like this.&lt;/P&gt;
&lt;P&gt;Come to the virtual &lt;A href="https://masterssummit.com/" target="_blank" rel="noopener"&gt;Masters Summit for Qlik&lt;/A&gt; to learn advanced techniques like this one, and many others!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2030954#M84917</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2023-01-27T16:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying distinct rows based on two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2031418#M84949</link>
      <description>&lt;P&gt;=aggr(&lt;BR /&gt;if(count(distinct total &amp;lt;C1&amp;gt; C2)&amp;gt;1, &lt;STRONG&gt;C1&lt;/STRONG&gt;)&lt;BR /&gt;,C2,C1)&lt;/P&gt;
&lt;P&gt;Change bold to C2 for 2:nd column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_0-1675073474623.png" style="width: 745px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99128iF296F4CA17A64627/image-dimensions/745x216?v=v2" width="745" height="216" role="button" title="jbhappysocks_0-1675073474623.png" alt="jbhappysocks_0-1675073474623.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 10:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2031418#M84949</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-01-30T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying distinct rows based on two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2031447#M84952</link>
      <description>&lt;P&gt;Yeah it works perfectly, many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 10:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-distinct-rows-based-on-two-columns/m-p/2031447#M84952</guid>
      <dc:creator>MarcelPadu</dc:creator>
      <dc:date>2023-01-30T10:54:28Z</dc:date>
    </item>
  </channel>
</rss>

