<?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 Flag the line that doesn't meet a conditon in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020810#M635239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey fellow Qlikkers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got another one today that I'm having a hard time with in the script. I want to flag the below highlighted field with a 1. The reasoning behind it is that the line item only has an 'E' in the last column. I need this for both situations, whether the line item only has an 'E' or a 'Q'. We'll want to toss lines out that have both Es and Qs. The flag of 1 is only needed for those lines that don't have both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the excel sheet and a qvw. Thanks a lot! I may have a backup plan if we can't get this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="falg.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121404_falg.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 16:00:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-12T16:00:31Z</dc:date>
    <item>
      <title>Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020810#M635239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey fellow Qlikkers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got another one today that I'm having a hard time with in the script. I want to flag the below highlighted field with a 1. The reasoning behind it is that the line item only has an 'E' in the last column. I need this for both situations, whether the line item only has an 'E' or a 'Q'. We'll want to toss lines out that have both Es and Qs. The flag of 1 is only needed for those lines that don't have both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the excel sheet and a qvw. Thanks a lot! I may have a backup plan if we can't get this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="falg.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121404_falg.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020810#M635239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020811#M635240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only have two categories,try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (YourTable)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(DISTINCT PO_History_Cat) =1,1) as Flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PO#,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PO_Item&lt;/P&gt;&lt;P&gt;RESIDENT YourTable&lt;/P&gt;&lt;P&gt;GROUP BY&amp;nbsp;&amp;nbsp; PO#,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PO_Item;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020811#M635240</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020812#M635241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BYAH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD PO#, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PO_Item, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcctDoc, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcctLine, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DollarValue, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DollarValueAcct, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PO_History_Cat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FlagTheLine.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (BYAH)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD PO_Item,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Count(DISTINCT PO_History_Cat) = 1, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident BYAH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By PO_Item;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121407_Capture.PNG" style="height: 285px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020812#M635241</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-12T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020813#M635242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020813#M635242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T17:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020814#M635243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i feel like PO# is def needed in the load here for use with the entire dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020814#M635243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T17:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flag the line that doesn't meet a conditon</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020815#M635244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, since your data only had one PO#, i missed to include it, but real data may require you to add PO# to make the row line unique for performing the count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-the-line-that-doesn-t-meet-a-conditon/m-p/1020815#M635244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-12T17:45:06Z</dc:date>
    </item>
  </channel>
</rss>

