<?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: If statement NULL in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-statement-NULL/m-p/1861453#M71090</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Maybe below statement will help.&lt;/P&gt;
&lt;P&gt;Expression :&amp;nbsp;=If(Num(InvoiceDate) &amp;gt;=$(vMaxDate),Date(InvoiceDate),Null())&lt;/P&gt;
&lt;P&gt;Variable for Max Date :&amp;nbsp;=Max(InvoiceDate)-28 (Max Date in my data in 31-Dec-21).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_0-1637326885174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67035i78DBB97522B2CCF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AshutoshBhumkar_0-1637326885174.png" alt="AshutoshBhumkar_0-1637326885174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 13:03:26 GMT</pubDate>
    <dc:creator>AshutoshBhumkar</dc:creator>
    <dc:date>2021-11-19T13:03:26Z</dc:date>
    <item>
      <title>If statement NULL</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-NULL/m-p/1861437#M71089</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i Only include the last 28 days using the If statement. Date is a dimension,If Date is not within the last 28 days its null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=If (DateId = {"&amp;gt;=$(=Max(DateId)-28)"} ,Date,null())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jamie&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 12:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-NULL/m-p/1861437#M71089</guid>
      <dc:creator>jamiemcc</dc:creator>
      <dc:date>2021-11-19T12:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: If statement NULL</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-NULL/m-p/1861453#M71090</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Maybe below statement will help.&lt;/P&gt;
&lt;P&gt;Expression :&amp;nbsp;=If(Num(InvoiceDate) &amp;gt;=$(vMaxDate),Date(InvoiceDate),Null())&lt;/P&gt;
&lt;P&gt;Variable for Max Date :&amp;nbsp;=Max(InvoiceDate)-28 (Max Date in my data in 31-Dec-21).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_0-1637326885174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67035i78DBB97522B2CCF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AshutoshBhumkar_0-1637326885174.png" alt="AshutoshBhumkar_0-1637326885174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 13:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-NULL/m-p/1861453#M71090</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-11-19T13:03:26Z</dc:date>
    </item>
  </channel>
</rss>

