<?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 Tutorial: How to create an &amp;quot;On/Off-Target&amp;quot; gauge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tutorial-How-to-create-an-quot-On-Off-Target-quot-gauge/m-p/886116#M655905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here is a short tutorial that describes how to create a gauge that will either read On- or Off-Target. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Gauges have a low data-to-area and data-to-ink ratio. Whether this is good or bad is for you do decide. However, in essence, a dashboard gauge needs to be both simple and easy to read at a glance. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I used the following gauge to visualize data that rarely, if ever, deviated from the budget, but was nevertheless essential to display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1) &lt;SPAN style="font-size: 10pt;"&gt;Go to New Sheet Object --&amp;gt; Chart -- Gauge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A rule of thumb is to not define a dimension, however I used Month() as my dimension in order to force my gauge to dynamically display whether or not a metric is on or off-target for any month() selected. You can leave the dimension field blank, or use DATE, YEAR(), WEEK(), etc. depending on you need at hand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2) Within the expressions tab, enter something similar to the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;)&amp;gt;=0, 0.75, .25) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The latter of this expression is essential in order for the gauge to work properly. It will point the ticker in either the red (0.25) or green (0.75) based on a conditional statement that compares a given metric (in this case 'Metric 1'), to another, such as &lt;SPAN style="color: #800000;"&gt;[Sales].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) &lt;SPAN style="font-size: 10pt;"&gt;Within the presentation tab, format the segments as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Gauge Settings: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Min: 0 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Max: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segments Setup: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segment 1: Lower bound 0 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segment 2: Lower bound 0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4) Lastly, within the presentation, add the following expressions within the Text in Chart box located in the bottom right. Click add, and enter the following expressions within the Text field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;)&amp;gt;=0,'On Target', 'Off Target') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;='Deviation: ' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(13)&lt;BR /&gt;&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; &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;Depending on your preferences, edit the font and color as needed, but maintain a transparent background. &lt;SPAN style="font-size: 10pt;"&gt;If the preceding steps are done sequentially, the following will be the end result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Gauge.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90598_Gauge.png" style="height: auto; margin-right: auto; margin-left: auto; display: block;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gauge used to compare Actuals to Plan in order to determine at a glance if we are On- or Off-Target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 21:04:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-23T21:04:46Z</dc:date>
    <item>
      <title>Tutorial: How to create an "On/Off-Target" gauge</title>
      <link>https://community.qlik.com/t5/QlikView/Tutorial-How-to-create-an-quot-On-Off-Target-quot-gauge/m-p/886116#M655905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here is a short tutorial that describes how to create a gauge that will either read On- or Off-Target. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Gauges have a low data-to-area and data-to-ink ratio. Whether this is good or bad is for you do decide. However, in essence, a dashboard gauge needs to be both simple and easy to read at a glance. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I used the following gauge to visualize data that rarely, if ever, deviated from the budget, but was nevertheless essential to display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1) &lt;SPAN style="font-size: 10pt;"&gt;Go to New Sheet Object --&amp;gt; Chart -- Gauge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A rule of thumb is to not define a dimension, however I used Month() as my dimension in order to force my gauge to dynamically display whether or not a metric is on or off-target for any month() selected. You can leave the dimension field blank, or use DATE, YEAR(), WEEK(), etc. depending on you need at hand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2) Within the expressions tab, enter something similar to the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;)&amp;gt;=0, 0.75, .25) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The latter of this expression is essential in order for the gauge to work properly. It will point the ticker in either the red (0.25) or green (0.75) based on a conditional statement that compares a given metric (in this case 'Metric 1'), to another, such as &lt;SPAN style="color: #800000;"&gt;[Sales].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3) &lt;SPAN style="font-size: 10pt;"&gt;Within the presentation tab, format the segments as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Gauge Settings: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Min: 0 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Max: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segments Setup: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segment 1: Lower bound 0 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Segment 2: Lower bound 0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4) Lastly, within the presentation, add the following expressions within the Text in Chart box located in the bottom right. Click add, and enter the following expressions within the Text field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;)&amp;gt;=0,'On Target', 'Off Target') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;='Deviation: ' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(13)&lt;BR /&gt;&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; &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Metric]&lt;/SPAN&gt;={'Metric 1}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Sales]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;Depending on your preferences, edit the font and color as needed, but maintain a transparent background. &lt;SPAN style="font-size: 10pt;"&gt;If the preceding steps are done sequentially, the following will be the end result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Gauge.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90598_Gauge.png" style="height: auto; margin-right: auto; margin-left: auto; display: block;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gauge used to compare Actuals to Plan in order to determine at a glance if we are On- or Off-Target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 21:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tutorial-How-to-create-an-quot-On-Off-Target-quot-gauge/m-p/886116#M655905</guid>
      <dc:creator />
      <dc:date>2015-06-23T21:04:46Z</dc:date>
    </item>
  </channel>
</rss>

