<?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: Dollar Sign Expansion of Aggr Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979907#M334589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 12:27:52 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2015-12-09T12:27:52Z</dc:date>
    <item>
      <title>Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979901#M334583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat(Aggr(if(Aggr(Sum(Qty), POItemID)&amp;gt;= 250,POItemID), POItemID),&amp;nbsp; ', ',POItemID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which returns this string when placed in a textbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;17, 18, 28, 59, 61, 63, 64, 93, 96, 97, 190, 191, 192, 205, 224, 225, 266, 267, 279, 280, 324, 325, 331, 332, 477, 478, 479, 501, 554, 555, 561, 562, 563, 565, 567, 569, 570, 664, 665, 703, 726, 727, 741, 763, 764, 821, 933, 934, 935, 950, 951, 952, 1005, 1011, 1032, 1033, 1084, 1085, 1086, 1119, 1120, 1184, 1188, 1189, 1196, 1226, 1269&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to use this expression in a set modifier. When I wrap it in a dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=concat(Aggr(if(Aggr(Sum(Qty), POItemID)&amp;gt;= 250,POItemID), POItemID),&amp;nbsp; ', ',POItemID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Garbage after expression: ","&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've replaced the comma with chr(44) with the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've replaced the comma with a '|' hoping that later I can wrap with a Replace function to swap the '|' for ',' but I get this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Garbage after expression: "|18|28|59|61|63|64|93|96|97|190|191|192|205|224|225|266|267|279|280|324|325|331|332|477|478|479|501|554|555|561|562|563|565|567|569|570|664|665|703|726|727|741|763|764|821|933|934|935|950|951|952|1005|1011|1032|1033|1084|1085|1086|1119|1120|1184|1188|1189|1196|1226|1269"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is especially odd because before DSE the expression returned this:&lt;/P&gt;&lt;P&gt;17|18|28|59|61|63|64|93|96|97|190|191|192|205|224|225|266|267|279|280|324|325|331|332|477|478|479|501|554|555|561|562|563|565|567|569|570|664|665|703|726|727|741|763|764|821|933|934|935|950|951|952|1005|1011|1032|1033|1084|1085|1086|1119|1120|1184|1188|1189|1196|1226|1269&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DSE dropped the first element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advice would be very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979901#M334583</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-09T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979902#M334584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979902#M334584</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979903#M334585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be working for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;POItemID = {$(=Concat(Aggr(if(Aggr(Sum(Qty), POItemID)&amp;gt;= 250,POItemID), POItemID),&amp;nbsp; ', ',POItemID))}&amp;gt;}&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 __jive_id="108446" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108446_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979903#M334585</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T11:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979904#M334586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with single-quotes around the $-sign expansion then the content is a string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$(=concat(Aggr(if(Aggr(Sum(Qty), POItemID)&amp;gt;= 250,POItemID), POItemID),&amp;nbsp; ', ',POItemID))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979904#M334586</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-09T12:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979905#M334587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put your $ expression into single quotes like '&amp;nbsp;&amp;nbsp; ',something like suggested by Marcus&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979905#M334587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-09T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979906#M334588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, Marcus spotted that I had missed single quotes - I can be a bit stupid that way. Thanks again for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979906#M334588</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-09T12:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar Sign Expansion of Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979907#M334589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-Sign-Expansion-of-Aggr-Expression/m-p/979907#M334589</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-09T12:27:52Z</dc:date>
    </item>
  </channel>
</rss>

