<?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: Gauge dynamic range with expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956279#M78839</link>
    <description>&lt;P&gt;Hi, maybe it is easier as range to take maximum average [Time to Completion] per [Type] with&lt;/P&gt;
&lt;P&gt;max({&amp;lt;Type=&amp;gt;} aggr(avg({&amp;lt;Type=&amp;gt;} [Time to Completion]), Type))&lt;/P&gt;
&lt;P&gt;because with this approach you have constant maximum range, despite what Types are selected.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 07:51:05 GMT</pubDate>
    <dc:creator>justISO</dc:creator>
    <dc:date>2022-07-15T07:51:05Z</dc:date>
    <item>
      <title>Gauge dynamic range with expression</title>
      <link>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956031#M78828</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;What is wrong with this expression ?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;= 2 * Avg(if(match([Type],TOTAL[Type]),[Time to Completion]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I am trying to make a gauge graph who's range represents the average [Time to Completion] of the [Type] of reports left in the user's selections, to make the range more meaningfull. The above expression doesn't compile.&lt;/P&gt;
&lt;P&gt;I tried this one as well :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;= 2 * Avg(TOTAL aggr(avg([Time to Completion]),Type))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It compiles but changes the range to just &lt;STRONG&gt;2 * avg([Time to Completion])&lt;/STRONG&gt;, which makes the needle only stay in the middle.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;LJ&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956031#M78828</guid>
      <dc:creator>LouisJ</dc:creator>
      <dc:date>2022-07-14T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge dynamic range with expression</title>
      <link>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956279#M78839</link>
      <description>&lt;P&gt;Hi, maybe it is easier as range to take maximum average [Time to Completion] per [Type] with&lt;/P&gt;
&lt;P&gt;max({&amp;lt;Type=&amp;gt;} aggr(avg({&amp;lt;Type=&amp;gt;} [Time to Completion]), Type))&lt;/P&gt;
&lt;P&gt;because with this approach you have constant maximum range, despite what Types are selected.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 07:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956279#M78839</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-07-15T07:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge dynamic range with expression</title>
      <link>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956285#M78841</link>
      <description>&lt;P&gt;Hi, thanks for your response, the thinking behind the dynamic range is that the different type of Reports don't&amp;nbsp;necessarily have any correlation with their times of completion.&lt;/P&gt;
&lt;P&gt;Some report types just take longer then others because different actions have to be taken.&lt;/P&gt;
&lt;P&gt;So if the user only selects Deviation Reports for example, I would like the range to change to&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 * (avg([Time of Completion) for Deviation Reports)), so that when he then selects a time period or a location he can compare to the global time/location average for that type of report, instead of the global average for every report, some of which have absolutely no time correlation with Deviations.&lt;/P&gt;
&lt;P&gt;I hope this makes some sense.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 07:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Gauge-dynamic-range-with-expression/m-p/1956285#M78841</guid>
      <dc:creator>LouisJ</dc:creator>
      <dc:date>2022-07-15T07:59:45Z</dc:date>
    </item>
  </channel>
</rss>

