<?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: Date object creation based on Rowno() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331851#M494953</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=Sum(Aggr(IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno()&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;, 1),1,0), &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;[Hire / Rehire Date]))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2012 07:55:30 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-03-02T07:55:30Z</dc:date>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331846#M494948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this problem is easy to solve. I've got a pivot table with months in first column,&lt;/P&gt;&lt;P&gt;january in row 1, Feb in row 2 etc. I want to do calculastion based on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote some simple expression, but it return 0 in all columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;=Sum(IF(Date([Hire / Rehire Date]) &amp;lt; Date('1/'&amp;amp;rowno()&amp;amp;'/2011'),1,0)) &lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This on the other hand works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Sum(IF(Date([Hire / Rehire Date]) &amp;lt; Date('1/1/2011'),1,0))&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried checking date only it also works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Date('1/'&amp;amp;rowno()&amp;amp;'/2011')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong in my 1st example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 13:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331846#M494948</guid>
      <dc:creator />
      <dc:date>2012-03-01T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331847#M494949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its very strange, but for whatever reason the thing that seems to be throwing this off is the Sum function on the final expression you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I remove the sum function it returns the right value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a workaround, see if it works for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to settings-&amp;gt;variable overview... and add a new variable called vDate.&amp;nbsp; Define it as:&lt;/P&gt;&lt;P&gt; &lt;CODE class="jive-code"&gt;=IF(Date([Hire / Rehire Date]) &amp;lt; Date('1/'&amp;amp;rowno()&amp;amp;'/2011'),1,0)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your expression you can simply write = SUM(vDate).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 17:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331847#M494949</guid>
      <dc:creator />
      <dc:date>2012-03-01T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331848#M494950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunetely it is not working for me, "0" is shown in all columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 06:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331848#M494950</guid>
      <dc:creator />
      <dc:date>2012-03-02T06:35:09Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331849#M494951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check whether &lt;CODE class="jive-code"&gt;[Hire / Rehire Date] and &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Date(&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;'1/'&amp;amp;rowno()&amp;amp;'/2011') are in the same format.&amp;nbsp; If not then convert both dates to the same format.&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;Date(&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;'1/'&amp;amp;rowno()&amp;amp;'/2011'),1,0)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can also try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno(), 1),1,0)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check both the dates are in the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 06:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331849#M494951</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-02T06:41:46Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331850#M494952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It must be some problem inside Qlikview...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not working (0 shown in column):&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno(), 1),1,0)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working (proper numbers shown):&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;1, 1),1,0)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand when I enter this as expression:&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno(), 1)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, 1&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;, 1)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are working, and same date is shown... Really strange...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 07:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331850#M494952</guid>
      <dc:creator />
      <dc:date>2012-03-02T07:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331851#M494953</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=Sum(Aggr(IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno()&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;, 1),1,0), &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;[Hire / Rehire Date]))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 07:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331851#M494953</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-02T07:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331852#M494954</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;When I entered this as an expression nothing showed up (null).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 08:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331852#M494954</guid>
      <dc:creator />
      <dc:date>2012-03-02T08:02:06Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331853#M494955</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;=Sum(Aggr(IF(Date([Hire / Rehire Date]) &amp;lt; &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;MakeDate(2011, &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;rowno()&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;, 1),1,0), &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;[Hire / Rehire Date], Month))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it not works, can you attach the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 08:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331853#M494955</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-02T08:10:51Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331854#M494956</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;sorry what is Month in your example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 09:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331854#M494956</guid>
      <dc:creator />
      <dc:date>2012-03-02T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331855#M494957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/jagan" id="jive-2310919111503346714867" onmouseout="" onmouseover="" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;jagan mohan&lt;/A&gt; suggested you to use the MonthFieldName in aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 09:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331855#M494957</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-02T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Date object creation based on Rowno()</title>
      <link>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331856#M494958</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;&lt;/P&gt;&lt;P&gt;"Month" is your Month field name in you file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-object-creation-based-on-Rowno/m-p/331856#M494958</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-02T09:21:17Z</dc:date>
    </item>
  </channel>
</rss>

