<?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: Expression while filtering displays correct value but not when clears filter. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062689#M938535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. Can you able to provide some workaround or samples. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 10:31:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-08T10:31:53Z</dc:date>
    <item>
      <title>Expression while filtering displays correct value but not when clears filter.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062686#M938532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression, need to display PriorYTD.&lt;/P&gt;&lt;P&gt;Earlier it was taken as 12/31/2014 for all the distributors.&lt;/P&gt;&lt;P&gt;Now we modified the query &amp;amp; MaxSalesDate for each &amp;amp; every distributor will be stored in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some distributors, the MaxSalesDate is 01/31/2014, so we need to display the sales only till that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue, when i filter selecting the distributor, it is displaying correctly.&lt;/P&gt;&lt;P&gt;But when i clear filter, if it shows all the customers, then that variable is not populated &amp;amp; the value for the distributors is showing the whole year sales value.&lt;/P&gt;&lt;P&gt;THe screenshot, &lt;/P&gt;&lt;P&gt;The first row shows by filtering the Distributor. [$2,197,811]&lt;/P&gt;&lt;P&gt;The second row which shows after clearing the filter. [$26,925,581]&lt;/P&gt;&lt;P&gt;The expression which is used below&lt;/P&gt;&lt;P&gt;PYMaxCustDate is different for different distributors. That is why it is not impacting if i clear the filter.&lt;/P&gt;&lt;P&gt;Can you please suggest me on this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataSample.jpg" class="jive-image image-1" height="367" src="https://community.qlik.com/legacyfs/online/113746_DataSample.jpg" style="height: 366.761px; width: 704px;" width="704" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062686#M938532</guid>
      <dc:creator />
      <dc:date>2016-02-05T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression while filtering displays correct value but not when clears filter.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062687#M938533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set is calculated at the chart level, not the row level. So if different distributors have different PYMaxCustDate values then you need to use an if statement instead of set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062687#M938533</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-05T16:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression while filtering displays correct value but not when clears filter.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062688#M938534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you to create a flag in your data modelling based on the max date of the each distributor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Disrtributor Date Flag&lt;/P&gt;&lt;P&gt;Disti A&amp;nbsp;&amp;nbsp; 01-01-2016 0&lt;/P&gt;&lt;P&gt;Disti A&amp;nbsp;&amp;nbsp; 02-01-2016 1&lt;/P&gt;&lt;P&gt;DISTI B 01-01-2016 0&lt;/P&gt;&lt;P&gt;DISTI B 02-01-2016 0&lt;/P&gt;&lt;P&gt;DISTI B 03-01-2016 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that pass flag value in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062688#M938534</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2016-02-05T16:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression while filtering displays correct value but not when clears filter.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062689#M938535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert. Can you able to provide some workaround or samples. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 10:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062689#M938535</guid>
      <dc:creator />
      <dc:date>2016-02-08T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression while filtering displays correct value but not when clears filter.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062690#M938536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert &amp;amp; Satish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used If condition in the expression &amp;amp; it is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(Date &amp;gt;= Date(PYStartDate) and Date&amp;lt;= Date(PYMaxCustDate), CustomerSalesPrior))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-while-filtering-displays-correct-value-but-not-when/m-p/1062690#M938536</guid>
      <dc:creator />
      <dc:date>2016-02-08T13:33:27Z</dc:date>
    </item>
  </channel>
</rss>

