<?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: Creating a binary flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367457#M418343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or without nested IF() calls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(-1, FieldToCheck&amp;lt;1000, &lt;SPAN style="font-size: 13.3333px;"&gt;FieldToCheck&amp;lt;2000, &lt;SPAN style="font-size: 13.3333px;"&gt;FieldToCheck&amp;gt;=2000)&lt;/SPAN&gt;&lt;/SPAN&gt; AS Flag,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranges can be made variable by defining two border variables and $-sign substituting them in the Match() call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 10:35:46 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-05-18T10:35:46Z</dc:date>
    <item>
      <title>Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367453#M418339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Have a requirement,need to create a field in the script wth 3 defined range so that if it's 1st range it Shud give 1 else 2 or 3 ,how to do that.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367453#M418339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T10:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367454#M418340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create an expression like&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF(MyCheckField &amp;lt; 100, 1, IF(MyCheckField &amp;lt; 1000, 2, 3))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Range&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edith would like to add that a field with content 1, 2, 3 is &lt;STRONG&gt;not&lt;/STRONG&gt; a binary field ... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367454#M418340</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-05-18T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367455#M418341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367455#M418341</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-05-18T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367456#M418342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok and also i would like to create this field as it doesnt exist in my script.&lt;/P&gt;&lt;P&gt;how to and where to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367456#M418342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T10:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367457#M418343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or without nested IF() calls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(-1, FieldToCheck&amp;lt;1000, &lt;SPAN style="font-size: 13.3333px;"&gt;FieldToCheck&amp;lt;2000, &lt;SPAN style="font-size: 13.3333px;"&gt;FieldToCheck&amp;gt;=2000)&lt;/SPAN&gt;&lt;/SPAN&gt; AS Flag,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranges can be made variable by defining two border variables and $-sign substituting them in the Match() call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367457#M418343</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-18T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a binary flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367458#M418344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Peter's example, the field &lt;EM&gt;is&lt;/EM&gt; created in the script as &lt;EM&gt;Range&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;You can't create fields outside of your load script.&lt;/P&gt;&lt;P&gt;You can however create a value column on the fly in an UI object by using the same expression without the &lt;EM&gt;AS Range&lt;/EM&gt; part in a Calculated dimension or a simple expression column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-binary-flag/m-p/1367458#M418344</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-18T10:39:21Z</dc:date>
    </item>
  </channel>
</rss>

