<?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: if Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276603#M1178824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried what you suggested and have been reading about the LOAD command, JOIN etc. It has been very helpful but didn't do what I needed. I have added the LOAD command to my script however based on your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our CAD system uses the PrimaryCode field to determine if a vehilce should be picked based on Capability or Resource. If the PrimaryCode is "0" then CAD is looking for Capability. If the PrimaryCode is "1" then the unit is picked by Resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the Resource and Capability tables each start at 1 and count up I have some Resources and some Capabilities that have common SQL ID. This causes my table to show both a Resource and a Capability when I only want one of them displayed based on the PrimaryCode number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="jiveNoBorder" style="width: 530px; border-collapse: collapse; margin-left: -1.15pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; width: 82px; padding-right: 5.4pt; border-top: 1pt solid; border-right: 1pt solid;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG04-Engine ESD04&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;MED00 - COA (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENG04 and MED00 have the same SQL id however only the MED00 should display since the PrimaryCode is "0". So what I have been trying to do is make the ResourceDescription field return a null value if the PrimaryCode is "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help with the firefighter terminology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resource = Ladder Truck, Pumper Truck (Engine), Rescue Unit (the type of toolbox)&lt;/P&gt;&lt;P&gt;Capability = pump, defibrillator, hose, gas monitor, rescue tools (the type of tools)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 23:51:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-13T23:51:57Z</dc:date>
    <item>
      <title>if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276601#M1178822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Sorry for the length of this post. I am trying to create a view to look at active response plan information for my fire department. I have an ODBC connection to our Computer Aided Dispatch (CAD) system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Each fire truck has a resource and/or a capability attached to it that CAD uses to pick the correct truck to send to a particular call type. There is a capability table and a resource table. My issue is that duplicate SQL IDs exist between the two tables and so I get data listed incorrectly in my view, for example&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -1.15pt;" width="557"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;AlarmLevel&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG04-Engine ESD04&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;MED00 - COA (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It should look like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -1.15pt;" width="557"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;AlarmLevel&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;MED00 - COA (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to construct and “if” statement where if(PrimaryCode=0, Resource, ‘’). I am not sure if I am placing it in the wrong place in the script or if the statement is just incorrectly built. Everything I have tried so far results in an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would then need to add a second statement where if(PrimaryCode=1, Capability, ‘’) or would look like this,&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -1.15pt;" width="557"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;AlarmLevel&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;LAD00-Ladder AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it was all perfect then my view would look like this when I had a mixed response plan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -1.15pt;" width="557"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;AlarmLevel&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;LAD01 (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG13 (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG01 (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;LAD00-Ladder AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG00-Engine AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG00-Engine AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG00-Engine AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;BC00-Command AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: gainsboro 1pt solid; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="71"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;9&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;DC00-Command, AFD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below I show how I am linking it all together. It may be that I am not doing it the best way but with my limited SQL knowledge I am doing what I can figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;ResponsePlanList:&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as ResponsePlanList_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PlanID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID as PrimaryID1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID as PrimaryID2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryOrder&lt;BR /&gt;FROM "Production_Lookups".dbo."RESPONSEPLANLIST"; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Resource:&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as ResourceCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as ResourceDescription,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TravelTimeWeight&lt;BR /&gt;FROM "Production_Lookups".dbo."RESOURCE"&lt;BR /&gt;WHERE AgencyTypeID=2; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Capabilities:&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as CapabilitiesCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as CapabilitiesDescription&lt;BR /&gt;FROM "Production_Lookups".dbo."CAPABILITIES"&lt;BR /&gt;WHERE AgencyTypeID=2; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;William&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 21:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276601#M1178822</guid>
      <dc:creator />
      <dc:date>2012-01-13T21:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276602#M1178823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I'd do to get one table of data with all required fields. Now you should have only one bigger table with all data joined by the fields according to your renaming. The "LOAD *" part is very useful and powerful in QlikView, and I strongly recommend you to use it. It's described in the Reference Manual, it's not required but it has a lot of advantages, as you can read in &lt;A _jive_internal="true" href="https://community.qlik.com/thread/13682"&gt;this thread&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/34444"&gt;this other thread&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;ResponsePlanList:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as ResponsePlanList_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PlanID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID as PrimaryID1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID as PrimaryID2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryOrder&lt;BR /&gt;FROM "Production_Lookups".dbo."RESPONSEPLANLIST";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resource:&lt;/P&gt;&lt;P&gt;LEFT JOIN (ResponsePlanList) LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as ResourceCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as ResourceDescription,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TravelTimeWeight&lt;BR /&gt;FROM "Production_Lookups".dbo."RESOURCE"&lt;BR /&gt;WHERE AgencyTypeID=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Capabilities:&lt;/P&gt;&lt;P&gt;LEFT JOIN (ResponsePlanList) LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as CapabilitiesCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as CapabilitiesDescription&lt;BR /&gt;FROM "Production_Lookups".dbo."CAPABILITIES"&lt;BR /&gt;WHERE AgencyTypeID=2;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that returns the results as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 21:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276602#M1178823</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-13T21:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276603#M1178824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried what you suggested and have been reading about the LOAD command, JOIN etc. It has been very helpful but didn't do what I needed. I have added the LOAD command to my script however based on your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our CAD system uses the PrimaryCode field to determine if a vehilce should be picked based on Capability or Resource. If the PrimaryCode is "0" then CAD is looking for Capability. If the PrimaryCode is "1" then the unit is picked by Resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the Resource and Capability tables each start at 1 and count up I have some Resources and some Capabilities that have common SQL ID. This causes my table to show both a Resource and a Capability when I only want one of them displayed based on the PrimaryCode number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="jiveNoBorder" style="width: 530px; border-collapse: collapse; margin-left: -1.15pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; width: 82px; padding-right: 5.4pt; border-top: 1pt solid; border-right: 1pt solid;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;PrimaryOrder&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ResourceDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;CapabilitiesDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: whitesmoke; padding-left: 5.4pt; padding-right: 5.4pt; border-top: gainsboro 1pt solid; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;PrimaryCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="83"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;ENG04-Engine ESD04&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="163"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;MED00 - COA (C)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-bottom: gainsboro 1pt solid; border-left: medium none; background-color: white; padding-left: 5.4pt; padding-right: 5.4pt; border-top: medium none; border-right: gainsboro 1pt solid;" valign="bottom" width="79"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #333333; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENG04 and MED00 have the same SQL id however only the MED00 should display since the PrimaryCode is "0". So what I have been trying to do is make the ResourceDescription field return a null value if the PrimaryCode is "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help with the firefighter terminology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resource = Ladder Truck, Pumper Truck (Engine), Rescue Unit (the type of toolbox)&lt;/P&gt;&lt;P&gt;Capability = pump, defibrillator, hose, gas monitor, rescue tools (the type of tools)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 23:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276603#M1178824</guid>
      <dc:creator />
      <dc:date>2012-01-13T23:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276604#M1178825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification William, it does help understanding the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set in the charts a very powerful feature of QlikView, that is Set Analysis, that, basically, allows you to display in a chart a limited set of records based on values for fields. I don't know if the following example will fit your needs, but using your script as it is (JOINed tables), you can create a new chart object, type straight table, with Primary Order as the dimension, and an expression to display CapabilitiesDescription similar to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Only({&amp;lt; PrimaryCode = {0} &amp;gt;} CapabilitesDescription)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And using the same approach to the ResourceDescription&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Only({&amp;lt; PrimaryCode = {1} &amp;gt;} ResourceDescription)&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe a more complex SQL statement that does the JOIN with conditions might do, but without better knowledge of your actual data, it's hard to say. But here goes my attempt. You will see no JOINs this time, but the idea is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load the table ResponsePlanList that have the PrimaryID in common with Capabilities and Resources.&lt;/LI&gt;&lt;LI&gt;Since you only want to load those Resources where the corresponding value in PrimaryCode is 1, that is in a different table, we create that mapping table that will return, by means of the ApplyMap() function in the second table the value of PrimaryCode corresponding to that PrimaryID.&lt;/LI&gt;&lt;LI&gt;And likewise with the Capabilities, that will only loaded if the ResponsePlanList has a PrimaryCode equal to 0 for the Capability PrimaryID&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="p1"&gt;ResponsePlanList:&lt;BR /&gt;LOAD *;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as ResponsePlanList_ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PlanID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryOrder&lt;BR /&gt;FROM "Production_Lookups".dbo."RESPONSEPLANLIST";&lt;BR /&gt;&lt;BR /&gt;ResourceIDPrimaryCodeMap:&lt;BR /&gt;MAPPING LOAD PrimaryID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryCode&lt;BR /&gt;RESIDENT ResponsePlanList;&lt;BR /&gt;&lt;BR /&gt;Resource:&lt;BR /&gt;LOAD *&lt;BR /&gt;WHERE ApplyMap('ResourceIDPrimaryCodeMap', PrimaryID) = 1;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as ResourceCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as ResourceDescription,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TravelTimeWeight&lt;BR /&gt;FROM "Production_Lookups".dbo."RESOURCE"&lt;BR /&gt;WHERE AgencyTypeID=2;&lt;BR /&gt;&lt;BR /&gt;Capabilities:&lt;BR /&gt;LOAD *&lt;BR /&gt;WHERE ApplyMap('ResourceIDPrimaryCodeMap', PrimaryID) = 0;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as PrimaryID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code as CapabilitiesCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description as CapabilitiesDescription&lt;BR /&gt;FROM "Production_Lookups".dbo."CAPABILITIES"&lt;BR /&gt;WHERE AgencyTypeID=2; &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or using plain SQL to get all in one table (I'm guessing and I hope not have messed the PrimaryCode for Resources and Capabilites) and probably simpler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;ResponsePlanList:&lt;/P&gt;&lt;P&gt;LOAD ResponsePlanList_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PlanID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrimaryOrder,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResourceCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResourceDescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TravelTimeWeight,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CapabilitesCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CapabilitiesDescription;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RPL.ID AS ResponsePlanList_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RPL.PlanID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RPL.PrimaryCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RPL.PrimaryID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RPL.PrimaryOrder,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Res.Code AS ResourceCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Res.Description AS ResourceDescription&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Res.&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;TravelTimeWeight,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cap.Code AS CapabilitiesCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cap.Description AS CapabilitiesDescription&lt;/P&gt;&lt;P&gt;FROM "Production_Lookups".dbo."RESPONSEPLANLIST" AS RPL&lt;/P&gt;&lt;P&gt;LEFT JOIN &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;"Production_Lookups".dbo."RESOURCE" AS Res ON (RPL.ID = Res.ID AND RPL.PrimaryCode = 1 AND Res.AgencyTypeID = 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;LEFT JOIN &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;"Production_Lookups".dbo."CAPABILITIES" AS Cap ON (RPL.ID = Cap.ID AND RPL.PrimaryCode = 0&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt; AND Cap.AgencyTypeID = 2&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a lot of information for the first time and probably not the best way to get what you are looking for, but I hope that makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, my time to a lenghty post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 00:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-Statement/m-p/276604#M1178825</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-14T00:40:55Z</dc:date>
    </item>
  </channel>
</rss>

