<?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 Tuning the Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tuning-the-Expression/m-p/374891#M139616</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;Is there a way to tune the below expression,My expression should only return value if sum&amp;gt;'0'.Please let me know your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum ({$&amp;lt;CALENDAR_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_CA={'0'},STORE_GCPO={'0'},STORE_TP={'0'}&amp;gt;}&amp;nbsp; GC_BALANCE)-(0-(sum ({$&amp;lt;REDEMPTION_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;GC_BUY_OR_REDEEM_R-={'B'},GC_CARD_NUMBER-={'6098800000740686'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_TP={'0'},STORE_CA={'0'},STORE_GCPO={'0'}&amp;gt;} REDEMPTION_AMOUNT)))&amp;lt;'0',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'0',&lt;/P&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;STORE_BH={'0'},STORE_CA={'0'},STORE_GCPO={'0'},STORE_TP={'0'}&amp;gt;}&amp;nbsp; GC_BALANCE)-(0-(sum ({$&amp;lt;REDEMPTION_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;GC_BUY_OR_REDEEM_R-={'B'},GC_CARD_NUMBER-={'6098800000740686'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_TP={'0'},STORE_CA={'0'},STORE_GCPO={'0'}&amp;gt;} REDEMPTION_AMOUNT)))),GC_CARD_NUMBER))&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>Fri, 29 Jun 2012 19:30:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-29T19:30:22Z</dc:date>
    <item>
      <title>Tuning the Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Tuning-the-Expression/m-p/374891#M139616</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;Is there a way to tune the below expression,My expression should only return value if sum&amp;gt;'0'.Please let me know your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum ({$&amp;lt;CALENDAR_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_CA={'0'},STORE_GCPO={'0'},STORE_TP={'0'}&amp;gt;}&amp;nbsp; GC_BALANCE)-(0-(sum ({$&amp;lt;REDEMPTION_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;GC_BUY_OR_REDEEM_R-={'B'},GC_CARD_NUMBER-={'6098800000740686'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_TP={'0'},STORE_CA={'0'},STORE_GCPO={'0'}&amp;gt;} REDEMPTION_AMOUNT)))&amp;lt;'0',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'0',&lt;/P&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;STORE_BH={'0'},STORE_CA={'0'},STORE_GCPO={'0'},STORE_TP={'0'}&amp;gt;}&amp;nbsp; GC_BALANCE)-(0-(sum ({$&amp;lt;REDEMPTION_DATE={'&amp;gt;=$(=Date(VSTARTDATE))&amp;lt;=$(=Date(VENDDATE))'},GC_BUY_OR_REDEEM={'B'},&lt;/P&gt;&lt;P&gt;GC_BUY_OR_REDEEM_R-={'B'},GC_CARD_NUMBER-={'6098800000740686'},&lt;/P&gt;&lt;P&gt;STORE_BH={'0'},STORE_TP={'0'},STORE_CA={'0'},STORE_GCPO={'0'}&amp;gt;} REDEMPTION_AMOUNT)))),GC_CARD_NUMBER))&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>Fri, 29 Jun 2012 19:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tuning-the-Expression/m-p/374891#M139616</guid>
      <dc:creator />
      <dc:date>2012-06-29T19:30:22Z</dc:date>
    </item>
  </channel>
</rss>

