<?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: Getting wrong answer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404419#M1156236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i wrote same expression before and guess what i was not seeing anything so i thought i am not getting answer &lt;/P&gt;&lt;P&gt;but my window was small and answer was coming but i had to scrollll &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; ..&amp;nbsp; wasted so much time.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jonathan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 11:14:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-05T11:14:03Z</dc:date>
    <item>
      <title>Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404417#M1156234</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; In my chart I am trying this &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;expression to get product age &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;timestamp(Date(today()) - Date(poentrydate), 'Y') * 12 + &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;timestamp(Date(today()) - Date(poentrydate), 'M')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;so that i will get age in months .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;but using above expression getting high values .. y? can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;also when i just use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;timestamp(Date(today()) - Date(poentrydate), 'Y')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;i am getting right answer adding multilplying getting big values&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 10:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404417#M1156234</guid>
      <dc:creator />
      <dc:date>2013-02-05T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404418#M1156235</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;What you need is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Year(Today()) - Year(poentrydate)) * 12 + Month(Today()) - Month(poentrydate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404418#M1156235</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-02-05T11:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404419#M1156236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i wrote same expression before and guess what i was not seeing anything so i thought i am not getting answer &lt;/P&gt;&lt;P&gt;but my window was small and answer was coming but i had to scrollll &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; ..&amp;nbsp; wasted so much time.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jonathan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404419#M1156236</guid>
      <dc:creator />
      <dc:date>2013-02-05T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404420#M1156237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you just explain why i was getting big numbers???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404420#M1156237</guid>
      <dc:creator />
      <dc:date>2013-02-05T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404421#M1156238</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;Because timestamp(.., 'Y') does not convert the date to a year number - it formats it to display only a year number, but is internally unchanged. Therefore you were mutliplying a date number (a number of about 41000) by 12. The same applies to timestamp(..., 'M').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct way to convert the values are the Year and Month functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 07:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404421#M1156238</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-02-07T07:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting wrong answer</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404422#M1156239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Jonathan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 09:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-wrong-answer/m-p/404422#M1156239</guid>
      <dc:creator />
      <dc:date>2013-02-07T09:13:04Z</dc:date>
    </item>
  </channel>
</rss>

