<?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 Setting a traffic light based on text in a record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249437#M1205279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, I used the function you mentioned and for the first time got past 'Error in expression' message. Now, where do I put the Ontime = 1 and green traffic light, notdelivered = 2 and yellow traffic light and late= 3 red traffic light?&lt;/P&gt;&lt;P&gt;I put in Representaiton - Traffic Light Guage. Then go into Guage settings and don't know what to put here.&lt;/P&gt;&lt;P&gt;Can you please help? I've been on this all day.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Mar 2010 20:30:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-30T20:30:23Z</dc:date>
    <item>
      <title>Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249434#M1205276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to set a traffic light based on a value of a particular field. The field is a status field. It has 3 possible values. I would like the traffic light displayed green, yellow or red depending on the value of the field (text value). I have searched the forums and tried over and over to get this to work.&lt;/P&gt;&lt;P&gt;Can someone please explain something from begining to end. I'm assuming I must use a table chart. I tried this and couldn't get it to work. It's basically a report that's displayed and I want the last column to display a traffic light based on one of the fields value (remember it's a text value like ONTIME, LATE and NOTDELIVERED). ONTIME = green, LATE = red and NOTDELIVERED = yellow (all traffic lights.&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 17:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249434#M1205276</guid>
      <dc:creator />
      <dc:date>2010-03-30T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249435#M1205277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this several ways including changing texts and background colours but I think what you are after are the bundled images that mimic traffic lights.&lt;/P&gt;&lt;P&gt;Yes you need a chart of some sort (pivot or table) then create an expression like this :&lt;/P&gt;&lt;P&gt;if (fieldname='good', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png', if (fieldname='notsogood', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_o.png'))&lt;/P&gt;&lt;P&gt;This represents a compound conditional statement like this:&lt;/P&gt;&lt;P&gt;if fieldname = 'good' then&lt;/P&gt;&lt;P&gt;show green traffic light&lt;/P&gt;&lt;P&gt;else if fieldname = 'notsogood'&lt;/P&gt;&lt;P&gt;show orange traffic light&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;show red traffic light&lt;/P&gt;&lt;P&gt;Remember to change the 'display options' under the expressions tab on the'chart properties' to representation = 'image'.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 18:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249435#M1205277</guid>
      <dc:creator />
      <dc:date>2010-03-30T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249436#M1205278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probably make your status field a dual() field:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dual(Status,match(Status,'ONTIME','NOTDELIVERED','LATE')) as Status&lt;/P&gt;&lt;P&gt;While you will still normally see Status as text, it then also has an underlying value of 1, 2 or 3. That allows you to set up a traffic light for the field just like you would for any other numeric field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 19:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249436#M1205278</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-30T19:38:43Z</dc:date>
    </item>
    <item>
      <title>Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249437#M1205279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, I used the function you mentioned and for the first time got past 'Error in expression' message. Now, where do I put the Ontime = 1 and green traffic light, notdelivered = 2 and yellow traffic light and late= 3 red traffic light?&lt;/P&gt;&lt;P&gt;I put in Representaiton - Traffic Light Guage. Then go into Guage settings and don't know what to put here.&lt;/P&gt;&lt;P&gt;Can you please help? I've been on this all day.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 20:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249437#M1205279</guid>
      <dc:creator />
      <dc:date>2010-03-30T20:30:23Z</dc:date>
    </item>
    <item>
      <title>Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249438#M1205280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example. Basically, you put in the 1, 2 and 3 as the segment boundaries, and set the color for each segment appropriately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 20:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249438#M1205280</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-30T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a traffic light based on text in a record</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249439#M1205281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John. That's just what I needed. Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-traffic-light-based-on-text-in-a-record/m-p/249439#M1205281</guid>
      <dc:creator />
      <dc:date>2013-10-08T13:28:48Z</dc:date>
    </item>
  </channel>
</rss>

