<?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 in pivot returning 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-pivot-returning-0/m-p/545863#M1145817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I define month_num1 and month_num3 as following:&lt;/P&gt;&lt;P&gt;year(Date(AddMonths(Date(([Reporting Date]),1)))&amp;nbsp; * 100 + num(month(Date#(month(Date(AddMonths(Date([Reporting Date]),1))) 'MMM'))) as&amp;nbsp; month_num1 &lt;/P&gt;&lt;P&gt;year(Date(AddMonths(Date([Reporting Date]),1))) 3))) * 100 + num(month(Date#(month(Date(AddMonths(Date([Reporting Date]),1))) ,3))),'MMM'))) as&amp;nbsp; month_num3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following expression:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;ITEM={"Known Mvmt"},forecast_month_num={"&amp;gt;=month_num1 &amp;lt;=201309"}&amp;gt;} FTE) is returning the correct figures.&lt;/P&gt;&lt;P&gt;When replacing 201309 by month_num3 in the expression as following it returns 0. The month_num3 is correcty filled in the load. &lt;/P&gt;&lt;P&gt;sum({1&amp;lt;ITEM={"Known Mvmt"},forecast_month_num={"&amp;gt;=month_num1 &amp;lt;=month_num3"}&amp;gt;} FTE) is returning 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jul 2013 17:54:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-31T17:54:14Z</dc:date>
    <item>
      <title>Expression in pivot returning 0</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-pivot-returning-0/m-p/545863#M1145817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I define month_num1 and month_num3 as following:&lt;/P&gt;&lt;P&gt;year(Date(AddMonths(Date(([Reporting Date]),1)))&amp;nbsp; * 100 + num(month(Date#(month(Date(AddMonths(Date([Reporting Date]),1))) 'MMM'))) as&amp;nbsp; month_num1 &lt;/P&gt;&lt;P&gt;year(Date(AddMonths(Date([Reporting Date]),1))) 3))) * 100 + num(month(Date#(month(Date(AddMonths(Date([Reporting Date]),1))) ,3))),'MMM'))) as&amp;nbsp; month_num3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following expression:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;ITEM={"Known Mvmt"},forecast_month_num={"&amp;gt;=month_num1 &amp;lt;=201309"}&amp;gt;} FTE) is returning the correct figures.&lt;/P&gt;&lt;P&gt;When replacing 201309 by month_num3 in the expression as following it returns 0. The month_num3 is correcty filled in the load. &lt;/P&gt;&lt;P&gt;sum({1&amp;lt;ITEM={"Known Mvmt"},forecast_month_num={"&amp;gt;=month_num1 &amp;lt;=month_num3"}&amp;gt;} FTE) is returning 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-pivot-returning-0/m-p/545863#M1145817</guid>
      <dc:creator />
      <dc:date>2013-07-31T17:54:14Z</dc:date>
    </item>
  </channel>
</rss>

