<?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: month start giving wrong value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767259#M1021120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;TBAL_CAL_MONTH it contain 0,1,2,3,4,5,6,7,8,9,10,11,12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;to avoid 0 below code used&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date#(TBAL_CAL_MONTH,'MM')) as TBAL_Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am trying to create opening balance. if i select month June i need to calculate previous months like may,apr,mar,feb,jan and that 0 as opening balance for june.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this but not getting the correct value&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TBAL_Month ={"&amp;gt;=$(=MonthStart(max(TBAL_Month)))&amp;lt;=$(=max(TBAL_Month))"},TBAL_CAL_YEAR={'&amp;gt;=$(Acnt_year)'}&amp;gt;}TBAL_MTD_DR_LC_1-TBAL_MTD_CR_LC_1)+sum({&amp;lt;ACNT_FLEX_02={'Balance Sheet'}&amp;gt;}TBAL_MTD_DR_LC_1)-sum({&amp;lt;ACNT_FLEX_02={'Balance Sheet'}&amp;gt;}TBAL_MTD_CR_LC_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 09:38:30 GMT</pubDate>
    <dc:creator>arulsettu</dc:creator>
    <dc:date>2015-03-23T09:38:30Z</dc:date>
    <item>
      <title>month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767257#M1021118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am trying to get month from from month field &lt;/P&gt;&lt;P&gt;TBAL_Month ={"&amp;gt;=$(=MonthStart(max(TBAL_Month)))&amp;lt;=$(=max(TBAL_Month))&lt;/P&gt;&lt;P&gt;result is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MonthStart(max(TBAL_Month)))=1/1/1900&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;but tabl_month contain jan feb mar .... dec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;am i doing anything wrong here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;plz give me some solutions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767257#M1021118</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767258#M1021119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly, your TBAL_Month field is not a proper date field. Date creation at the script might be an issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767258#M1021119</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-03-23T09:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767259#M1021120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;TBAL_CAL_MONTH it contain 0,1,2,3,4,5,6,7,8,9,10,11,12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;to avoid 0 below code used&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date#(TBAL_CAL_MONTH,'MM')) as TBAL_Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am trying to create opening balance. if i select month June i need to calculate previous months like may,apr,mar,feb,jan and that 0 as opening balance for june.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this but not getting the correct value&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TBAL_Month ={"&amp;gt;=$(=MonthStart(max(TBAL_Month)))&amp;lt;=$(=max(TBAL_Month))"},TBAL_CAL_YEAR={'&amp;gt;=$(Acnt_year)'}&amp;gt;}TBAL_MTD_DR_LC_1-TBAL_MTD_CR_LC_1)+sum({&amp;lt;ACNT_FLEX_02={'Balance Sheet'}&amp;gt;}TBAL_MTD_DR_LC_1)-sum({&amp;lt;ACNT_FLEX_02={'Balance Sheet'}&amp;gt;}TBAL_MTD_CR_LC_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767259#M1021120</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T09:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767260#M1021121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the above meant to be a variable? Then it can contain only one value for the month.&lt;/P&gt;&lt;P&gt;If meant to be an expression, you are missing aggregation (and curly brackets etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767260#M1021121</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-23T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767261#M1021122</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; What u wrote in expression that is correct only Monthstart it will give first day of the that particular month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That is why your getting 1/1/1900 this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u explain what u are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767261#M1021122</guid>
      <dc:creator />
      <dc:date>2015-03-23T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767262#M1021123</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(TBAL_Month) is not a variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;i will upload the sample file &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767262#M1021123</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767263#M1021124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, so you are not bothered about the date. All you need is month. In that case, to get month, try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;(MonthStart(max(TBAL_Month))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767263#M1021124</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-03-23T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767264#M1021125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Tresesco getting jan month. but not able to get the exact result can you&amp;nbsp; please check below app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767264#M1021125</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T09:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767265#M1021126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; i am trying to create opening balance. if i select month June i need to calculate previous months like may,apr,mar,feb,jan and that 0 as opening balance for june.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 09:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767265#M1021126</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767266#M1021127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help guys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 10:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767266#M1021127</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T10:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767267#M1021128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please upload an example to see, what kind of data you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767267#M1021128</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-23T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767268#M1021129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check above in this thread i uploaded a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767268#M1021129</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-03-23T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: month start giving wrong value</title>
      <link>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767269#M1021130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TBAL_Month is not a number, but only a text (abbreviation for the month).&lt;/P&gt;&lt;P&gt;Think it will make sense to work with rolling monthes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR(Date)*12 + NUM(MONTH(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be accessed with MIN/MAX or you may calculate to deduct e.g. 6 monthes etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-start-giving-wrong-value/m-p/767269#M1021130</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-23T18:10:08Z</dc:date>
    </item>
  </channel>
</rss>

