<?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: Using a Null Field in an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916228#M651565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We actually ended up creating a Flag (0 or 1) to show whether or not it has a piece of data or not - and then used set analysis to show only the fields that did or did not have information. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 19:49:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-17T19:49:20Z</dc:date>
    <item>
      <title>Using a Null Field in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916224#M651561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI everyone, I'm hoping you can help, I have data that look likes below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align:center;background-color:#6690BC;color:#ffffff;padding:2px;" valign="middle"&gt;&lt;STRONG&gt;OrderID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align:center;background-color:#6690BC;color:#ffffff;padding:2px;" valign="middle"&gt;&lt;STRONG&gt;OrderDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align:center;background-color:#6690BC;color:#ffffff;padding:2px;" valign="middle"&gt;&lt;STRONG&gt;ShipDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1/1/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3/5/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1/30/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2/5/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3/10/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6/5/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6/10/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6/7/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;7/5/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;7/1/2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do, is looking at a specific month, I want to see all orders ordered before that month, that&lt;SPAN style="text-decoration: underline;"&gt; could have shipped the current month but didn't. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Example: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When looking at February - I have one order that was ordered before that month, but didn't ship the month it was ordered (which is a separate table in my App) and it wasn't shipped in February. Because it is a null field, if I select a ShipMonth of February it would go away, and if I select an OrderMonth of February, it would go away. However I DON'T want the order in July to appear in this selection, because it didn't have the potential to ship in February. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I selected August. both the order in February and the Order in July should show up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get this to work? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have: &lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #575757;"&gt;I&lt;SPAN style="color: #0000ff;"&gt;sNull&lt;/SPAN&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ShipDate&lt;/SPAN&gt;) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;Month&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;)&amp;lt;&lt;SPAN style="color: #0000ff;"&gt;GetCurrentSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ShipMonth&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, &lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I eliminate the third part of the IF Statement, and keep it to just:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #0000ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I&lt;SPAN style="color: #0000ff;"&gt;sNull&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #800000;"&gt;ShipDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #800000;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get every order that hasn't shipped, but I really need to make the Month selection and look at everything that was ordered prior to the month I select. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916224#M651561</guid>
      <dc:creator />
      <dc:date>2015-08-07T20:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Null Field in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916225#M651562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nulls are a pain to work with so the right thing to do is to replace them with values that can be selected. Once you've done that it becomes a lot easier to show the orders that didn't ship in the selected month or before. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 17:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916225#M651562</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-08T17:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Null Field in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916226#M651563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you select february, shouldn't also IDs 1 and 3 be shown together with 2, because all 3 orders where ordered february or before, but not delivered until end of february.&lt;/P&gt;&lt;P&gt;I would assume, that a NULL in ship date would need to be regarded same as a ship date later than february when focusing on the question 'shipped until selection'. Maybe I am wrong, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are in fact interested in something like this, attached an approach for that kind of analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 18:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916226#M651563</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-08T18:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Null Field in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916227#M651564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/altoole105"&gt;altoole105&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please select Correct Answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2015 04:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916227#M651564</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-09T04:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Null Field in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916228#M651565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We actually ended up creating a Flag (0 or 1) to show whether or not it has a piece of data or not - and then used set analysis to show only the fields that did or did not have information. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Null-Field-in-an-Expression/m-p/916228#M651565</guid>
      <dc:creator />
      <dc:date>2015-11-17T19:49:20Z</dc:date>
    </item>
  </channel>
</rss>

