<?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: Multiple if in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352592#M130835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NullAsValue did the job, thanks alot! - Funny though, that the table view said that value was null. Apparently QV in some cases has some challenges with nulls - or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks DK_ASN too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 18:52:02 GMT</pubDate>
    <dc:creator>clausbarlose</dc:creator>
    <dc:date>2012-03-14T18:52:02Z</dc:date>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352583#M130826</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 having difficulties with creating a listbox to select tickets from our management system.We look at our tickets in a monthly perspective and like to follow tickets created in a specific month or tickets closed in the same month. Users inputs StartDate and EndDate. A ticket always has a creation date but not always a closed date (ie. field is null() ).I have made a listbox with the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if ( not isnull (TicketClosed),&lt;/P&gt;&lt;P&gt;if (&amp;nbsp; (TicketCreated &amp;gt;= StartDate and TicketCreated &amp;lt;= EndDate) or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (TicketClosed &amp;gt;= StartDate and TicketClosed &amp;lt;= EndDate), 'Yes', 'No'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (TicketCreated &amp;gt;= StartDate and TicketCreated &amp;lt;= EndDate, 'Yes', 'No'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿Listbox title is obvoiusly "Tickets created or closed in period".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Listbox shows the proper Yes and No, but &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;I end up with all tickets but the ones that have no TicketClosed date, ie. TicketClosed is null().&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Anyone with an opinion on this or event better a sugestion for doing it otherwise?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Btw - we are on QV 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;All the best!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;Claus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352583#M130826</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352584#M130827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You mean you didn't get the results for Ticked closed date is null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352584#M130827</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-14T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352585#M130828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When clicking Yes in the listbox I get the tickets where CreationDate or ClosedDate are in the correct interval, but are missing tickets that have a null() value in ClosedDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tickets can be created a lot earlier in which case we like to track them by the ClosedDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection acts like a filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352585#M130828</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352586#M130829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check whether it has null value or Empty value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 13:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352586#M130829</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-14T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352587#M130830</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 took a couple of samples and QV says field is null(). I put this in the table view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if ( isnull(TicketClosed), 'Null()', 'Not Null()')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- and QV says 'Null().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352587#M130830</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T14:08:03Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352588#M130831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Before loading the table use NullAsValue like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NullAsValue TicketClosed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In list box use expression as&lt;/P&gt;&lt;P&gt;=if ( TicketClosed&amp;lt;&amp;gt;'',&lt;/P&gt;&lt;P&gt;if (&amp;nbsp; (TicketCreated &amp;gt;= StartDate and TicketCreated &amp;lt;= EndDate) or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (TicketClosed &amp;gt;= StartDate and TicketClosed &amp;lt;= EndDate), 'Yes', 'No'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (TicketCreated &amp;gt;= StartDate and TicketCreated &amp;lt;= EndDate, 'Yes', 'No'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352588#M130831</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-14T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352589#M130832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the enclosed kindly provided by John Witherspoon could be usefull to you (you shall put it in the load). It basically lets you choose only one date regardsless of whether the ticket has started or ended there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352589#M130832</guid>
      <dc:creator />
      <dc:date>2012-03-14T14:38:35Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352590#M130833</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'll try this and post a reply. Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352590#M130833</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T14:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352591#M130834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi - thanks for the post. Unfortunately this can't be done in the script, as user inputs start and end date in the GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352591#M130834</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352592#M130835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NullAsValue did the job, thanks alot! - Funny though, that the table view said that value was null. Apparently QV in some cases has some challenges with nulls - or am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks DK_ASN too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 18:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352592#M130835</guid>
      <dc:creator>clausbarlose</dc:creator>
      <dc:date>2012-03-14T18:52:02Z</dc:date>
    </item>
    <item>
      <title>Multiple if in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352593#M130836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes.QV won't include null values to the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 04:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-in-expression/m-p/352593#M130836</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T04:47:05Z</dc:date>
    </item>
  </channel>
</rss>

