<?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: Expression for dates (Expresión para fechas) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908810#M983770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Massimo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to implement the expression and it works but only for the units that have more than one record. When a unit has only one record then Km Recorridos appear as "-". Do you know what can I do to make the kilometers appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 23:57:15 GMT</pubDate>
    <dc:creator>katherine_mondr</dc:creator>
    <dc:date>2015-08-03T23:57:15Z</dc:date>
    <item>
      <title>Expression for dates (Expresión para fechas)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908807#M983767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when trying to create an expression of me as a result the total number of kilometers traveled for a day. Citing the following table unit 1 begins his workday with 237 kilometers of bygone days hence to calculate the mileage of the day only 08/02/2015 must subtract 908-237. I wonder how I can perform this subtraction in an expression so that after being captured in a PivotTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Unidad&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Fecha/Hora&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat;" valign="middle"&gt;Km recorridos&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2/8/2015&amp;nbsp;&amp;nbsp;&amp;nbsp; 10:10 am&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;237&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2/8/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8:15 pm&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;543&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2/8/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3:12 pm&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;678&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;2/8/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9:00 pm&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;908&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Translated with Google Translate - Qlik Community Administrative Team&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Buen día!&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Tengo un problema al momento de tratar de crear una expresión que me de como resultado el número total de kilómetros recorridos durante un día. Poniendo como ejemplo la siguiente tabla la unidad 1 comienza su día laboral con 237 kilómetros recorridos de días pasados por lo tanto para poder calcular los kilómetros recorridos únicamente del día 2/8/2015 debo restar 908-237. Quisiera saber como puedo llevar a cabo esta resta en una expresión para que después sea plasmada en una tabla dinámica.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 18:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908807#M983767</guid>
      <dc:creator>katherine_mondr</dc:creator>
      <dc:date>2015-08-03T18:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expresión para fechas</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908808#M983768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you add a field Fecha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Unidad, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Fecha/Hora], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Km recorridos],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; subfield([Fecha/Hora], ' ', 1) as Fecha&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="175095" data-objecttype="1" href="https://community.qlik.com/thread/175095"&gt;https://community.qlik.com/thread/175095&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can make a chart like this&lt;/P&gt;&lt;P&gt;the expression is&lt;/P&gt;&lt;P&gt;max([Km recorridos]) - min([Km recorridos])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94872" alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94872_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get the same result (without modify the script) in a chart with dimensions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;subfield([Fecha/Hora], ' ', 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Unidad&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;expression&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;max([Km recorridos]) - min([Km recorridos])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 19:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908808#M983768</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-03T19:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expresión para fechas</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908809#M983769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Massimo! I will try it! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 19:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908809#M983769</guid>
      <dc:creator>katherine_mondr</dc:creator>
      <dc:date>2015-08-03T19:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for dates (Expresión para fechas)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908810#M983770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Massimo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to implement the expression and it works but only for the units that have more than one record. When a unit has only one record then Km Recorridos appear as "-". Do you know what can I do to make the kilometers appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 23:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908810#M983770</guid>
      <dc:creator>katherine_mondr</dc:creator>
      <dc:date>2015-08-03T23:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for dates (Expresión para fechas)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908811#M983771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;try to uncheck suppress zero values as in image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;see attachment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but when you only have 1 record there is no difference (distance)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="339" src="https://community.qlik.com/legacyfs/online/94858_1.png" style="height: 339px; width: 275.525px;" width="275" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908811#M983771</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-04T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for dates (Expresión para fechas)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908812#M983772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! ¿Is there a way to suppress null values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 02:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-dates-Expresi%C3%B3n-para-fechas/m-p/908812#M983772</guid>
      <dc:creator>katherine_mondr</dc:creator>
      <dc:date>2015-08-05T02:06:26Z</dc:date>
    </item>
  </channel>
</rss>

