<?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 INVERTED DATE FORMAT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185658#M50073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use QlikView to create reports from SAP.&lt;/P&gt;&lt;P&gt;Generally this is working without bigger problems, but one SAP table is not easy to use.&lt;/P&gt;&lt;P&gt;In SAP table TCURR the field GDATU is in inverted date format. This means in the table I find the value 79889874 for the 2011-01-25.&lt;/P&gt;&lt;P&gt;Does anybody know how to convert this inverted date into a normal date? Is QlikView having a function for this?&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 09:22:47 GMT</pubDate>
    <dc:creator>hpwinkelmann</dc:creator>
    <dc:date>2011-01-26T09:22:47Z</dc:date>
    <item>
      <title>INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185658#M50073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use QlikView to create reports from SAP.&lt;/P&gt;&lt;P&gt;Generally this is working without bigger problems, but one SAP table is not easy to use.&lt;/P&gt;&lt;P&gt;In SAP table TCURR the field GDATU is in inverted date format. This means in the table I find the value 79889874 for the 2011-01-25.&lt;/P&gt;&lt;P&gt;Does anybody know how to convert this inverted date into a normal date? Is QlikView having a function for this?&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185658#M50073</guid>
      <dc:creator>hpwinkelmann</dc:creator>
      <dc:date>2011-01-26T09:22:47Z</dc:date>
    </item>
    <item>
      <title>INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185659#M50074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Following this link &lt;A href="https://forums.sdn.sap.com/thread.jspa?threadID=1031339" target="_blank"&gt;https://forums.sdn.sap.com/thread.jspa?threadID=1031339&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it says that the number is 99999999 - your_date and this is valid because taking your example&lt;/P&gt;&lt;P&gt;79889874 = 2011-01-25 =&amp;gt; 99999999 - 20110125 = 79889874&lt;/P&gt;&lt;P&gt;So using math the date you want is 99999999 - field_value = date YYYYMMDD&lt;/P&gt;&lt;P&gt;so in QlikView will be something like this&lt;/P&gt;&lt;P&gt;date(date#(99999999 - field_value,'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 13:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185659#M50074</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-26T13:27:40Z</dc:date>
    </item>
    <item>
      <title>AW:Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185660#M50075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly and is so simple.&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 14:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185660#M50075</guid>
      <dc:creator>hpwinkelmann</dc:creator>
      <dc:date>2011-01-26T14:00:15Z</dc:date>
    </item>
    <item>
      <title>AW:Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185661#M50076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;remember that you can change the format of the date() function with the second parameter, if you use date() without parameters, it's going to take the value from your dateformat variable&lt;/P&gt;&lt;P&gt;SET DateFormat='DD-MM-YYYY';&lt;/P&gt;&lt;P&gt;date(today()) = 26-01-2011&lt;/P&gt;&lt;P&gt;date(today(),'MM-DD-YYYY') = 01-26-2011&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 14:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185661#M50076</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-26T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185662#M50077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Es correcto!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185662#M50077</guid>
      <dc:creator />
      <dc:date>2014-05-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185663#M50078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table &lt;STRONG&gt;Customer&lt;/STRONG&gt; of oracle db in which the field &lt;STRONG&gt;Birthday&lt;/STRONG&gt; has values as 9.862, 12.532, -856, ...&lt;/P&gt;&lt;P&gt;I have to calculate the &lt;STRONG&gt;Age&lt;/STRONG&gt; of Customer.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Can you help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 06:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185663#M50078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185664#M50079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More precisely, I have written:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;age&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;today&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(),&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;BIRTHDAY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;AGE&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;but I found that the &lt;STRONG&gt;minimum age is 58 years&lt;/STRONG&gt; and the &lt;STRONG&gt;age sorted in a decreasing order by frequency&lt;/STRONG&gt; gives the following result:&lt;/P&gt;&lt;P&gt;80 ( freq: 6.589 )&lt;/P&gt;&lt;P&gt;94 ( freq: 5.853 )&lt;/P&gt;&lt;P&gt;92 ( freq: 5.519 )&lt;/P&gt;&lt;P&gt;91 ( freq: 5.413 )&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ie the &lt;STRONG&gt;clients are too old &lt;/STRONG&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 06:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185664#M50079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T06:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185665#M50080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you get values &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;9.862, 12.532, -856?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 06:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185665#M50080</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-28T06:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185666#M50081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved the problem ... the values &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;9.862, 12.532, -856 ... &lt;/SPAN&gt;are calculated by &lt;STRONG&gt;SAS&lt;/STRONG&gt; that reports the &lt;STRONG&gt;date format&lt;/STRONG&gt; in the following way:&lt;/P&gt;&lt;P&gt;- a &lt;STRONG&gt;positive number&lt;/STRONG&gt; is the number of days counted &lt;SPAN style="text-decoration: underline;"&gt;after&lt;/SPAN&gt;&amp;nbsp; January 1, 1960&lt;/P&gt;&lt;P&gt;- a &lt;STRONG&gt;negative number&lt;/STRONG&gt; is the number of days counted &lt;SPAN style="text-decoration: underline;"&gt;before&lt;/SPAN&gt; January 1, 1960&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 10:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185666#M50081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T10:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185667#M50082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to convert the created_at_u2 to date format.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113222_Untitled.png" style="height: 222px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 21:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185667#M50082</guid>
      <dc:creator />
      <dc:date>2016-02-01T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: INVERTED DATE FORMAT</title>
      <link>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185668#M50083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hans-Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the GDATU field in TCURR I used the following to convert.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138679_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Which gives you the results :&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138704_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVERTED-DATE-FORMAT/m-p/185668#M50083</guid>
      <dc:creator />
      <dc:date>2016-09-26T16:06:04Z</dc:date>
    </item>
  </channel>
</rss>

