<?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 Gauge Settings Not Working As Expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233252#M84789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble getting my min and max setting to correctly set themselves up in my gauge. I am using the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;: CalendarDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;: interval(avg({&amp;lt;QUALIFY_AVG_OUTPAT_WAIT_YN = {'Y'}, QUALIFY_MRI_CYCLE_YN = {'Y'}, SEDATION_YN = {'Y'}&amp;gt;}PROC_BEGIN_TIME-APPT_TIME),'mm')&lt;/P&gt;&lt;P&gt;Presentation Tab Looks Like the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segment 1 Setting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3683_sourceID:3683" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segment 2 Setting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3684_sourceID:3684" /&gt;&lt;/P&gt;&lt;P&gt;The Guage Returned Looks like the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3685_sourceID:3685" /&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pop-up text on the needle gauge show "21" which is the correct number. However, my min gauge setting should show 1 and my max should be 48.&lt;/P&gt;&lt;P&gt;0-20 should be green while anything over 20 should be Red.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 02:43:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-01T02:43:41Z</dc:date>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233252#M84789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble getting my min and max setting to correctly set themselves up in my gauge. I am using the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;: CalendarDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;: interval(avg({&amp;lt;QUALIFY_AVG_OUTPAT_WAIT_YN = {'Y'}, QUALIFY_MRI_CYCLE_YN = {'Y'}, SEDATION_YN = {'Y'}&amp;gt;}PROC_BEGIN_TIME-APPT_TIME),'mm')&lt;/P&gt;&lt;P&gt;Presentation Tab Looks Like the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segment 1 Setting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3683_sourceID:3683" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segment 2 Setting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3684_sourceID:3684" /&gt;&lt;/P&gt;&lt;P&gt;The Guage Returned Looks like the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3685_sourceID:3685" /&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pop-up text on the needle gauge show "21" which is the correct number. However, my min gauge setting should show 1 and my max should be 48.&lt;/P&gt;&lt;P&gt;0-20 should be green while anything over 20 should be Red.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 02:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233252#M84789</guid>
      <dc:creator />
      <dc:date>2011-03-01T02:43:41Z</dc:date>
    </item>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233253#M84790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression should be an aggregate function..&lt;/P&gt;&lt;P&gt;Switch the AVG and Interval functions:&lt;/P&gt;&lt;P&gt;avg(interval({&amp;lt;QUALIFY_AVG_OUTPAT_WAIT_YN = {'Y'}, QUALIFY_MRI_CYCLE_YN = {'Y'}, SEDATION_YN = {'Y'}&amp;gt;}PROC_BEGIN_TIME-APPT_TIME),'mm'))&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 07:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233253#M84790</guid>
      <dc:creator>vupen</dc:creator>
      <dc:date>2011-03-01T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233254#M84791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;I think your problem is caused by the dual value that interval returns. The text representation (what you are seeing on the popup and as displayed on the chart tic lables) is in minutes. The internal value is actually in day fraction terms - ie a text value of '21' has an internal numerical value of 21 / (24 * 60) = 0.0145833.. You can verify this by putting your expression inside a Num() function in a text box.&lt;/P&gt;&lt;P&gt;So what this means is that your max value is in the numeric representation and is 48 &lt;B&gt;days,&lt;/B&gt; not 48 minutes, Segment 1's lower bound is 1 day (should be zero). Segment 2's lower bound is 20 &lt;B&gt;days&lt;/B&gt;. That explains why the tic lables on the guage are strange (they are the text representation,&lt;/P&gt;&lt;P&gt;Try changing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;max value to =48/(24*60)&lt;/LI&gt;&lt;LI&gt;segment 1 lower bound to 0&lt;/LI&gt;&lt;LI&gt;segment 2 lower bound to =20/(24*60)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I don't think that it is necessary to change your expression.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 09:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233254#M84791</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-01T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233255#M84792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan!!&lt;/P&gt;&lt;P&gt;Works Great!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233255#M84792</guid>
      <dc:creator />
      <dc:date>2011-03-01T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233256#M84793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;Could I suggest that you verify the correct answer, rather than your response. The purpose is to direct people with the same problem to the solution to the problem, without having to read all the postings.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233256#M84793</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-03-01T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Gauge Settings Not Working As Expected</title>
      <link>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233257#M84794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that.. hit the button in the wrong spot. Got if verified... Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 16:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gauge-Settings-Not-Working-As-Expected/m-p/233257#M84794</guid>
      <dc:creator />
      <dc:date>2011-03-01T16:18:24Z</dc:date>
    </item>
  </channel>
</rss>

