<?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 Load TimeWithZone field from postgres in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390130#M608527</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;I have trouble loading data from postgres field of type TimeWithZone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can normally load it, and see it in Data model viewer. &lt;/P&gt;&lt;P&gt;The problem is when I try to get min(), max() or amy function. It always return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let say that I have "time" field in postgres of &lt;SPAN style="font-size: 13.3333px;"&gt;TimeWithZone type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(time) as start,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(time) as stop&lt;/P&gt;&lt;P&gt;Resident temp_database &lt;/P&gt;&lt;P&gt;group By id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return all null rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Time(time)) as start,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Time(time)) as stop&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;group By id;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Time#(time)) as start,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Time#(time)) as stop&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;group By id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(time) as nTime,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chr(time) as cTime&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;return all null rows. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;How to handle this type of fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 12:11:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-12T12:11:39Z</dc:date>
    <item>
      <title>Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390130#M608527</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;I have trouble loading data from postgres field of type TimeWithZone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can normally load it, and see it in Data model viewer. &lt;/P&gt;&lt;P&gt;The problem is when I try to get min(), max() or amy function. It always return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let say that I have "time" field in postgres of &lt;SPAN style="font-size: 13.3333px;"&gt;TimeWithZone type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(time) as start,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(time) as stop&lt;/P&gt;&lt;P&gt;Resident temp_database &lt;/P&gt;&lt;P&gt;group By id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return all null rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Time(time)) as start,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Time(time)) as stop&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;group By id;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Time#(time)) as start,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Time#(time)) as stop&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;group By id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(time) as nTime,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chr(time) as cTime&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident temp_database;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;return all null rows. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;How to handle this type of fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390130#M608527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390131#M608528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to play with Time Format from TimeZone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390131#M608528</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-12T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390132#M608529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that I was wrongly choose chr() insted of Text()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have : Time#(Text(time)) -&amp;gt; it return values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min(&lt;SPAN style="font-size: 13.3333px;"&gt;Time#(Text(time))&lt;/SPAN&gt;)&amp;nbsp; -&amp;gt; return null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390132#M608529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390133#M608530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what inputs is having from time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390133#M608530</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-12T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390134#M608531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field is being treated as string, you might have to use parsing functions like time#(), date#(), timestamp#() with proper format. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(Max(&lt;STRONG&gt;Timestamp#(time,'format') &lt;/STRONG&gt;)) as Stop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'format' - is the one how you see when the field is loaded without max/min.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390134#M608531</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-12-12T12:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390135#M608532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-12-12 at 13.24.53.png" class="jive-image image-1" src="/legacyfs/online/186629_Screen Shot 2017-12-12 at 13.24.53.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUra is Num(time)&lt;/P&gt;&lt;P&gt;WUra is Time#(Text(time))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-12-12 at 13.26.12.png" class="jive-image image-2" src="/legacyfs/online/186630_Screen Shot 2017-12-12 at 13.26.12.png" style="height: 58px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those two rows are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min(&lt;SPAN style="font-size: 13.3333px;"&gt;Time#(Text(time))&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;max(&lt;SPAN style="font-size: 13.3333px;"&gt;Time#(Text(time))&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390135#M608532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T12:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390136#M608533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Till you are using Text() it will always return text format only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390136#M608533</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-12T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390137#M608534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I don't understand you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Time#(Text(time)) so, it should return Time not Text...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain what do you mean by your comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390137#M608534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390138#M608535</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;Could you look to my reply to other answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390138#M608535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390139#M608536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to answer, Without having any inputs. Can you provide inline and result set?May be this&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;STRONG&gt;Time(Time#(time), 'hh:mm:ss')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390139#M608536</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-12T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load TimeWithZone field from postgres</title>
      <link>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390140#M608537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(Max(Timestamp#(time,&lt;STRONG&gt;'hh:mm:ss+00'&lt;/STRONG&gt;) ))&amp;nbsp; as Stop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-TimeWithZone-field-from-postgres/m-p/1390140#M608537</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-12-12T12:44:27Z</dc:date>
    </item>
  </channel>
</rss>

