<?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: Set Expression Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898533#M312606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;$(=Date(MakeDate(9999),'YYYY-MM-DD'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;but I think even &lt;/P&gt;&lt;P&gt;$(=MakeDate(9999)) should be enough within your advanced search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 10:22:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-25T10:22:38Z</dc:date>
    <item>
      <title>Set Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898530#M312603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am trying to get count of prefixes based on few criteria. I have tried the below expression and getting the desired result but additional unwanted lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;P.DBI={"&amp;gt;$(=Date(Yearend(Today(),5),'YYYY-MM-DD'))"} - &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Here the criteria is .BPI field should greater than 5 years from today (2015-12-31)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;P.DBI-={'9999*'} -&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;I just exclude the date which starts with 9999.&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {1}{&amp;lt;P.KR={'1','2'},P.KSL={'ZD'},&lt;SPAN style="; color: #ff0000;"&gt;&lt;STRONG&gt;P.DBI={"&amp;gt;$(=Date(Yearend(Today(),5),'YYYY-MM-DD'))"}, P.DBI-={'9999*'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;lt;P.KR={'1','2'},P.KSL={'ZD'},P.DAB-={'20*','19*','199*'}&amp;gt;}M.PREFIX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But I don't know why I am getting results in the year 2015. I have tried to the same code by excluding the condition&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;P.DBI-={'9999*'} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;and the result is fine but when I add this &lt;STRONG style="color: #ff0000; font-size: 13.3333330154419px;"&gt;P.DBI-={'9999*'}&lt;/STRONG&gt;, getting extra line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What could be the reason.?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898530#M312603</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-06-25T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898531#M312604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you can't modify the same field twice in a single set modifier, ie. assigning two element lists to P.DBI in your first set modifier. I believe QV will take just the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to take 9999 out, try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {1}{&amp;lt;P.KR={'1','2'},P.KSL={'ZD'},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;P.DBI={"&amp;gt;$(=Date(Yearend(Today(),5),'YYYY-MM-DD'))&amp;lt;=$(=Date(Year(9999)))"} &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&amp;lt;P.KR={'1','2'},P.KSL={'ZD'},P.DAB-={'20*','19*','199*'}&amp;gt;}M.PREFIX)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 09:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898531#M312604</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-25T09:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898532#M312605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thank you for your reply. If I use the above expression, the expression&lt;/SPAN&gt; &lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG&gt;$(=Date(Year(9999))) &lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;will return the date as 04-10-1905. I want to exclude the dates end with 9999.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 10:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898532#M312605</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-06-25T10:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898533#M312606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;$(=Date(MakeDate(9999),'YYYY-MM-DD'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;but I think even &lt;/P&gt;&lt;P&gt;$(=MakeDate(9999)) should be enough within your advanced search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 10:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898533#M312606</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-25T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898534#M312607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&amp;nbsp; &lt;IMG __jive_id="90957" alt="1293969nemhp4tc96.gif" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90957_1293969nemhp4tc96.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use above expression, the date will be 999-01-01. I have changed the code to &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;$(=Date(MakeDate(9999,12,31),'YYYY-MM-DD')) &lt;/STRONG&gt;&lt;/SPAN&gt;and its working fine. If possible edit the code which I am going to mark it as correct. It might be useful to someone in future. Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="90956" alt="happy-day-smiley-emoticon.gif" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90956_happy-day-smiley-emoticon.gif" style="height: auto;" /&gt; and cool weekend!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 10:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Problem/m-p/898534#M312607</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-06-26T10:07:57Z</dc:date>
    </item>
  </channel>
</rss>

