<?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: Data reduction by Flag field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952053#M953865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (DATA)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Serial #],&lt;/P&gt;&lt;P&gt;sum(if([OL-Inv.Flag]='Counted',1,0)) as DUMBY_COUNT&lt;/P&gt;&lt;P&gt;Resident DATA&lt;/P&gt;&lt;P&gt;Group By [Serial #]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_FINAL:&lt;/P&gt;&lt;P&gt;Load * Resident DATA Where &lt;SPAN style="font-size: 13.3333px;"&gt;DUMBY_COUNT = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field &lt;SPAN style="font-size: 13.3333px;"&gt;DUMBY_COUNT;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 16:08:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-20T16:08:52Z</dc:date>
    <item>
      <title>Data reduction by Flag field</title>
      <link>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952051#M953863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation i was hoping somebody could help me with. I'm trying to reduce the below attached data set by only showing Serial #'s that &lt;EM&gt;do not &lt;/EM&gt;have a flag of both 'Counted' and 'Inv. Bal.' in the OL-Inv.Flag field. I'm sure set analysis in a pivot/straight table or a left join using group by Serial # in the script will work... I am just having cloudy thoughts in coming up with a solution. Any help would be much appeciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reiterate, I'm just after Serial #'s &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;that have an indication of 'Inv. Bal.', but not 'Counted' in the OL-Inv.Flag field. They're all flagged as having &lt;SPAN style="font-size: 13.3333px;"&gt;'Inv. Bal.', so we'll want to exclude the Serial # entirely from the data set if it has a flag of 'Counted'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952051#M953863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data reduction by Flag field</title>
      <link>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952052#M953864</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;you could add this script after yours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Data_With_Counted: // know which serial not to take&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;distinct [Serial #] as Temp_Serial&lt;/P&gt;&lt;P&gt;resident DATA where OL-Inv.Flag='Counted';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate // retake DATA without those serial&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * resident DATA where not exists(Temp_Serial,[Serial #]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop tables Temp_Data_With_Counted, DATA; // drop previous not used tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952052#M953864</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-11-20T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data reduction by Flag field</title>
      <link>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952053#M953865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (DATA)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Serial #],&lt;/P&gt;&lt;P&gt;sum(if([OL-Inv.Flag]='Counted',1,0)) as DUMBY_COUNT&lt;/P&gt;&lt;P&gt;Resident DATA&lt;/P&gt;&lt;P&gt;Group By [Serial #]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_FINAL:&lt;/P&gt;&lt;P&gt;Load * Resident DATA Where &lt;SPAN style="font-size: 13.3333px;"&gt;DUMBY_COUNT = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field &lt;SPAN style="font-size: 13.3333px;"&gt;DUMBY_COUNT;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952053#M953865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data reduction by Flag field</title>
      <link>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952054#M953866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! don't know where my brain went this morning. I posted my own solution at about the same time.... lol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-reduction-by-Flag-field/m-p/952054#M953866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:12:22Z</dc:date>
    </item>
  </channel>
</rss>

