<?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: Take Distinct Key and join Flags from non-distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776704#M275336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 22:35:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-22T22:35:19Z</dc:date>
    <item>
      <title>Take Distinct Key and join Flags from non-distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776701#M275333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I want to take a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;key&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag1&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag2&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make another table like this, that is only the distinct keys with flags joined to it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192pt;" width="256"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;key&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag1&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag2&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;flag3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there's an easy way to do this but I'm kind of slow today. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 20:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776701#M275333</guid>
      <dc:creator />
      <dc:date>2014-12-22T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Take Distinct Key and join Flags from non-distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776702#M275334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a row can never have a 1 in multiple flags you could Sum the flag fields and group by Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Flag1) as Flag1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Flag2) as Flag2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Flag3) as Flag3&lt;/P&gt;&lt;P&gt;Resident data&lt;/P&gt;&lt;P&gt;Group By Key;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 20:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776702#M275334</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2014-12-22T20:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Take Distinct Key and join Flags from non-distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776703#M275335</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;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Flag1) as Flag1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Flag2) as Flag2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Flag3) as Flag3&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group By Key;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 20:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776703#M275335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-22T20:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Take Distinct Key and join Flags from non-distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776704#M275336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 22:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Take-Distinct-Key-and-join-Flags-from-non-distinct/m-p/776704#M275336</guid>
      <dc:creator />
      <dc:date>2014-12-22T22:35:19Z</dc:date>
    </item>
  </channel>
</rss>

