<?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: Flag rows based on another field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-rows-based-on-another-field-value/m-p/637656#M676542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is what you are looking for.&lt;/P&gt;&lt;P&gt;The expression will be like : field2=rangesum(above(if(aggr(max ( f1),Ano)=1,1,0),0,RowNo())).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample I used to come up with the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ahve a productiondate, f1 (field1) and Ano (AccountNo). You can see the field 2 result in the chart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 15:39:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-03T15:39:44Z</dc:date>
    <item>
      <title>Flag rows based on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-rows-based-on-another-field-value/m-p/637655#M676541</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;I am interested in looking at sets of rows with common account numbers, and assigning a 1 to a field in these rows if another field is true in any of these rows. To be more specific, I have fields called [Account Number], [field1] and [Production Date] - there are several rows for each Account Number since there's one for each production date. I need to figure out an efficient way to determine if field1 is ever true for each Account Number's set of rows and if so, I would like to assign a 1 to a field2 for every single one of those account numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this would flag every row for each Account Number that once contained a 1 in field1. Does anybody know how this could be done in the script or in the actual worksheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 14:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-rows-based-on-another-field-value/m-p/637655#M676541</guid>
      <dc:creator />
      <dc:date>2014-06-03T14:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Flag rows based on another field value</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-rows-based-on-another-field-value/m-p/637656#M676542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is what you are looking for.&lt;/P&gt;&lt;P&gt;The expression will be like : field2=rangesum(above(if(aggr(max ( f1),Ano)=1,1,0),0,RowNo())).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample I used to come up with the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ahve a productiondate, f1 (field1) and Ano (AccountNo). You can see the field 2 result in the chart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 15:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-rows-based-on-another-field-value/m-p/637656#M676542</guid>
      <dc:creator />
      <dc:date>2014-06-03T15:39:44Z</dc:date>
    </item>
  </channel>
</rss>

