<?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 Script doesn't work when applying filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Script-doesn-t-work-when-applying-filter/m-p/1211258#M23269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading an Excel file into Qlik Sense which consist information on High priority problems for multiple regions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORGINAL_PROBLEMS:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Priority,&lt;BR /&gt;Region,&lt;BR /&gt;Date#(Date, 'DD/MM/YYYY') as Date,&lt;BR /&gt;Month(Opened) &amp;amp; '-' &amp;amp; year(Opened) AS Month,&lt;BR /&gt;IF(Priority &amp;lt;&amp;gt; '3 - Moderate' and Priority &amp;lt;&amp;gt; '4 - Low', IF(Date &amp;lt;&amp;gt; Previous(Date), 1, IF(Priority &amp;lt;&amp;gt; Previous(Priority), 1, 0)) , '0') as [Unique P1/2],&lt;BR /&gt;If(Priority = '1 - Critical' and Date &amp;lt;&amp;gt; Previous(Date), '1', If(Priority = '1 - Critical' and Priority &amp;lt;&amp;gt; Previous(Priority), '1', '0')) as [Unique P1]&lt;BR /&gt;FROM [lib://test/QS-Problems.xls] (biff, embedded labels, table is Problems$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTED_PROBLEMS:&lt;BR /&gt;noconcatenate&lt;BR /&gt;load *&lt;BR /&gt;resident ORGINAL_PROBLEMS&lt;BR /&gt;order by Date asc;&lt;/P&gt;&lt;P&gt;drop table ORGINAL_PROBLEMS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see I used script to convert data for date and month, sort data and add two IF statements to show 'event free days'.&lt;/P&gt;&lt;P&gt;It works fine until I use the filter , e.g. for Region to show data only for US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea what I am doing wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 13:33:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-11T13:33:41Z</dc:date>
    <item>
      <title>Script doesn't work when applying filter</title>
      <link>https://community.qlik.com/t5/App-Development/Script-doesn-t-work-when-applying-filter/m-p/1211258#M23269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading an Excel file into Qlik Sense which consist information on High priority problems for multiple regions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORGINAL_PROBLEMS:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Priority,&lt;BR /&gt;Region,&lt;BR /&gt;Date#(Date, 'DD/MM/YYYY') as Date,&lt;BR /&gt;Month(Opened) &amp;amp; '-' &amp;amp; year(Opened) AS Month,&lt;BR /&gt;IF(Priority &amp;lt;&amp;gt; '3 - Moderate' and Priority &amp;lt;&amp;gt; '4 - Low', IF(Date &amp;lt;&amp;gt; Previous(Date), 1, IF(Priority &amp;lt;&amp;gt; Previous(Priority), 1, 0)) , '0') as [Unique P1/2],&lt;BR /&gt;If(Priority = '1 - Critical' and Date &amp;lt;&amp;gt; Previous(Date), '1', If(Priority = '1 - Critical' and Priority &amp;lt;&amp;gt; Previous(Priority), '1', '0')) as [Unique P1]&lt;BR /&gt;FROM [lib://test/QS-Problems.xls] (biff, embedded labels, table is Problems$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTED_PROBLEMS:&lt;BR /&gt;noconcatenate&lt;BR /&gt;load *&lt;BR /&gt;resident ORGINAL_PROBLEMS&lt;BR /&gt;order by Date asc;&lt;/P&gt;&lt;P&gt;drop table ORGINAL_PROBLEMS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see I used script to convert data for date and month, sort data and add two IF statements to show 'event free days'.&lt;/P&gt;&lt;P&gt;It works fine until I use the filter , e.g. for Region to show data only for US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea what I am doing wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-doesn-t-work-when-applying-filter/m-p/1211258#M23269</guid>
      <dc:creator />
      <dc:date>2016-10-11T13:33:41Z</dc:date>
    </item>
  </channel>
</rss>

