<?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: Linear Gaugue - Dynamic Segment Color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904673#M533187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the linear gauge color&amp;nbsp; in a chart is one color (always the same)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 19:47:34 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-04-13T19:47:34Z</dc:date>
    <item>
      <title>Linear Gaugue - Dynamic Segment Color</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904672#M533186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple requirement of a Straight Table with Expression as a Linear Gauge. For e.g.&lt;/P&gt;&lt;P&gt;Data Example&lt;/P&gt;&lt;P&gt;Phase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Complete&lt;/P&gt;&lt;P&gt;PROD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&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;nbsp;&amp;nbsp; 0.5&lt;/P&gt;&lt;P&gt;PROD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&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;nbsp;&amp;nbsp; 0.75&lt;/P&gt;&lt;P&gt;QA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&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;nbsp; 0.35&lt;/P&gt;&lt;P&gt;QA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&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;nbsp; 0.25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would Like to show %Complete as a Linear Gauge with only 1 segment (Lower Bound =0, Fill to Value). However, I would like the color of the Linear Gauge Fill to vary based on Phase. for example - Green for PROD and Orange for QA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried few ways but not working and making me feel it is a Bug. Appreciate your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 18:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904672#M533186</guid>
      <dc:creator />
      <dc:date>2015-04-13T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Gaugue - Dynamic Segment Color</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904673#M533187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the linear gauge color&amp;nbsp; in a chart is one color (always the same)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 19:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904673#M533187</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-13T19:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Gaugue - Dynamic Segment Color</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904674#M533188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I had kinda the same task lately, I guess you can't dinamically change gauge color &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 07:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904674#M533188</guid>
      <dc:creator />
      <dc:date>2015-04-14T07:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Gaugue - Dynamic Segment Color</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904675#M533189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you display how you tried to solve it?&lt;/P&gt;&lt;P&gt;I have used this in a gauge with this expression on the first segment color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Sum(Margin)/Sum(LineSalesAmount)&amp;gt;=0.15, $(vABCColor_Green1), $(vABCColor_Red))&lt;/P&gt;&lt;P&gt;The second segment is simply Grey. The two segment boundries are 0 for the first one and this for the second one&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;CYTDFlag&lt;/SPAN&gt;={'1'}, &lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;Quarter&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;= &amp;gt;}&lt;SPAN style="color: #800000;"&gt;Margin&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;CYTDFlag&lt;/SPAN&gt;={'1'}, &lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;Quarter&lt;/SPAN&gt;=, &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;= &amp;gt;}&lt;SPAN style="color: #800000;"&gt;LineSalesAmount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;I have not&amp;nbsp; tried this in a line chart but it should work the same way . You should be able to adjust the first if statement to chose the colors you want.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83594_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 08:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904675#M533189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Gaugue - Dynamic Segment Color</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904676#M533190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nils, Thanks for the reply but It doesnt seem to work.&lt;/P&gt;&lt;P&gt;I tried to display by writing an expression like this in the segment color expression -&lt;/P&gt;&lt;P&gt;If (Phase='PROD', red(), yellow())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to attach the qvw of the expression you mentioned which is working for you.&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Gaugue-Dynamic-Segment-Color/m-p/904676#M533190</guid>
      <dc:creator />
      <dc:date>2015-04-14T13:55:22Z</dc:date>
    </item>
  </channel>
</rss>

