<?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: How to LOAD attribute boolean values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902660#M313950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Allesandro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the expression produced a &lt;STRONG&gt;zero&amp;nbsp; &lt;/STRONG&gt;("0") value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 09:07:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-03T09:07:19Z</dc:date>
    <item>
      <title>How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902658#M313948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a table in QlikView, using attributes from an SQL database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table in the database is composed of "Boolean" values, which are shown as either "0" or "1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load, for example, only those data which have a value of TRUE&amp;nbsp; (meaning :&amp;nbsp; "1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my load script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customers :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; personHasEmail,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;personHasEmail&lt;/SPAN&gt; = '1') as Email_YES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Meaning :&amp;nbsp; ALL data, where the person has an email, will be taken from the database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, in QlikView, I have the following expressions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count (CustomerID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Email_YES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Each customer has a unique ID.&amp;nbsp; So, "&lt;STRONG&gt;Count CustomerID&lt;/STRONG&gt;" will produce the total number of people in the database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, "&lt;STRONG&gt;Count(Email_YES")&lt;/STRONG&gt; should display ONLY those people who have email addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this is not working;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both expressions are displaying the TOTAL number of customers;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the Count(Email_YES) expression is not working. Instead of counting only those people with emails, it's counting everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 08:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902658#M313948</guid>
      <dc:creator />
      <dc:date>2015-06-03T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902659#M313949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customers :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; personHasEmail,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(&lt;SPAN style="font-size: 13.33px;"&gt;personHasEmail&lt;/SPAN&gt; = '1', 1, 0) as Email_YES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then use&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;Email_YES={'1'}&amp;gt;} &lt;STRONG&gt;CustomerID&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let me know&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902659#M313949</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-03T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902660#M313950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Allesandro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the expression produced a &lt;STRONG&gt;zero&amp;nbsp; &lt;/STRONG&gt;("0") value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902660#M313950</guid>
      <dc:creator />
      <dc:date>2015-06-03T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902661#M313951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stepen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Customer, EmailFlag&lt;BR /&gt; A,1&lt;BR /&gt; B,1&lt;BR /&gt; C,1&lt;BR /&gt; D,0&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression in chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EmailFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 1, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902661#M313951</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-03T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902662#M313952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your doc (or a similar example) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902662#M313952</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-03T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902663#M313953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume, from your example, I should replace Customer with &lt;STRONG&gt;CustomerID&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, EmailFlag..........with "&lt;STRONG&gt;PersonHasEmail&lt;/STRONG&gt;"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did that.&amp;nbsp; And, I'm getting the same result :&amp;nbsp; zero (0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902663#M313953</guid>
      <dc:creator />
      <dc:date>2015-06-03T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902664#M313954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, which doc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean the results I am getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902664#M313954</guid>
      <dc:creator />
      <dc:date>2015-06-03T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902665#M313955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The qlikview file (.qvw)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902665#M313955</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-03T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902666#M313956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the example was just to show the principle, upload your QVW please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902666#M313956</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-03T09:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902667#M313957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should just load everything as it is, and in your expression in UI, you can count where Email_Yes= 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; personHasEmail,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.33px;"&gt;personHasEmail&lt;/SPAN&gt;&amp;nbsp; as Email_YES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your expression to count Email_Yes&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Email_Yes = {1}&amp;gt;}&amp;nbsp;&amp;nbsp; Email_Yes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is work and you can Count your customer ID as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902667#M313957</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-06-03T09:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to LOAD attribute boolean values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902668#M313958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gabriel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I realized my mistake : I should have left my original script the way it was..............just as Gabriel mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, instead of trying to create a multi-table (which is what I was doing),&amp;nbsp; I should have simply created two separate tables :&amp;nbsp; one for Customers, and one for Emails.............and then &lt;STRONG&gt;cross-reference both counts into a THIRD table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved my problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your helpful responses &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-LOAD-attribute-boolean-values/m-p/902668#M313958</guid>
      <dc:creator />
      <dc:date>2015-06-03T10:01:42Z</dc:date>
    </item>
  </channel>
</rss>

