<?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 with possibly looping within an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291981#M1202465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;COUNT(DISTINCT( If (IsNull(CLOSURE_CODE_ID)=0 AND OWNINGLOCATION='1ST' AND SUM(IF(LOCATION='1ST', 0, ENQUIRY))=0, ENQUIRY)))&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;In the above expression I need to count all records that have a value for OwningLocation as "1ST" and also that every record in a related table for the same &lt;I&gt;Enquiry&lt;/I&gt; has a value for &lt;I&gt;Location&lt;/I&gt; as "1ST" also.&lt;/P&gt;&lt;P&gt;The second table can concievably have any number of records relating to the one &lt;I&gt;Enquiry.&lt;/I&gt; So i figured doing a sum of all those records that dont equal "1ST" would be one way to loop round them all.&lt;/P&gt;&lt;P&gt;For Example The tables (simplified) could look like this:&lt;/P&gt;&lt;P&gt;Table A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 173pt; border-collapse: collapse;" width="230"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 113pt;" width="150" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="width: 60pt; height: 12.75pt;" width="80"&gt;ENQUIRY&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 113pt;" width="150"&gt;OWNINGLOCATION&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;123&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;SER&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 237pt;" width="315"&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 113pt;" width="150" /&gt;&lt;COL style="width: 64pt;" width="85" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; width: 60pt;" width="80"&gt;ENQUIRY&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 113pt;" width="150"&gt;LOCATION&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 64pt;" width="85"&gt;Sequence No&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;123&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;SER&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So From Table A all i want to count is 121 and 125 as these are the only two enquiries that have "1ST" as the location in every record on the tables. All the other enquiries have moved to a different location at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stumped.&lt;BR /&gt;And I am sure everyone reading this is also. Clear as mud ?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 11:39:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-01T11:39:38Z</dc:date>
    <item>
      <title>Help with possibly looping within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291981#M1202465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;COUNT(DISTINCT( If (IsNull(CLOSURE_CODE_ID)=0 AND OWNINGLOCATION='1ST' AND SUM(IF(LOCATION='1ST', 0, ENQUIRY))=0, ENQUIRY)))&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;In the above expression I need to count all records that have a value for OwningLocation as "1ST" and also that every record in a related table for the same &lt;I&gt;Enquiry&lt;/I&gt; has a value for &lt;I&gt;Location&lt;/I&gt; as "1ST" also.&lt;/P&gt;&lt;P&gt;The second table can concievably have any number of records relating to the one &lt;I&gt;Enquiry.&lt;/I&gt; So i figured doing a sum of all those records that dont equal "1ST" would be one way to loop round them all.&lt;/P&gt;&lt;P&gt;For Example The tables (simplified) could look like this:&lt;/P&gt;&lt;P&gt;Table A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 173pt; border-collapse: collapse;" width="230"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 113pt;" width="150" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="width: 60pt; height: 12.75pt;" width="80"&gt;ENQUIRY&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 113pt;" width="150"&gt;OWNINGLOCATION&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;123&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;SER&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 237pt;" width="315"&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 113pt;" width="150" /&gt;&lt;COL style="width: 64pt;" width="85" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; width: 60pt;" width="80"&gt;ENQUIRY&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 113pt;" width="150"&gt;LOCATION&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none; width: 64pt;" width="85"&gt;Sequence No&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;121&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;122&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;123&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;SER&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;124&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2ND&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="left" class="xl24" height="17" style="border-top: medium none; height: 12.75pt;"&gt;125&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1ST&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So From Table A all i want to count is 121 and 125 as these are the only two enquiries that have "1ST" as the location in every record on the tables. All the other enquiries have moved to a different location at some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stumped.&lt;BR /&gt;And I am sure everyone reading this is also. Clear as mud ?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291981#M1202465</guid>
      <dc:creator />
      <dc:date>2010-12-01T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Help with possibly looping within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291982#M1202466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could possibly do this with set analysis in the following way:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;OWNINGLOCATION={'1ST'},ENQUIRY=E({1&amp;lt;LOCATION-={'1ST'}&amp;gt;})&amp;gt;} distinct ENQUIRY)&lt;/P&gt;&lt;P&gt;which will exclude any enquiry that has a value in location different than '1ST'.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291982#M1202466</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-01T23:07:47Z</dc:date>
    </item>
    <item>
      <title>Help with possibly looping within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291983#M1202467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be this would work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;count&lt;/B&gt;({$&amp;lt;&lt;B&gt;OWNINGLOCATION&lt;/B&gt;={'1ST'},&lt;B&gt;ENQUIRY&lt;/B&gt;={&lt;B&gt;"=count({$&amp;lt;LOCATION={'1ST'}&amp;gt;} ENQUIRY)=Count(ENQUIRY)"&lt;/B&gt;}&amp;gt;} &lt;B&gt;distinct&lt;/B&gt; &lt;B&gt;ENQUIRY&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;But Karl's Solution is better. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 23:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291983#M1202467</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-12-01T23:37:31Z</dc:date>
    </item>
    <item>
      <title>Help with possibly looping within an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291984#M1202468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys.&lt;/P&gt;&lt;P&gt;Karl, yours worked perfectly.&lt;BR /&gt;I just need to figure out now what it does!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 10:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-possibly-looping-within-an-expression/m-p/291984#M1202468</guid>
      <dc:creator />
      <dc:date>2010-12-02T10:40:16Z</dc:date>
    </item>
  </channel>
</rss>

