<?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: Not IsNull() and Diff between Dates in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116477#M17942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you create a flag in the script like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Date_Field1)) &amp;gt; 0 and Date_Field1 &amp;gt; DateField2, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Flag = {'1'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 13:17:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-07-06T13:17:53Z</dc:date>
    <item>
      <title>Not IsNull() and Diff between Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116475#M17940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should know this in my sleep. Problem is, I &lt;EM&gt;should&lt;/EM&gt; be asleep, so I'm really struggling. Would appreciate any assistance! I need to translate this expression into set analysis:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If(not isnull([Date_Field1]) and ([Date_Field1]&amp;gt;[Date_Field2]), Sum([Sales])&lt;/P&gt;&lt;P&gt;Basically, I'm summing a value only where two date fields are both populated and one of the dates is greater than the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more example:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If(Today()-[Date_Field1]&amp;lt;=10, Sum([Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 04:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116475#M17940</guid>
      <dc:creator>ellenblackwell</dc:creator>
      <dc:date>2018-07-06T04:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not IsNull() and Diff between Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116476#M17941</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 assuming you have a dimension in your chart say Dim1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date_Field1 -= {' '}&amp;gt;*&amp;lt;Dim1 = {"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Date_Field1]&amp;gt;[Date_Field2]&lt;/SPAN&gt;"}&amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 04:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116476#M17941</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2018-07-06T04:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not IsNull() and Diff between Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116477#M17942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you create a flag in the script like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Date_Field1)) &amp;gt; 0 and Date_Field1 &amp;gt; DateField2, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Flag = {'1'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-IsNull-and-Diff-between-Dates-in-Set-Analysis/m-p/116477#M17942</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-06T13:17:53Z</dc:date>
    </item>
  </channel>
</rss>

