<?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: Adding AND Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751827#M1045996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=((Count(if(duedate&amp;lt;= Today(),duedate)))) - (Count({&amp;lt;[Status (gen)]={'done'}&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[Category] = {' Supply Chain'}&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}[Status (gen)]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 14:26:25 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-12-01T14:26:25Z</dc:date>
    <item>
      <title>Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751825#M1045994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope someone can help me with my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all i wanted to count all my tasks which are longer in process then the desired duedate. &lt;/P&gt;&lt;P&gt;I created this code and it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=((Count(if(duedate&amp;lt;= Today(),duedate)))) - (Count({&amp;lt;[Status (gen)]={'done'}&amp;gt;}[Status (gen)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it counts all tasks with an duedate shorter then the actual date, excluding all tasks that are already done. &lt;/P&gt;&lt;P&gt;[Status (gen)] can be "done" or "in progress"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to add an AND Function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt; AND [Category] = {' Supply Chain'} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to add my AND but the code did not work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751825#M1045994</guid>
      <dc:creator />
      <dc:date>2014-12-01T14:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751826#M1045995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use :&lt;/P&gt;&lt;P&gt;+ : union of sets&lt;/P&gt;&lt;P&gt;*&amp;nbsp; : intersection of sets &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on you requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751826#M1045995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T14:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751827#M1045996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=((Count(if(duedate&amp;lt;= Today(),duedate)))) - (Count({&amp;lt;[Status (gen)]={'done'}&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;*&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[Category] = {' Supply Chain'}&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}[Status (gen)]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751827#M1045996</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-01T14:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751828#M1045997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add conditions in AND in your set analysis expression by adding them comma-separated inside the &amp;lt; &amp;gt; brackets like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=((Count(if(duedate&amp;lt;= Today(),duedate)))) - (Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;STRONG&gt;[Category] = {' Supply Chain'} ,&lt;/STRONG&gt; &lt;/SPAN&gt;[Status (gen)]={'done'}&amp;gt;}[Status (gen)]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Giacomo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751828#M1045997</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-01T14:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751829#M1045998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i can use the &lt;STRONG style="text-decoration: underline;"&gt;*&lt;/STRONG&gt; or I add a &lt;STRONG&gt;,&lt;/STRONG&gt; inside the &amp;gt;&amp;lt; brackets, got that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how i can use the AND function on the first Count so it can be part of the condition? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Count(if(duedate&amp;lt;= Today(),duedate)))) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751829#M1045998</guid>
      <dc:creator />
      <dc:date>2014-12-01T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751830#M1045999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't do this in set analysis. Do it in your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count/Sum/Avg ( if()) is a performance killer and is something you should NEVER do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In stead create a flag in your scipt like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load .&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;duedate&amp;lt;= Today() and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Category] = 'Supply Chain', 1, 0) as OverdueFlag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;Table Tasks.qvd (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you use set analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OverdueFlag&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={1}&lt;/SPAN&gt;&amp;gt;}Task)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751830#M1045999</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-12-01T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751831#M1046000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it but there is an error at the comma after 'Supply Chain' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;duedate&amp;lt;= Today() and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Category] = 'Supply Chain'&lt;STRONG style="text-decoration: underline;"&gt;,&lt;/STRONG&gt; 1, 0) as OverdueFlag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;`Category`;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;duedate&amp;lt;= Today() and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Category] = 'Supply Chain', 1, 0) as OverdueFlag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM database.task;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751831#M1046000</guid>
      <dc:creator />
      <dc:date>2014-12-01T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751832#M1046001</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;you can add the condition in the first Count using the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({$ &amp;lt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Category] = {' Supply Chain'} , duedate&lt;/STRONG&gt;&lt;STRONG&gt;={"&amp;lt;=$(#vToday)"}&lt;/STRONG&gt;&amp;gt;} duedate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vToday is the variable you created before in your script.&lt;/P&gt;&lt;P&gt;In this case you can remove the if inside a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count/Sum/Avg calculation as &lt;A href="https://community.qlik.com/qlik-users/137372"&gt;Simen Kind Gulbrandsen&lt;/A&gt; suggests.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751832#M1046001</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-01T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751833#M1046002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;duedate&amp;lt;= Today() and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Category] = 'Supply Chain', 1, 0) as OverdueFlag;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM database.task;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751833#M1046002</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-12-01T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751834#M1046003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, it worked perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;The only thing I wonder now is, can I use this out of my LOAD code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load .&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;duedate&amp;lt;= Today() and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Category] = 'Supply Chain', 1, 0) as OverdueFlag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table Tasks.qvd (qvd) ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So lets say I have another LOAD code where I add something.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I cant use the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i&lt;STRONG&gt;f(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;duedate&amp;lt;= Today() and &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;[Category] = 'Supply Chain', 1, 0) as OverdueFlag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;because I cant use an attribute which is not in my active LOAD code.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Just to know, what if my &lt;STRONG&gt;duedate&lt;/STRONG&gt; comes from another LOAD code then my &lt;STRONG&gt;Category&lt;/STRONG&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 07:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751834#M1046003</guid>
      <dc:creator />
      <dc:date>2014-12-02T07:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751835#M1046004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can join the Category into the fact table and then do the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tasks_t1:&lt;BR /&gt;Load * from Tasks.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Categories:&lt;BR /&gt;Load * from Categories.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Tasks_t1)&lt;/P&gt;&lt;P&gt;Load %Task_Key, Category as TestCategory resident Categories;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Tasks:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;i&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;f(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;duedate&amp;lt;= Today() and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;[Status (gen)] &amp;lt;&amp;gt; 'done' and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;[&lt;STRONG style="color: #3d3d3d; font-size: 12px;"&gt;TestCategory&lt;/STRONG&gt;] = 'Supply Chain', 1, 0) as OverdueFlag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-style: inherit; background-color: #f6f6f6; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;resident Tasks_t1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-style: inherit; background-color: #f6f6f6; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-style: inherit; background-color: #f6f6f6; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Drop table Tasks_t1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-style: inherit; background-color: #f6f6f6; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Drop field TestCategory;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 08:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751835#M1046004</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-12-02T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding AND Function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751836#M1046005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 09:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-AND-Function/m-p/751836#M1046005</guid>
      <dc:creator />
      <dc:date>2014-12-02T09:39:08Z</dc:date>
    </item>
  </channel>
</rss>

