<?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: customized duration format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852293#M531837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to be the good solution indeed. I didn't know this function. Very flexible!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, there is still a last issue: in the graphs, the scale is displayed with the numeric value (that's pretty logical as the graph itself is built with numeric), not the formatted value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see any way to force the scale to be displayed as the formatted value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 12:20:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-19T12:20:00Z</dc:date>
    <item>
      <title>customized duration format</title>
      <link>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852290#M531834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data which contents a number of minutes (a duration). I would like to present it in a friendly way, and keep it numeric so I can build graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best result I manage to get is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=interval(interval#(sum(DURATION_MINUTE) , 'm'), 'Dj hh:mm') which gives me&amp;nbsp; 2j 11:34 for instance&amp;nbsp; ('j' stands for 'day' in French)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is to add something like 'h' between the hours and the minutes. Ideally:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2j 11 h 34 min&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I set the format to 'D j hh h mm min' the whole 'h' and 'm' characters are interpreted as format chars, not just chars to be displayed: which gives:&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 j 11 11 34 3in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I can calculate the nb of days, hours and minutes, and build a concatenated string, but then it is not a number anymore. It could possibly be acceptable in a table, but no way to build a graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know a solution to customize the output format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852290#M531834</guid>
      <dc:creator />
      <dc:date>2015-05-13T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: customized duration format</title>
      <link>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852291#M531835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you use a dual function here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(&lt;/STRONG&gt;withconcatfunction, withoutconcatfunction(actualtimestamp)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve both your purpose, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 15:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852291#M531835</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-13T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: customized duration format</title>
      <link>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852292#M531836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one example using the proposed dual()-function could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_163843_Pic1_.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86446_QlikCommunity_Thread_163843_Pic1_.JPG" style="height: 124px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14315439658306999 jive_text_macro" jivemacro_uid="_14315439658306999"&gt;
&lt;P&gt;=Dual(Replace(Replace(Interval(Sum(DURATION_MINUTE)*'00:01:00','dj hh @ mm $'),'@','h'),'$','min'),Sum(DURATION_MINUTE)*'00:01:00')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852292#M531836</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-13T19:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: customized duration format</title>
      <link>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852293#M531837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to be the good solution indeed. I didn't know this function. Very flexible!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, there is still a last issue: in the graphs, the scale is displayed with the numeric value (that's pretty logical as the graph itself is built with numeric), not the formatted value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see any way to force the scale to be displayed as the formatted value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/customized-duration-format/m-p/852293#M531837</guid>
      <dc:creator />
      <dc:date>2015-05-19T12:20:00Z</dc:date>
    </item>
  </channel>
</rss>

