<?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 Help getting distinct column in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623333#M733305</link>
    <description>&lt;P&gt;I need help getting a distinct customer age in to a column of a straight table. Some customers have 2 records due to having 2 different ages. All other fields in the record is the same. It's due to bad data and I can't change that, so I need to get either age as accuracy isn't important.&lt;/P&gt;&lt;P&gt;Here are the tables in my schema and I'm excluding non-relevant fields:&lt;/P&gt;&lt;P&gt;Customer:&lt;BR /&gt;Cust_Nbr&lt;BR /&gt;Cust_Age&lt;/P&gt;&lt;P&gt;Accounts:&lt;BR /&gt;Cust_Nbr&lt;BR /&gt;AccountNumber&lt;/P&gt;&lt;P&gt;Losses:&lt;BR /&gt;AccountNumber&lt;/P&gt;&lt;P&gt;The issue is when I add the field Cust_Age to my straight table. That puts multiple records in my straight table and I need only 1. I'd prefer to do this in the table, not the load script. I've tried adding a dimension and expression using avg, aggr and distinct but none work. What can I do?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>meckeard</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Help getting distinct column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623333#M733305</link>
      <description>&lt;P&gt;I need help getting a distinct customer age in to a column of a straight table. Some customers have 2 records due to having 2 different ages. All other fields in the record is the same. It's due to bad data and I can't change that, so I need to get either age as accuracy isn't important.&lt;/P&gt;&lt;P&gt;Here are the tables in my schema and I'm excluding non-relevant fields:&lt;/P&gt;&lt;P&gt;Customer:&lt;BR /&gt;Cust_Nbr&lt;BR /&gt;Cust_Age&lt;/P&gt;&lt;P&gt;Accounts:&lt;BR /&gt;Cust_Nbr&lt;BR /&gt;AccountNumber&lt;/P&gt;&lt;P&gt;Losses:&lt;BR /&gt;AccountNumber&lt;/P&gt;&lt;P&gt;The issue is when I add the field Cust_Age to my straight table. That puts multiple records in my straight table and I need only 1. I'd prefer to do this in the table, not the load script. I've tried adding a dimension and expression using avg, aggr and distinct but none work. What can I do?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623333#M733305</guid>
      <dc:creator>meckeard</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting distinct column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623336#M733307</link>
      <description>&lt;P&gt;You can change it either in script editor or in frontend. Either load distinct, or min or max.&lt;/P&gt;&lt;P&gt;If you can't make changes in script editor, then use age as measure and as formula use either min or max (or average, doesn't matter):&lt;/P&gt;&lt;P&gt;Max(Cust_Age)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 16:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623336#M733307</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2019-09-12T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting distinct column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623345#M733309</link>
      <description>&lt;P&gt;DavidM,&lt;/P&gt;&lt;P&gt;That worked as an expression but returned all accountnumber records, even those without a customer record.&amp;nbsp; However, I remembered the "suppress when value is null" option, selected it and that worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New question - can I promote the expression within the group of dimensions?&amp;nbsp; I'm guessing no and that's why I wanted this to be a dimension so I could move it to the front of the list of columns.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 16:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623345#M733309</guid>
      <dc:creator>meckeard</dc:creator>
      <dc:date>2019-09-12T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting distinct column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623585#M733310</link>
      <description>&lt;P&gt;Do you mean that you want to put the age as first column in the table? You can just drag &amp;amp; drop it in the front.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am afraid, there is no way to show just one value as long as it dimension (I am guessing fixing this in script is not an option for you).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 07:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-getting-distinct-column-in-straight-table/m-p/1623585#M733310</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2019-09-13T07:49:21Z</dc:date>
    </item>
  </channel>
</rss>

