<?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: Time  as Axis, formatted AM/PM , but with granularity of milliseconds. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656753#M49113</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3607"&gt;@andoryuu&lt;/a&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp; thanks for responding.&lt;/P&gt;&lt;P&gt;That's ( in a more concise way) my original question.&lt;/P&gt;&lt;P&gt;I would &lt;EM&gt;expect&lt;/EM&gt; the SQL version and the QLIK manipulated version to be displayed the same&amp;nbsp; - do I need to apply additional tags/mapping in the load?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using the load script rather than the loading wizard, which automatically picks out date fields etc..&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 20:11:35 GMT</pubDate>
    <dc:creator>johnnymartinez</dc:creator>
    <dc:date>2019-12-11T20:11:35Z</dc:date>
    <item>
      <title>Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656474#M49092</link>
      <description>&lt;P&gt;So&amp;nbsp; a picture is worth a thousand words&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm recording activity on our SQL server to show high resource / long running queries daily/weekly etc.&lt;/P&gt;&lt;P&gt;I'm trying to set-up an axis without doing any conditional stuff in the dimension column, so users can click the relevant sections and not see a long&amp;nbsp; &amp;nbsp;IF(a=1 and b=1,c,d)&amp;nbsp; instead of myDimTimeOfDay.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The top&amp;nbsp; axis uses a time field imported from SQL server as 'HH:MM:ss.fff tt' format.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;The bottom axis uses "=Time(Frac(WAT_Collection_Time))"&amp;nbsp; (Time portion of a TimeStamp )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to force Qliksense to format the SQL imported time dimension in the load script to display the same as the bottom one?&amp;nbsp; I'd rather the user didn't have to see the whole Time(Frac( stuff when selecting etc..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql_servER-illiseconds.png" style="width: 984px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25342iEDC499D91D8F2E17/image-size/large?v=v2&amp;amp;px=999" role="button" title="sql_servER-illiseconds.png" alt="sql_servER-illiseconds.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656474#M49092</guid>
      <dc:creator>johnnymartinez</dc:creator>
      <dc:date>2024-11-16T19:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656610#M49102</link>
      <description>Time() and Frac() are both functions for script and chart. If you want it as a separate field why not format it as a separately named field in your data load script (or format it as a separate field in the SELECT statement from SQL for that matter)?</description>
      <pubDate>Wed, 11 Dec 2019 15:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656610#M49102</guid>
      <dc:creator>andoryuu</dc:creator>
      <dc:date>2019-12-11T15:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656753#M49113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3607"&gt;@andoryuu&lt;/a&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp; thanks for responding.&lt;/P&gt;&lt;P&gt;That's ( in a more concise way) my original question.&lt;/P&gt;&lt;P&gt;I would &lt;EM&gt;expect&lt;/EM&gt; the SQL version and the QLIK manipulated version to be displayed the same&amp;nbsp; - do I need to apply additional tags/mapping in the load?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using the load script rather than the loading wizard, which automatically picks out date fields etc..&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 20:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656753#M49113</guid>
      <dc:creator>johnnymartinez</dc:creator>
      <dc:date>2019-12-11T20:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656787#M49121</link>
      <description>&lt;P&gt;It's still going to treat them as individual dates unless you use some floor() or ceil() functions.&amp;nbsp; Can you post your data load script and code your using to construct your field in the viz?&amp;nbsp; If you can post the whole app that would be best, but I know that's not always possible.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 22:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1656787#M49121</guid>
      <dc:creator>andoryuu</dc:creator>
      <dc:date>2019-12-11T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657525#M49207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3607"&gt;@andoryuu&lt;/a&gt;&amp;nbsp; - thanks again for taking the time to reply again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code has a lot of irrelevant stuff to this question so maybe won't be so helpful, however I took your advice and applied the Frac/Time functions in lieu of loading the SQL formatted time columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below effectively swaps the original content for the same data again, but within the load script instead of in the SQL view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(IS_TODAY='Y',Time(Frac(WAT_Collection_Time))) AS WAT_TSC_PERSON_TODAY,&lt;BR /&gt;Time(Frac(WAT_Collection_Time)) AS WAT_TSC_PERSON_HISTORY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Originally as output by SQL&amp;nbsp; - which was the 'time' portion of a SQL DateTime field conditionally loaded or 'null' :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sqlvv.png" style="width: 648px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25503iB084B260EA684152/image-size/large?v=v2&amp;amp;px=999" role="button" title="sqlvv.png" alt="sqlvv.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then just the same logic again, this time performed within the load script from the original DateTime field again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAAA.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25504i7DC2D155FC06E8FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="AAAA.png" alt="AAAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This now satisfactorily produces the correct Axis formatting and behaviour, with the caveat that it still forces military time format and NOT Am/Pm which was what'd be preferable, for clarity/ quicker reading of the chart.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ergergeeddd.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25505i71EF32C5AE2C3092/image-size/large?v=v2&amp;amp;px=999" role="button" title="ergergeeddd.png" alt="ergergeeddd.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657525#M49207</guid>
      <dc:creator>johnnymartinez</dc:creator>
      <dc:date>2019-12-13T10:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657527#M49208</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Can't delete&amp;gt;&amp;gt;&amp;lt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See last post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657527#M49208</guid>
      <dc:creator>johnnymartinez</dc:creator>
      <dc:date>2019-12-13T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time  as Axis, formatted AM/PM , but with granularity of milliseconds.</title>
      <link>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657619#M49216</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/27176"&gt;@johnnymartinez&lt;/a&gt;&amp;nbsp; &amp;nbsp;You should absolutely be able to display with am pm.&amp;nbsp; You probably just have to wrap it in a time(time#()) nest.&amp;nbsp; I've attached a sample that accurately captures this and renders AM PM (note that the input has it in caps, but the presentation in the visualization is lower case - it detects and displays the AM/PM).&amp;nbsp; If you post your QVF I can take a look.&amp;nbsp; Here's an example (this is in the qvf):&lt;/P&gt;&lt;P&gt;timetable:&lt;BR /&gt;LOAD Time(Time#(TimeList,'hh:mm tt'),'hh:mm tt') as TimeList inline [&lt;BR /&gt;TimeList&lt;BR /&gt;09:00 AM&lt;BR /&gt;09:15 AM&lt;BR /&gt;09:30 AM&lt;BR /&gt;11:25 AM&lt;BR /&gt;01:00 PM&lt;BR /&gt;03:30 PM&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-as-Axis-formatted-AM-PM-but-with-granularity-of/m-p/1657619#M49216</guid>
      <dc:creator>andoryuu</dc:creator>
      <dc:date>2019-12-13T14:54:46Z</dc:date>
    </item>
  </channel>
</rss>

