<?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 EXPRESSION ISSUE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/894105#M311262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below query I am trying to accomplish in my dashboard. The issue is that I am trying to make the 2 Dates Dynamic (Start and End)&amp;nbsp; and Qlikview is not giving me the right answer.&amp;nbsp; What do I need to do to accomplish this in Qlikview. PLS HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp; the Set Analysis like this . &lt;STRONG&gt;as_of&lt;/STRONG&gt; is ('YYYYMM') Format. I have created the Year and Months from both Dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;AS_OF_BEGIN={Max(END_YEAR))}&amp;gt;} distinct Claim_No)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;AS_OF_BEGIN={Max(END_YEAR)-1)}&amp;gt;} distinct Claim_No)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;a1.claim_no&amp;nbsp; , b1.claim_no, &lt;/P&gt;&lt;P&gt;b1.claim_type_code as old_claim_type_code, &lt;/P&gt;&lt;P&gt;a1.claim_type_code as&amp;nbsp; current_claim_type_code,&lt;/P&gt;&lt;P&gt;a1.as_of&amp;nbsp; as AS_OF_END,&lt;/P&gt;&lt;P&gt;b1.as_of&amp;nbsp; as AS_OF_BEGIN&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;(select a.as_of, a.claim_no, a.claim_type_code&lt;/P&gt;&lt;P&gt;from odwr_claimsnapshot a &lt;/P&gt;&lt;P&gt;WHERE A.as_of&amp;nbsp; ='201506') a1&lt;/P&gt;&lt;P&gt;left outer join&amp;nbsp; &lt;/P&gt;&lt;P&gt;(select b.as_of, b.claim_no, b.claim_type_code&lt;/P&gt;&lt;P&gt;from odwr_claimsnapshot b &lt;/P&gt;&lt;P&gt;WHERE B.as_of&amp;nbsp; ='201412') b1&lt;/P&gt;&lt;P&gt; on a1.claim_no = b1.claim_no &lt;/P&gt;&lt;P&gt;where&amp;nbsp; (a1.claim_type_code &amp;lt;&amp;gt; b1.claim_type_code or b1.claim_no is null) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 15:02:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-15T15:02:21Z</dc:date>
    <item>
      <title>EXPRESSION ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/894105#M311262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below query I am trying to accomplish in my dashboard. The issue is that I am trying to make the 2 Dates Dynamic (Start and End)&amp;nbsp; and Qlikview is not giving me the right answer.&amp;nbsp; What do I need to do to accomplish this in Qlikview. PLS HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp; the Set Analysis like this . &lt;STRONG&gt;as_of&lt;/STRONG&gt; is ('YYYYMM') Format. I have created the Year and Months from both Dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;AS_OF_BEGIN={Max(END_YEAR))}&amp;gt;} distinct Claim_No)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;AS_OF_BEGIN={Max(END_YEAR)-1)}&amp;gt;} distinct Claim_No)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;a1.claim_no&amp;nbsp; , b1.claim_no, &lt;/P&gt;&lt;P&gt;b1.claim_type_code as old_claim_type_code, &lt;/P&gt;&lt;P&gt;a1.claim_type_code as&amp;nbsp; current_claim_type_code,&lt;/P&gt;&lt;P&gt;a1.as_of&amp;nbsp; as AS_OF_END,&lt;/P&gt;&lt;P&gt;b1.as_of&amp;nbsp; as AS_OF_BEGIN&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;(select a.as_of, a.claim_no, a.claim_type_code&lt;/P&gt;&lt;P&gt;from odwr_claimsnapshot a &lt;/P&gt;&lt;P&gt;WHERE A.as_of&amp;nbsp; ='201506') a1&lt;/P&gt;&lt;P&gt;left outer join&amp;nbsp; &lt;/P&gt;&lt;P&gt;(select b.as_of, b.claim_no, b.claim_type_code&lt;/P&gt;&lt;P&gt;from odwr_claimsnapshot b &lt;/P&gt;&lt;P&gt;WHERE B.as_of&amp;nbsp; ='201412') b1&lt;/P&gt;&lt;P&gt; on a1.claim_no = b1.claim_no &lt;/P&gt;&lt;P&gt;where&amp;nbsp; (a1.claim_type_code &amp;lt;&amp;gt; b1.claim_type_code or b1.claim_no is null) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 15:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXPRESSION-ISSUE/m-p/894105#M311262</guid>
      <dc:creator />
      <dc:date>2015-06-15T15:02:21Z</dc:date>
    </item>
  </channel>
</rss>

