<?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 Check two field values for same entry in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230873#M82665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one option; probably not the cleanest:&lt;/P&gt;&lt;P&gt;if([Primary Medical Code] = [Secondary Medical Code], [Primary Medical Code],&lt;BR /&gt; if([Primary Medical Code='',[Secondary Medical Code],&lt;BR /&gt; if([Secondary Medical Code]='',[Primary Medical Code],&lt;BR /&gt; [Primary Medical Code] &amp;amp; ',' &amp;amp; [Secondary Medical Code] )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 16:41:39 GMT</pubDate>
    <dc:creator>isaiah82</dc:creator>
    <dc:date>2011-02-25T16:41:39Z</dc:date>
    <item>
      <title>Check two field values for same entry</title>
      <link>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230871#M82663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have an SQL table which is loaded into a QVD file. Within the SQL table are two columns, Primary Medical Complaint and Secondary Medical Complaint. This data is based on an input from a handwritten form and often the two fields can contain the same data e.g. Primary code is 01, secondary code is 01. This means that when I map the code to a description I get the same description twice e.g. asthma asthma. What I would like to do is use some script that would analyst both fields, and if they are the same use the first one. If they are different then use both.&lt;/P&gt;&lt;P&gt;Its a bit complicated becuase the primary code can sometimes be blank as well. This might explaing things further with the chief complaint being what I would like the output to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 293pt; border-collapse: collapse;" width="391"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 103pt; mso-width-source: userset; mso-width-alt: 5010;" width="137" /&gt;&lt;COL style="width: 116pt; mso-width-source: userset; mso-width-alt: 5668;" width="155" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;" width="99" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; width: 103pt; height: 12.75pt; border: #ece9d8;" width="137"&gt;Primary Medical Code&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 116pt; border: #ece9d8;" width="155"&gt;Secondary Medical Code&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 74pt; border: #ece9d8;" width="99"&gt;Chief Complaint&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color: transparent; height: 12.75pt; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color: transparent; height: 12.75pt; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1,2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color: transparent; height: 12.75pt; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color: transparent; height: 12.75pt; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What is the scripting that I need to do this? I am struggling to do this with an If statement, is there something else I can use instead?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 15:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230871#M82663</guid>
      <dc:creator />
      <dc:date>2011-02-25T15:42:19Z</dc:date>
    </item>
    <item>
      <title>AW:Check two field values for same entry</title>
      <link>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230872#M82664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;take a glance into the script of my little exam app.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 16:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230872#M82664</guid>
      <dc:creator />
      <dc:date>2011-02-25T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Check two field values for same entry</title>
      <link>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230873#M82665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one option; probably not the cleanest:&lt;/P&gt;&lt;P&gt;if([Primary Medical Code] = [Secondary Medical Code], [Primary Medical Code],&lt;BR /&gt; if([Primary Medical Code='',[Secondary Medical Code],&lt;BR /&gt; if([Secondary Medical Code]='',[Primary Medical Code],&lt;BR /&gt; [Primary Medical Code] &amp;amp; ',' &amp;amp; [Secondary Medical Code] )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 16:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-two-field-values-for-same-entry/m-p/230873#M82665</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-02-25T16:41:39Z</dc:date>
    </item>
  </channel>
</rss>

