<?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: Returning times from INLINE table with minutes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161975#M94309</link>
    <description>&lt;P&gt;Looks like you're running something else, not the inline - there's no WorkCenter field in the inline and the list of values doesn't match...&lt;/P&gt;
&lt;P&gt;Perhaps the field being read isn't recognized as being numeric? In that case, you'll need to use num#() to tell Qlik how to read it as a number.&lt;/P&gt;
&lt;P&gt;Additionally, max() returns a numeric dual, meaning if you want it formatted you'll need to use Interval(Max(Field)), I believe. Not sure about that, though.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2024 12:34:18 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2024-01-16T12:34:18Z</dc:date>
    <item>
      <title>Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161599#M94268</link>
      <description>&lt;P&gt;I have currently created this INLINE table that contains, for each of the work centers, an associated standard time of completion. I want to make it so that Qlik reads these times as minutes and will therefore output a Time with, for ex: 00:24:08 after.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TempoMedioStandard:
LOAD 
    Cell, 
    Time#(TempoMedioStandardMin, 'hh.mm') as TempoMedioStandardMin_Time
INLINE [
    Cell, TempoMedioStandardMin
    21, 11.0
    22, 24.7
    23, 40.0
    24, 24.7
    25, 10.8
    26, 26.9
    27, 18.4
    29, 11.0
    30, 45.0
    31, 11.0
    32, 12.0
    33, 42.1
];
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is that while this seems to work, it only uses aggregated values instead of the specific times for each specific center. Like this: this is currently using MAX&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1705314599459.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127076i4927D5B69EE5E107/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1705314599459.png" alt="alespooletto_0-1705314599459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161599#M94268</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161635#M94271</link>
      <description>&lt;P&gt;I'm a tad confused about multiple things here:&lt;/P&gt;
&lt;P&gt;1) The format specified in time#() doesn't seem to match the format of the data - there's no hh.mm in sight?&lt;/P&gt;
&lt;P&gt;2) If this is meant to be hh.m, then it's not a time#(), since some of them are larger than 24. Perhaps it's an Interval#()?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 12:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161635#M94271</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-01-15T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161638#M94272</link>
      <description>&lt;P&gt;Hmm yeah, I'm not entirely sure if this function works as I wanted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those values you see in the columns are supposed to be minutes. So a 42.1 value = 42 minutes and ~ 10 seconds. I tried with interval as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TempoMedioStandard:
LOAD * INLINE [
    WorkCenter, TempoMedioStandardMin
    CELL21, Interval(0.008),
    CELL22, Interval(0.016979),
    CELL23, Interval(0.02809), 
    CELL24, Interval(0.016979),
    CELL25, Interval(0.00735),
    CELL26, Interval(0.018368), 
    CELL27, Interval(0.012905),
    CELL29, Interval(0.00794), 
    CELL30, Interval(0.03125), 
    CELL31, Interval(0.00794), 
    CELL32, Interval(0.008449), 
    CELL33, Interval(0.029282), 
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this doesn't seem to work and leaves my dashboard stuck on loading. It loads only as text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 12:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161638#M94272</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T12:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161647#M94273</link>
      <description>&lt;DIV&gt;So, if '42.1' means '00:42:10' then what does '26.9' mean? It can hardly mean 00:26:90', can it?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You could perhaps try&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;LOAD&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Cell,&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Interval(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Time#(Subfield(TempoMedioStandardMin,'.',1), 'm') +&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Time#(Subfield(TempoMedioStandardMin,'.',2), 's')&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; )&amp;nbsp; as TempoMedioStandardMin_Time&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;...&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jan 2024 12:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161647#M94273</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2024-01-15T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161661#M94274</link>
      <description>&lt;P&gt;If this entire thing is in minutes to begin with,&lt;/P&gt;
&lt;P&gt;Interval(TempoMedioStandardMin/1440,'hh:mm:ss') // Convert so that one day = 1&lt;/P&gt;
&lt;P&gt;=Interval(42.9/1440,'hh:mm:ss')&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1705324489416.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127083i97562A38A27D6B4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1705324489416.png" alt="Or_0-1705324489416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 13:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161661#M94274</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-01-15T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161677#M94276</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;thank you for the answer, if I understand correctly, should I put that formula at the top to substitute the one I had before?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TempoMedioStandard:
LOAD 
    Cell, 
	Interval(TempoMedioStandardMin/1440,'hh:mm:ss') // Convert so that one day = 1
INLINE [
    Cell, TempoMedioStandardMin
    CELL21, 11.0
    CELL22, 24.7
    CELL23, 40.0
    CELL24, 24.7
    CELL25, 10.8
    CELL26, 26.9
    CELL27, 18.4
    CELL29, 11.0
    CELL30, 45.0
    CELL31, 11.0
    CELL32, 12.0
    CELL33, 42.1
];&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Jan 2024 14:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161677#M94276</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161678#M94277</link>
      <description>&lt;P&gt;Yes, those decimals are just indicative as percentage, not as actual time, so maybe .9 would be 90% to get to the next minute. But this specific calculation is not useful to me, I just need close and approximate numbers not super precise ones..&lt;/P&gt;
&lt;P&gt;I will try a bit with your methods, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 14:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161678#M94277</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161679#M94278</link>
      <description>&lt;P&gt;You can use that in a Load statement, or on the front end in an expression, as you prefer.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 14:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161679#M94278</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-01-15T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161968#M94308</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp; sorry if I bother you. I am trying but I'm not sure what I'm doing wrong here.. I use this formula just as you helped me write it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TempoMedioStandard:
LOAD
Cell,
Interval(TempoMedioStandardMin/1440,'hh:mm:ss') as Time_Day
INLINE [
Cell, TempoMedioStandardMin
CELL21, 11.0
CELL22, 24.7
CELL23, 40.0
CELL24, 24.7
CELL25, 10.8
CELL26, 26.9
CELL27, 18.4
CELL29, 11.0
CELL30, 45.0
CELL31, 11.0
CELL32, 12.0
CELL33, 42.1
];&lt;/LI-CODE&gt;
&lt;P&gt;But this is the result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1705407794163.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127134i5CB950DD2504782D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1705407794163.png" alt="alespooletto_0-1705407794163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 12:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161968#M94308</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-16T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161975#M94309</link>
      <description>&lt;P&gt;Looks like you're running something else, not the inline - there's no WorkCenter field in the inline and the list of values doesn't match...&lt;/P&gt;
&lt;P&gt;Perhaps the field being read isn't recognized as being numeric? In that case, you'll need to use num#() to tell Qlik how to read it as a number.&lt;/P&gt;
&lt;P&gt;Additionally, max() returns a numeric dual, meaning if you want it formatted you'll need to use Interval(Max(Field)), I believe. Not sure about that, though.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 12:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2161975#M94309</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-01-16T12:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Returning times from INLINE table with minutes</title>
      <link>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2162023#M94320</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;. I found the reason for this not working, the decimal separator!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my main log, I use ',' and not '.' , now everything works correctly... After many trials and errors, I ended up using this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Interval(Num#(TempoMedioStandardMin/1440),'hh:mm:ss') as Time_Day
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Returning-times-from-INLINE-table-with-minutes/m-p/2162023#M94320</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-16T14:02:24Z</dc:date>
    </item>
  </channel>
</rss>

