<?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 Straight table duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121680#M18599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom report where users can select dimensions and measures to bring up a straight table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That table has data something like the below:&lt;/P&gt;&lt;P&gt;Row Number, No of Seats, Count of PCs&lt;/P&gt;&lt;P&gt;1, 0, 20&lt;/P&gt;&lt;P&gt;1, 10, 20&lt;/P&gt;&lt;P&gt;1, 0, 20&lt;/P&gt;&lt;P&gt;2, 0, 10&lt;/P&gt;&lt;P&gt;3, 10, 10&lt;/P&gt;&lt;P&gt;4, 10, 20&lt;/P&gt;&lt;P&gt;4, 0, 10&lt;/P&gt;&lt;P&gt;5, 10, 20&lt;/P&gt;&lt;P&gt;6, 0, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to filter out the duplicate row numbers so that only the record with non-zero seats remains. For row numbers that are not duplicated, I don't want to filter anything. &lt;/P&gt;&lt;P&gt;Ex: Row number 1 has 3 records, but I need only the 2nd row which has a seat count. For Row Number 4, I need the 1st row with seat count 10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the above data set, I need the following:&lt;/P&gt;&lt;P&gt;Row Number, No of Seats, Count of PCs&lt;/P&gt;&lt;P&gt;1, 10, 20&lt;/P&gt;&lt;P&gt;2, 0, 10&lt;/P&gt;&lt;P&gt;3, 10, 10&lt;/P&gt;&lt;P&gt;4, 10, 20&lt;/P&gt;&lt;P&gt;5, 10, 20&lt;/P&gt;&lt;P&gt;6, 0, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2018 05:12:06 GMT</pubDate>
    <dc:creator>manas_bn</dc:creator>
    <dc:date>2018-08-09T05:12:06Z</dc:date>
    <item>
      <title>Straight table duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121680#M18599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom report where users can select dimensions and measures to bring up a straight table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That table has data something like the below:&lt;/P&gt;&lt;P&gt;Row Number, No of Seats, Count of PCs&lt;/P&gt;&lt;P&gt;1, 0, 20&lt;/P&gt;&lt;P&gt;1, 10, 20&lt;/P&gt;&lt;P&gt;1, 0, 20&lt;/P&gt;&lt;P&gt;2, 0, 10&lt;/P&gt;&lt;P&gt;3, 10, 10&lt;/P&gt;&lt;P&gt;4, 10, 20&lt;/P&gt;&lt;P&gt;4, 0, 10&lt;/P&gt;&lt;P&gt;5, 10, 20&lt;/P&gt;&lt;P&gt;6, 0, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to filter out the duplicate row numbers so that only the record with non-zero seats remains. For row numbers that are not duplicated, I don't want to filter anything. &lt;/P&gt;&lt;P&gt;Ex: Row number 1 has 3 records, but I need only the 2nd row which has a seat count. For Row Number 4, I need the 1st row with seat count 10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the above data set, I need the following:&lt;/P&gt;&lt;P&gt;Row Number, No of Seats, Count of PCs&lt;/P&gt;&lt;P&gt;1, 10, 20&lt;/P&gt;&lt;P&gt;2, 0, 10&lt;/P&gt;&lt;P&gt;3, 10, 10&lt;/P&gt;&lt;P&gt;4, 10, 20&lt;/P&gt;&lt;P&gt;5, 10, 20&lt;/P&gt;&lt;P&gt;6, 0, 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 05:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121680#M18599</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2018-08-09T05:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121681#M18600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not sure If understood you correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to add calculated dimension like that:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(aggr(sum([No of Seats]),[Row Number])=[No of Seats],[Row Number],if([No of Seats]=0,null(),[Row Number]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and suppres null values for this dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 06:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121681#M18600</guid>
      <dc:creator>mtucholski</dc:creator>
      <dc:date>2018-08-09T06:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121682#M18601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create straight table using below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension -- &lt;STRONG&gt;[Row Number]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;Sum([No of Seats])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Sum({&amp;lt;[No of Seats] = {"=Sum([No of Seats])&amp;gt;0"}&amp;gt;+&amp;lt;[No of Seats] -= {"=Sum([No of Seats])&amp;gt;0"}&amp;gt;} [Count of PCs])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 09:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-duplicates/m-p/121682#M18601</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-08-09T09:10:05Z</dc:date>
    </item>
  </channel>
</rss>

