<?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 Multiple if scenarios assign to same variable name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-if-scenarios-assign-to-same-variable-name/m-p/670871#M1071468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if &lt;STRONG style="color: #ff0000;"&gt;&lt;STRONG style="color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000;"&gt;[Template Name]&lt;/SPAN&gt;='ZZ24','ZZ24 Trial', &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Loss Mit Template Name]&lt;/SPAN&gt;='ACO','ACO Trial')) as [trial type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;The above code populates the name trial type with either ZZ24 Trial or ACO Trial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;How would I handle the same scenario if multiple templates share the same result?&amp;nbsp; Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if ([Template Name] 'XXX13','CC23','GH22' then assign the name 'Central') as [trial type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;In other words these 3 will be assigned the name Central and we end as trial type&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 15:28:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-28T15:28:00Z</dc:date>
    <item>
      <title>Multiple if scenarios assign to same variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-scenarios-assign-to-same-variable-name/m-p/670871#M1071468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if &lt;STRONG style="color: #ff0000;"&gt;&lt;STRONG style="color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000;"&gt;[Template Name]&lt;/SPAN&gt;='ZZ24','ZZ24 Trial', &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Loss Mit Template Name]&lt;/SPAN&gt;='ACO','ACO Trial')) as [trial type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;The above code populates the name trial type with either ZZ24 Trial or ACO Trial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;How would I handle the same scenario if multiple templates share the same result?&amp;nbsp; Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if ([Template Name] 'XXX13','CC23','GH22' then assign the name 'Central') as [trial type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;In other words these 3 will be assigned the name Central and we end as trial type&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-scenarios-assign-to-same-variable-name/m-p/670871#M1071468</guid>
      <dc:creator />
      <dc:date>2014-08-28T15:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if scenarios assign to same variable name</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-scenarios-assign-to-same-variable-name/m-p/670872#M1071469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another if but with or between conditions :&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Template Name]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;='XXX13' or &lt;SPAN style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Template Name]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;='CC23' .... etc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-scenarios-assign-to-same-variable-name/m-p/670872#M1071469</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-08-28T15:30:19Z</dc:date>
    </item>
  </channel>
</rss>

