<?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 Set Analysis to limit row returns from Concat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152305#M29792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karl,&lt;/P&gt;&lt;P&gt;I played around with what you gave me and came out with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;concat({$&amp;lt;[Master Product Description]={"round(sum(OrderPcs))&amp;gt;0"}&amp;gt;} distinct [Master Product Description], chr(13)&amp;amp;char(10), fieldindex('&amp;lt;[Master Product Description]', &amp;lt;[Master Product Description]))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;its not pretty but it works, so thx for the help!!! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 15:25:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-21T15:25:49Z</dc:date>
    <item>
      <title>Set Analysis to limit row returns from Concat</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152303#M29790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;trying to use Set Analysis to limit the number of rows returned from concat based on a field in the row, I've tried this many different ways and can't seem to get the correct results:&lt;/P&gt;&lt;P&gt;Note: OrderPcs is an Input Field that defaults to 0 but then could be changed by the user before the below code is ran.&lt;/P&gt;&lt;P&gt;ex.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat({&amp;lt;OrderPcs={0}&amp;gt;} distinct [Master Product Description]&amp;amp; '; ' &amp;amp;[Product Width]&amp;amp; '; ' &amp;amp;[Product Length]&amp;amp; '; ' &amp;amp;OrderPcs&amp;amp; '; ' &amp;amp;OrderWgt&amp;amp; '; ' &amp;amp;OrderNotes&amp;amp; ' | ', chr(13)&amp;amp;chr(10) , fieldindex('[Master Product Description]', [Master Product Description]))&lt;/P&gt;&lt;DIV&gt;an1 = returns everything even rows that are &amp;gt; 0 in the OrderPcs field.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ex.2&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;concat({&amp;lt;OrderPcs={5}&amp;gt;} distinct [Master Product Description]&amp;amp; '; ' &amp;amp;[Product Width]&amp;amp; '; ' &amp;amp;[Product Length]&amp;amp; '; ' &amp;amp;OrderPcs&amp;amp; '; ' &amp;amp;OrderWgt&amp;amp; '; ' &amp;amp;OrderNotes&amp;amp; ' | ', chr(13)&amp;amp;chr(10) , fieldindex('[Master Product Description]', [Master Product Description]))&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;an2 = returns absolutely nothing even though I have some records with 5 in the OrderPcs field.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I just want to limit the number of rows returned based on what value is in the OrderPcs field.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Side Note: the results are going into a variable that is then displayed in a text box for the user to review.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Added Note: if I only have one row that fits ex.2 code then that one row is captured and displayed, but more then one row and everything is blank.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 02:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152303#M29790</guid>
      <dc:creator />
      <dc:date>2010-10-21T02:48:40Z</dc:date>
    </item>
    <item>
      <title>Set Analysis to limit row returns from Concat</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152304#M29791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;William,&lt;/P&gt;&lt;P&gt;I was playing around with a similiar situation you describe and I had to do something like the following:&lt;/P&gt;&lt;P&gt;=concat( {$&amp;lt;Month={"=round(sum(BudgetInput))=1"}&amp;gt;} distinct Month,chr(10)&amp;amp;chr(13),fieldindex('Month',Month))&lt;/P&gt;&lt;P&gt;BudgetInput is an inputfield and even if I changed the some values to 1 in a chart, the chart was showing me and I was changing a sum(BudgetInput), in this case by Month, and there was really no value 1 in the field BudgetInput. I also had to put round because even if a put 1, QlikView changes the numbers that make up the sum and the number is never exactly 1, but rather 1.0000000372.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 04:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152304#M29791</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-21T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis to limit row returns from Concat</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152305#M29792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karl,&lt;/P&gt;&lt;P&gt;I played around with what you gave me and came out with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;concat({$&amp;lt;[Master Product Description]={"round(sum(OrderPcs))&amp;gt;0"}&amp;gt;} distinct [Master Product Description], chr(13)&amp;amp;char(10), fieldindex('&amp;lt;[Master Product Description]', &amp;lt;[Master Product Description]))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;its not pretty but it works, so thx for the help!!! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-limit-row-returns-from-Concat/m-p/152305#M29792</guid>
      <dc:creator />
      <dc:date>2010-10-21T15:25:49Z</dc:date>
    </item>
  </channel>
</rss>

