<?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 Measure with Number Formatting set to 'Auto' does not work for Duration values even with specific expression formatting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Measure-with-Number-Formatting-set-to-Auto-does-not-work-for/m-p/2014997#M1221879</link>
    <description>&lt;P&gt;I'm having an issue where I have a chart that should display the values in their related format, but it's not.&lt;/P&gt;
&lt;P&gt;For example, if an Item has a UOM as '%', I want the values displayed in percentage...&lt;/P&gt;
&lt;P&gt;if an Item has a UOM as 'time', I want the values (which are stored in seconds) as 'mm:ss' format...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'Auto' formatting does NOT seem to work for detecting the correct duration in mm:ss format.&lt;/P&gt;
&lt;P&gt;MY EXAMPLE:&lt;/P&gt;
&lt;P&gt;SCRIPT:&lt;/P&gt;
&lt;P&gt;Test1:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;PI, Value, UOM, Year&lt;BR /&gt;'1 mile', 120, 'Time', 2020&lt;BR /&gt;'1 mile', 360, 'Time', 2021&lt;BR /&gt;'1 mile', 480, 'Time', 2022&lt;BR /&gt;'Push-ups', 10, 'Reps', 2020&lt;BR /&gt;'Push-ups', 15, 'Reps', 2021&lt;BR /&gt;'Push-ups', 20, 'Reps', 2022&lt;BR /&gt;'% ECW', .02, '%', 2020&lt;BR /&gt;'% ECW', .12, '%', 2021&lt;BR /&gt;'% ECW', .9, '%', 2022&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;I have a chart that I want to be able to show values in % OR in mm:ss... I've tried testing out multiple formulas... one being:&lt;/P&gt;
&lt;P&gt;if(UOM = 'Time', Interval(avg(Interval#((Value),'s')),'mm:ss'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm primarily trying to get the 'Time'/Duration values to plot correctly (displaying in % or numeric formating works fine for me)... but for example, if I select '1 mile' as the PI, and year as 2022... instead of showing the 480 seconds as '08:00'.. it shows it as 5.56m..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Ben&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 19:02:16 GMT</pubDate>
    <dc:creator>bencvanderlaan</dc:creator>
    <dc:date>2022-12-09T19:02:16Z</dc:date>
    <item>
      <title>Measure with Number Formatting set to 'Auto' does not work for Duration values even with specific expression formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Measure-with-Number-Formatting-set-to-Auto-does-not-work-for/m-p/2014997#M1221879</link>
      <description>&lt;P&gt;I'm having an issue where I have a chart that should display the values in their related format, but it's not.&lt;/P&gt;
&lt;P&gt;For example, if an Item has a UOM as '%', I want the values displayed in percentage...&lt;/P&gt;
&lt;P&gt;if an Item has a UOM as 'time', I want the values (which are stored in seconds) as 'mm:ss' format...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'Auto' formatting does NOT seem to work for detecting the correct duration in mm:ss format.&lt;/P&gt;
&lt;P&gt;MY EXAMPLE:&lt;/P&gt;
&lt;P&gt;SCRIPT:&lt;/P&gt;
&lt;P&gt;Test1:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;PI, Value, UOM, Year&lt;BR /&gt;'1 mile', 120, 'Time', 2020&lt;BR /&gt;'1 mile', 360, 'Time', 2021&lt;BR /&gt;'1 mile', 480, 'Time', 2022&lt;BR /&gt;'Push-ups', 10, 'Reps', 2020&lt;BR /&gt;'Push-ups', 15, 'Reps', 2021&lt;BR /&gt;'Push-ups', 20, 'Reps', 2022&lt;BR /&gt;'% ECW', .02, '%', 2020&lt;BR /&gt;'% ECW', .12, '%', 2021&lt;BR /&gt;'% ECW', .9, '%', 2022&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;I have a chart that I want to be able to show values in % OR in mm:ss... I've tried testing out multiple formulas... one being:&lt;/P&gt;
&lt;P&gt;if(UOM = 'Time', Interval(avg(Interval#((Value),'s')),'mm:ss'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm primarily trying to get the 'Time'/Duration values to plot correctly (displaying in % or numeric formating works fine for me)... but for example, if I select '1 mile' as the PI, and year as 2022... instead of showing the 480 seconds as '08:00'.. it shows it as 5.56m..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Ben&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 19:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Measure-with-Number-Formatting-set-to-Auto-does-not-work-for/m-p/2014997#M1221879</guid>
      <dc:creator>bencvanderlaan</dc:creator>
      <dc:date>2022-12-09T19:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with Number Formatting set to 'Auto' does not work for Duration values even with specific expression formatting</title>
      <link>https://community.qlik.com/t5/QlikView/Measure-with-Number-Formatting-set-to-Auto-does-not-work-for/m-p/2014998#M1221880</link>
      <description>&lt;P&gt;I guess the basic question is: when the measure Number Formatting is set to 'Auto'... will this ever allow it to be displayed in mm:ss format for duration values?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 19:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Measure-with-Number-Formatting-set-to-Auto-does-not-work-for/m-p/2014998#M1221880</guid>
      <dc:creator>bencvanderlaan</dc:creator>
      <dc:date>2022-12-09T19:05:17Z</dc:date>
    </item>
  </channel>
</rss>

