<?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 General IF Query. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179364#M501052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can try that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; NPD_ID = {'ISNULL()'}, TIME_PERIOD_YEAR ={" = $(VCurYear)"}, TIME_PERIOD_PERIOD ={'2'}, NAL2_ID = {'6161'}, NAL3_ID = {'9307'}, FORECAST_TYPE = {'CURRENT'} &amp;gt;} FCT_GROSS_REVENUE)&lt;/P&gt;&lt;P&gt;The diference us un TIME_PERIOD_YEAR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2011 13:12:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-24T13:12:03Z</dc:date>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179363#M501051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Please check this expression and let me know if something is wrong as I dont see the result for this.&lt;/P&gt;&lt;P&gt;sum({&amp;lt; NPD_ID = {'ISNULL()'}, TIME_PERIOD_YEAR ={$(#VCurYear)}, TIME_PERIOD_PERIOD ={'2'}, NAL2_ID = {'6161'}, NAL3_ID = {'9307'}, FORECAST_TYPE = {'CURRENT'} &amp;gt;} FCT_GROSS_REVENUE)&lt;/P&gt;&lt;P&gt;This returns 0 and I was wondering what should I write to make NPD_ID not equal to Null?&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179363#M501051</guid>
      <dc:creator />
      <dc:date>2011-03-24T13:04:49Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179364#M501052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can try that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; NPD_ID = {'ISNULL()'}, TIME_PERIOD_YEAR ={" = $(VCurYear)"}, TIME_PERIOD_PERIOD ={'2'}, NAL2_ID = {'6161'}, NAL3_ID = {'9307'}, FORECAST_TYPE = {'CURRENT'} &amp;gt;} FCT_GROSS_REVENUE)&lt;/P&gt;&lt;P&gt;The diference us un TIME_PERIOD_YEAR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179364#M501052</guid>
      <dc:creator />
      <dc:date>2011-03-24T13:12:03Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179365#M501053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gregori,&lt;/P&gt;&lt;P&gt;The issue is somewhere with the NPD_ID as everything else works fine and it stopped after I added the NPD_ID. Just checkin how to write in Set Analysis to say IF NPD_ID is not equal to NULL then sum??&lt;/P&gt;&lt;P&gt;Thanks for the quick response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179365#M501053</guid>
      <dc:creator />
      <dc:date>2011-03-24T13:15:00Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179366#M501054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can try&lt;/P&gt;&lt;P&gt;ISNULL(NPD_ID) = 0&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179366#M501054</guid>
      <dc:creator />
      <dc:date>2011-03-24T13:17:28Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179367#M501055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andy,&lt;/P&gt;&lt;P&gt;A function in set analysis needs to be within $(function). If the result is not numeric (a string, several values, blanks, commas) then you need to quote it. What I'd try is the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt; NPD_ID = {"=Len(NPD_ID) = 0"}, TIME_PERIOD_YEAR ={$(#VCurYear)}, TIME_PERIOD_PERIOD ={'2'}, NAL2_ID = {'6161'}, NAL3_ID = {'9307'}, FORECAST_TYPE = {'CURRENT'} &amp;gt;} FCT_GROSS_REVENUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;or depending on how the driver is dealing with null values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt; TIME_PERIOD_YEAR ={$(#VCurYear)}, TIME_PERIOD_PERIOD ={'2'}, NAL2_ID = {'6161'}, NAL3_ID = {'9307'}, FORECAST_TYPE = {'CURRENT'} &amp;gt; - &amp;lt; NPD_ID -= P(NPD_ID) &amp;gt;} FCT_GROSS_REVENUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Using the element function P().&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179367#M501055</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-24T13:30:00Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179368#M501056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering why QV would ignore null values in a table field from DB? I checked the DB and I can see that I have some Null values which is called NPD_ID , so that I need to write an expression sum(sales) where NPD_ID = NULL(). But when I checked the NPD_ID field in my table it doesnt show the Null values at all...can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 14:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179368#M501056</guid>
      <dc:creator />
      <dc:date>2011-03-24T14:30:10Z</dc:date>
    </item>
    <item>
      <title>General IF Query.</title>
      <link>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179369#M501057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;A null value is a value that doesn't exist. A listbox (or tablebox or anything) will show possible values in white, excluded values in grey, and selected values in green. That's ok, that's what all already know.&lt;/P&gt;&lt;P&gt;But a null value is not a value, so it cannot appear, because is not a "possible" value.&lt;/P&gt;&lt;P&gt;There are some variables you can set at the beginning of the script so all null values are interpreted as blanks, or spaces, or whatever:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NULLASVALUE *; // Will deal all null values in fields as "something" rather than non-existingSET NullValue = 'NULL'; // Will interpret all Null values as the string NULL Table:LOAD null() AS NullField, // Comment the NULLASVALUE line, you will not see any value here Ceil(Rand() * 6) AS ValueField, Chr(64 + Ceil(Rand() * 3)) AS NameFieldAUTOGENERATE 10;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now you do can select null values.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 15:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-IF-Query/m-p/179369#M501057</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-24T15:00:01Z</dc:date>
    </item>
  </channel>
</rss>

