<?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: multiple where clause in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365330#M514774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum(aggr(alt(sum({&amp;amp;&amp;lt;voucher_date={"&amp;lt;=$(v_todate)"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date={"&amp;lt;invoice_date"}&lt;/SPAN&gt;&amp;gt;}received_amt),0),cust_id,inv_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 10:09:00 GMT</pubDate>
    <dc:creator>mangalsk</dc:creator>
    <dc:date>2017-07-25T10:09:00Z</dc:date>
    <item>
      <title>multiple where clause in expression</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365328#M514772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurs!!&lt;/P&gt;&lt;P&gt;1) I am taking to_date from user through calendar and storing in variable V_todate&lt;/P&gt;&lt;P&gt;2) I have invoice id that send to customer against which customer made payments. (Invoice_id,invoice_date)&lt;/P&gt;&lt;P&gt;3) payments are made through vouchers. (voucher_id, voucher_date)&lt;/P&gt;&lt;P&gt;i am showing the sum of customer payments made against invoice through expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(alt(sum({&amp;amp;&amp;lt;voucher_date={"&amp;lt;=$(v_todate)"}&amp;gt;}received_amt),0),cust_id,inv_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this working fine for me shows all the receivce amount against voucher received before to_date.&lt;/P&gt;&lt;P&gt;in some scenario customer pay in advance so voucher date become less then invoice date.&lt;/P&gt;&lt;P&gt;so i wana skip such invoice where voucher date are smaller then invoice date in the above expression.&lt;/P&gt;&lt;P&gt;i am trying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum(aggr(alt(sum({&amp;amp;&amp;lt;voucher_date={"&amp;lt;=$(v_todate)"},Voucher_date&amp;gt;invoice_date&amp;gt;}received_amt),0),cust_id,inv_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;giving error......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;plz help how to incorporate two checks voucher_date &amp;lt; invoice_date and voucher date&amp;lt;=v_todate&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 09:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365328#M514772</guid>
      <dc:creator>swiftfahad</dc:creator>
      <dc:date>2017-07-25T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: multiple where clause in expression</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365329#M514773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I think you also need to add the condition in Aggr as well to work the expression properly&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;invoice_date&lt;/SPAN&gt;&lt;/SPAN&gt;"},&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date={"&amp;lt;=$(v_todate)"}&amp;gt;}&lt;/SPAN&gt;aggr(alt(sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;invoice_date&lt;/SPAN&gt;&lt;/SPAN&gt;"},&lt;/SPAN&gt;voucher_date={"&amp;lt;=$(v_todate)"}&amp;gt;}received_amt),0),cust_id,inv_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365329#M514773</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-25T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: multiple where clause in expression</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365330#M514774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum(aggr(alt(sum({&amp;amp;&amp;lt;voucher_date={"&amp;lt;=$(v_todate)"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;voucher_date={"&amp;lt;invoice_date"}&lt;/SPAN&gt;&amp;gt;}received_amt),0),cust_id,inv_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-where-clause-in-expression/m-p/1365330#M514774</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2017-07-25T10:09:00Z</dc:date>
    </item>
  </channel>
</rss>

