<?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: Create new variable in load script with OR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-Create-new-variable-in-load-script-with-OR/m-p/313341#M115673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunil!&lt;/P&gt;&lt;P&gt;But I do not understand your syntax. &lt;/P&gt;&lt;P&gt;Did you mean like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Time,&lt;/P&gt;&lt;P&gt;Client_ID&lt;STRONG style="color: #ff0000;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;if(sum(Happy_client)&amp;gt;0,1)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;as Good_time,&lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from path &lt;/P&gt;&lt;P&gt;group by&amp;nbsp; Time ,Client_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds good, but I would like to use no "if", because this makes everything very slow. So I use an "&lt;STRONG&gt;OR&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;1-product(1-Happy_client) &lt;/P&gt;&lt;P&gt;But how is the function for Products called?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 13:19:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-23T13:19:34Z</dc:date>
    <item>
      <title>Re: Create new variable in load script with OR</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Create-new-variable-in-load-script-with-OR/m-p/313341#M115673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunil!&lt;/P&gt;&lt;P&gt;But I do not understand your syntax. &lt;/P&gt;&lt;P&gt;Did you mean like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Time,&lt;/P&gt;&lt;P&gt;Client_ID&lt;STRONG style="color: #ff0000;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;if(sum(Happy_client)&amp;gt;0,1)&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;as Good_time,&lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Good time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from path &lt;/P&gt;&lt;P&gt;group by&amp;nbsp; Time ,Client_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds good, but I would like to use no "if", because this makes everything very slow. So I use an "&lt;STRONG&gt;OR&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;1-product(1-Happy_client) &lt;/P&gt;&lt;P&gt;But how is the function for Products called?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Create-new-variable-in-load-script-with-OR/m-p/313341#M115673</guid>
      <dc:creator />
      <dc:date>2012-02-23T13:19:34Z</dc:date>
    </item>
  </channel>
</rss>

