<?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 AW:Re: difference between two columns - display in traffic light in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224261#M76690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your gauge segments should be set to 0 (green) and 1 (red). Your formula should be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;if(&lt;/B&gt;round(sum({$&amp;lt;[Balance Date]={'$(vDatum2)'},Task={'$(vTask2)'},Vers={'$(vVers2)'}&amp;gt;} [GIS EU]))-round(sum({$&amp;lt;[Balance Date]={'$(vDatum1)'},Task={'$(vTask1)'},Vers={'$(vVers1)'}&amp;gt;} [GIS EU]))&lt;B&gt;&amp;lt;&amp;gt;0,1,0)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The idea is to set up a formula that will generate easy-to-handle values, rather than to place your logic in the segments. This is almost always a better policy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2010 17:02:37 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2010-07-15T17:02:37Z</dc:date>
    <item>
      <title>difference between two columns - display in traffic light</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224258#M76687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;today I have a new problem with the "traffic lights". In a tablecollum I've calculated the difference between column1 and column2. Now I want to display the result in a Traffic light. If the result of my calculation = 0, then the green light should lit. If the difference is &amp;lt;&amp;gt; 0, the red light should lit.&lt;/P&gt;&lt;P&gt;Sounds very easy, but I'm not able to solve this problem.&lt;/P&gt;&lt;P&gt;Has Anyone an idea?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224258#M76687</guid>
      <dc:creator />
      <dc:date>2010-07-15T14:21:22Z</dc:date>
    </item>
    <item>
      <title>difference between two columns - display in traffic light</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224259#M76688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming your current calculation is:&lt;/P&gt;&lt;P&gt;Column(1) - Column(2)&lt;/P&gt;&lt;P&gt;In which case you would indeed have a problem with the traffic light you want because of how segmentation works. If this is the case, a simple solution would be:&lt;/P&gt;&lt;P&gt;if(Column(1)-Column(2)&amp;lt;&amp;gt;0,1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224259#M76688</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-07-15T14:50:27Z</dc:date>
    </item>
    <item>
      <title>AW:Re: difference between two columns - display in traffic light</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224260#M76689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Or Shoham,&lt;/P&gt;&lt;P&gt;so, do I put the same formular in both segment startup values?&lt;/P&gt;&lt;P&gt;this is my table:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1667.TrafficLight.JPG"&gt;&lt;IMG alt="" border="0" height="206" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1667.TrafficLight.JPG" width="187" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the difference also could be positive....&lt;/P&gt;&lt;P&gt;the formular ist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(sum({$&amp;lt;[Balance Date]={'$(vDatum2)'},Task={'$(vTask2)'},Vers={'$(vVers2)'}&amp;gt;} [GIS EU]))-round(sum({$&amp;lt;[Balance Date]={'$(vDatum1)'},Task={'$(vTask1)'},Vers={'$(vVers1)'}&amp;gt;} [GIS EU]))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;the same formular I have in my "Traffic Light"&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6545.Traffic1.JPG"&gt;&lt;IMG alt="" border="0" height="290" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6545.Traffic1.JPG" width="458" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and so I have configured my Traffic Light:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7041.Traffic2.JPG"&gt;&lt;IMG alt="" border="0" height="357" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7041.Traffic2.JPG" width="457" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What did I made wrong?&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 15:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224260#M76689</guid>
      <dc:creator />
      <dc:date>2010-07-15T15:22:32Z</dc:date>
    </item>
    <item>
      <title>AW:Re: difference between two columns - display in traffic light</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224261#M76690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your gauge segments should be set to 0 (green) and 1 (red). Your formula should be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;if(&lt;/B&gt;round(sum({$&amp;lt;[Balance Date]={'$(vDatum2)'},Task={'$(vTask2)'},Vers={'$(vVers2)'}&amp;gt;} [GIS EU]))-round(sum({$&amp;lt;[Balance Date]={'$(vDatum1)'},Task={'$(vTask1)'},Vers={'$(vVers1)'}&amp;gt;} [GIS EU]))&lt;B&gt;&amp;lt;&amp;gt;0,1,0)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The idea is to set up a formula that will generate easy-to-handle values, rather than to place your logic in the segments. This is almost always a better policy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 17:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224261#M76690</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-07-15T17:02:37Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: difference between two columns - display in traffic light</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224262#M76691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, now I did understand.... it works fine.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 08:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-two-columns-display-in-traffic-light/m-p/224262#M76691</guid>
      <dc:creator />
      <dc:date>2010-07-16T08:05:15Z</dc:date>
    </item>
  </channel>
</rss>

