<?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 Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306629#M113263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Any one pls help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2011 17:45:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-18T17:45:57Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306626#M113260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dould you please help me with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum ({$&amp;lt;CALENDAR_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM-={'B'},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;GC_TRANS_ID={$(=aggr(min(GC_TRANS_ID),GC_CARD_NUMBER))}&amp;gt;}&lt;SPAN style="font-size: 8pt;"&gt;﻿ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;GC_BALANCE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;For example for above expression for one gift card:6103300000869935 there are 3 trans_ids&lt;/P&gt;&lt;P&gt;1.05237833-2011-02-14(balance-25)&lt;/P&gt;&lt;P&gt;2.105284498-2011-03-12 20:36:54.000(balance-6.82)&lt;/P&gt;&lt;P&gt;3.105373479-2011-05-08 13:58:17.000(balance-0)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;When I select the date rage i.e,calendar_date from 02/01/2011 to 04/30/2011 ,I get the balance as $0 but it should be 6.82 as the last trans_id is on 05-08-2011 which is out of&amp;nbsp; my date range.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Swetha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 18:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306626#M113260</guid>
      <dc:creator />
      <dc:date>2011-05-17T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306627#M113261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think the aggr() portion is producing anything that set analysis can use.&amp;nbsp; I believe you'd have to use concat() to turn that portion into a quoted list.&amp;nbsp; I think this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;GC_TRANS_ID={'$(=concat(aggr(min(GC_TRANS_ID),GC_CARD_NUMBER),chr(39)&amp;amp;','&amp;amp;chr(39))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 19:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306627#M113261</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-17T19:48:58Z</dc:date>
    </item>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306628#M113262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.But when I change the expression as suggested its not giving any value for GC_TRANS_ID and as a result the expression is returning a blank value "-".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any other changes needs to be done to the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 13:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306628#M113262</guid>
      <dc:creator />
      <dc:date>2011-05-18T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306629#M113263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Any one pls help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 17:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/306629#M113263</guid>
      <dc:creator />
      <dc:date>2011-05-18T17:45:57Z</dc:date>
    </item>
  </channel>
</rss>

