<?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 Problem charting Time functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-charting-Time-functions/m-p/434936#M569152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Qlikview gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been stuck for a couple days on a single chart i'm doing for a proyect. The drill is: Every single day, there are route requests, for the daily job. Now, for example, the June 6th, there were 3 requests. Every request has a settlement date, which may span several days after the request date (Jun 6th).&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;The request No. 1 has a settlement date of June 6th 2012, 13:01:42&lt;/P&gt;&lt;P&gt;The request No. 2 has a settlement date of June 6th 2012, 18:39:33&lt;/P&gt;&lt;P&gt;The request No. 2 has a settlement date of June 7th 2012, 04:22:01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart need to show the Max settlement HOUR, according to the Max date, but ignoring it. So, the bar on the Jun 6th dimension should show 04:26:01, because 18 is bigger than 13, but the 7th one is technically bigger than 13. I already did a Group By on script, so i have the Max Date according the Request and Settlement date. The problem is: When i try to put the number on the chart, it does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23725" alt="Hora.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/23725_Hora.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the resulting number is, in fact, the Max existing Settlement date (Spanning 'till 1 day after), but the chart doesn't move. Apparently, the charted number is 2012, the current year. Here´s my table script, maybe the issue is script related, or even you can give me an advice about using time-related functions:&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 _jivemacro_uid_13506819895222437" jivemacro_uid="_13506819895222437"&gt;&lt;P&gt;OPORTUNIDAD_NARANJA:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(SolicitudFechaProceso) AS %Fecha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnidadOperativaCve AS %ID_UnidadOperativa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(MAX(TimeStamp(SolicitudFechaContabilizacion))) AS MaxHoraConta,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(Timestamp(SolicitudFechaDigitalizacion)) AS MaxFechaDigitalizacion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(TimeStamp(SolicitudFechaInicioLiquidacion)) AS MaxFechaInicioLiq&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;QVD\LRR_Solicitud.QVD&lt;/P&gt;&lt;P&gt;(qvd) group by SolicitudFechaProceso,&lt;/P&gt;&lt;P&gt;UnidadOperativaCve;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is Qualified, so no problem about all of those '%' and UnidadOperativaCve is just an identifier. MaxHoraConta is my time number, so maybe the function nesting is wrong, or something related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution/advice you can give to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 21:23:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-19T21:23:52Z</dc:date>
    <item>
      <title>Problem charting Time functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-charting-Time-functions/m-p/434936#M569152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Qlikview gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been stuck for a couple days on a single chart i'm doing for a proyect. The drill is: Every single day, there are route requests, for the daily job. Now, for example, the June 6th, there were 3 requests. Every request has a settlement date, which may span several days after the request date (Jun 6th).&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;The request No. 1 has a settlement date of June 6th 2012, 13:01:42&lt;/P&gt;&lt;P&gt;The request No. 2 has a settlement date of June 6th 2012, 18:39:33&lt;/P&gt;&lt;P&gt;The request No. 2 has a settlement date of June 7th 2012, 04:22:01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart need to show the Max settlement HOUR, according to the Max date, but ignoring it. So, the bar on the Jun 6th dimension should show 04:26:01, because 18 is bigger than 13, but the 7th one is technically bigger than 13. I already did a Group By on script, so i have the Max Date according the Request and Settlement date. The problem is: When i try to put the number on the chart, it does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23725" alt="Hora.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/23725_Hora.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the resulting number is, in fact, the Max existing Settlement date (Spanning 'till 1 day after), but the chart doesn't move. Apparently, the charted number is 2012, the current year. Here´s my table script, maybe the issue is script related, or even you can give me an advice about using time-related functions:&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 _jivemacro_uid_13506819895222437" jivemacro_uid="_13506819895222437"&gt;&lt;P&gt;OPORTUNIDAD_NARANJA:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(SolicitudFechaProceso) AS %Fecha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnidadOperativaCve AS %ID_UnidadOperativa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(MAX(TimeStamp(SolicitudFechaContabilizacion))) AS MaxHoraConta,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(Timestamp(SolicitudFechaDigitalizacion)) AS MaxFechaDigitalizacion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(TimeStamp(SolicitudFechaInicioLiquidacion)) AS MaxFechaInicioLiq&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;QVD\LRR_Solicitud.QVD&lt;/P&gt;&lt;P&gt;(qvd) group by SolicitudFechaProceso,&lt;/P&gt;&lt;P&gt;UnidadOperativaCve;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is Qualified, so no problem about all of those '%' and UnidadOperativaCve is just an identifier. MaxHoraConta is my time number, so maybe the function nesting is wrong, or something related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution/advice you can give to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 21:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-charting-Time-functions/m-p/434936#M569152</guid>
      <dc:creator />
      <dc:date>2012-10-19T21:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem charting Time functions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-charting-Time-functions/m-p/434937#M569154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Time(MAX(TimeStamp(SolicitudFechaContabilizacion))) AS MaxHoraConta&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will just format the value as Time, but will not change the underlying numerical value (i.e. still contain the date part).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you format your bar chart on number tab as time, but this seems to display the year of the value for large numerical numbers (don't ask me why).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;Time(frac(MAX(SolicitudFechaContabilizacion))) AS MaxHoraConta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you only want the Hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace;"&gt;hour(MAX(SolicitudFechaContabilizacion)) AS MaxHoraConta&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 21:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-charting-Time-functions/m-p/434937#M569154</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-19T21:51:29Z</dc:date>
    </item>
  </channel>
</rss>

