<?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: Formato de hora 24:00 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605766#M737433</link>
    <description>&lt;P&gt;You will then need to do some transformation in the script, like&lt;/P&gt;
&lt;P&gt;If(Num(Hour(Date(DateField))) &amp;gt;= 0 AND&amp;nbsp;Num(Hour(Date(DateField))) &amp;lt;=3,&amp;nbsp;Num(Hour(Date(DateField))) +24, DateField) AS NewDateField&lt;/P&gt;
&lt;P&gt;Then process it with the Interval() function.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 15:41:18 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2019-07-24T15:41:18Z</dc:date>
    <item>
      <title>Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605721#M737427</link>
      <description>&lt;P&gt;Bom dia!&lt;/P&gt;&lt;P&gt;&amp;nbsp;estou com uma dúvida simples... (Talvez)... tenho em meu banco a hora gravada como 24:05 e gostaria que assim a trouxesse, mas só consigo com que ela fique como 00:05&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 241px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15983i8C8A97010F2C6917/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Podem me ajudar por favor?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605721#M737427</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605723#M737428</link>
      <description>&lt;P&gt;Try using Interval() instead of Time() or Date()&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 14:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605723#M737428</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-24T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605724#M737429</link>
      <description>&lt;P&gt;já estou usando&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=interval(HR_PROGRAMADA,'hh:mm')&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 14:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605724#M737429</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-24T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605726#M737430</link>
      <description>&lt;P&gt;="interval(HR_PROGRAMADA,'hh:mm')"&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 14:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605726#M737430</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-24T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605727#M737431</link>
      <description>&lt;P&gt;How does the value look like in the source? It is also "24:05" ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 14:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605727#M737431</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-24T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605764#M737432</link>
      <description>&lt;P&gt;peço desculpas, na verdade está gravado como 00:05, sendo assim reformulo meu questionamento...&lt;BR /&gt;&lt;BR /&gt;QUALQUER hora que esteja entre 00:00 e 03:00 exibido como 24:00 / 25:00 e etc...&lt;/P&gt;&lt;P&gt;Obrigado mais uma vez&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605764#M737432</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-24T15:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605766#M737433</link>
      <description>&lt;P&gt;You will then need to do some transformation in the script, like&lt;/P&gt;
&lt;P&gt;If(Num(Hour(Date(DateField))) &amp;gt;= 0 AND&amp;nbsp;Num(Hour(Date(DateField))) &amp;lt;=3,&amp;nbsp;Num(Hour(Date(DateField))) +24, DateField) AS NewDateField&lt;/P&gt;
&lt;P&gt;Then process it with the Interval() function.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605766#M737433</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-24T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605775#M737434</link>
      <description>&lt;P&gt;está em sql como seria?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL SELECT FATO_DESEMPENHO_OPERACIONAL.`ID`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_LINHA` AS COD_LINHA_FATO,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_LINHA` AS DES_LINHA_FATO,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_OPERADORA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DTC_OPERACAO`,&lt;BR /&gt;YEAR (DTC_OPERACAO) AS ANO,&lt;BR /&gt;MONTH (DTC_OPERACAO) AS MES,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_PONTO_CONTROLE`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_PROGRAMADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_REALIZADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_REALIZADA_ORIGINAL`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_DIFERENCA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_STATUS`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_VEICULO_REALIZADO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`NOM_RODOVIARIO_REALIZADO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_DISTANCIA_PECORRIDA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_ORIGEM`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_DESTINO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_VIAGEM`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_VEICULO_PROGRAMADO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_ORIGEM_ITINERARIO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_TERMINO_VIAGEM`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_TEMPO_TOTAL`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_JUSTIFICATIVA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_OBSERVACAO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_USUARIO_JUSTIFICATIVA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_CLASSIFICACAO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`NUM_CPF_MOTORISTA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`NUM_CPF_COBRADOR`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`IDE_SK_FAIXA_PROGRAMADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`IDE_SK_FAIXA_REALIZADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`IDE_SK_DATA` AS IDE_SK_TEMPO,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`IDE_SK_TERMINAL`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_FAIXA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HR_HEADWAY`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`VAL_ADMTD`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`QTD_PROGRAMADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`QTD_REALIZADA`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`IDE_SK_FUNCIONARIO`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`HOR_TERMINO_PROGRAMADO`&lt;BR /&gt;FROM dw_csn.`FATO_DESEMPENHO_OPERACIONAL` where YEAR (DTC_OPERACAO)&amp;gt;'2018' ;/*&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605775#M737434</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-24T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605792#M737435</link>
      <description>&lt;P&gt;Use a LOAD before that SQL:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Something like this should work:&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;If() AS ... // new field as suggested&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SQL SELECT&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;FROM dw_csn ...&lt;/P&gt;
&lt;P&gt;WHERE ...&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605792#M737435</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-24T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605816#M737436</link>
      <description>&lt;P&gt;Assim foi feito no script&lt;BR /&gt;Tabela24:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;If(Num(Hour(Date(HR_PROGRAMADA))) &amp;gt;= '0' AND Num(Hour(Date(HR_PROGRAMADA))) &amp;lt;= '3', Num(Hour(Date(HR_PROGRAMADA))) + '24', HR_PROGRAMADA) AS HR_PROGRAMADANOVA&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL SELECT FATO_DESEMPENHO_OPERACIONAL.`ID`,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`COD_LINHA` AS COD_LINHA_FATO,&lt;BR /&gt;FATO_DESEMPENHO_OPERACIONAL.`DES_LINHA` AS DES_LINHA_FATO,&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e assim na dimensão (Está como dimensão e não como expressão):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Interval(HR_PROGRAMADANOVA,'hh:mm')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Só que agora não aparece mais as tais viagens nem como 00:05 nem com 24:05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1605816#M737436</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-24T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1606044#M737437</link>
      <description>&lt;P&gt;How can then you distinguish what is a "real" 00:05 and what is a "real" 24:05 in the data source?&lt;/P&gt;
&lt;P&gt;Yes indeed, the If() is applying to all rows where time is 00 and will add 24. Maybe a full timestamp where you can get start date and end date and you can see whether the date is 00:05 "+1 (days)"?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1606044#M737437</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-25T10:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Formato de hora 24:00</title>
      <link>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1606080#M737438</link>
      <description>&lt;P&gt;Mais uma vez obrigado pela atenção&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consegui resolver fazendo o seguinte na editando a dimensão:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=interval(if(Interval(HR_PROGRAMADA,'hh:mm')&amp;lt;'03:00:00',Interval(HR_PROGRAMADA,'hh:mm') + interval('24:00:00', 'hh:mm'),Interval(HR_PROGRAMADA,'hh:mm')),'hh:mm')&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 11:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formato-de-hora-24-00/m-p/1606080#M737438</guid>
      <dc:creator>Humberto_Nascimento</dc:creator>
      <dc:date>2019-07-25T11:51:39Z</dc:date>
    </item>
  </channel>
</rss>

