<?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: Include null values in set analysis not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303410#M618882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in the script for when Year is not available&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Year)) = 0, 1, 0) as Flag&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF(ISNULL(GETFIELDSELECTIONS([Year])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Year]={'($(vCurrentYear))', '($(vPrevYear))','($(v2PrevYear))'}, [Ledger Code]={'1','23','63'}&amp;gt;&lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;Flag = {1}, [Ledger Code]={'1','23','63'}&amp;gt;&lt;/SPAN&gt;} [PO Line Amount Billed Functional]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Year]={'=GETFIELDSELECTIONS([Year])'}, [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2017 18:54:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-11T18:54:40Z</dc:date>
    <item>
      <title>Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303408#M618880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code. I realized some values do not have a year associated and I want to show these. My initial code was this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ISNULL(GETFIELDSELECTIONS([Year])),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={'($(vCurrentYear))', '($(vPrevYear))','($(v2PrevYear))'}, [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={'=GETFIELDSELECTIONS([Year])'}, [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the following in red()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;IF&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ISNULL(GETFIELDSELECTIONS([Year])),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt;[Year]={'($(vCurrentYear))', '($(vPrevYear))','($(v2PrevYear))',&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;"*"}&lt;/SPAN&gt;,&lt;/STRONG&gt; [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt;[Year]={'=GETFIELDSELECTIONS([Year])'}, [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how else to go about this. Suggestions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303408#M618880</guid>
      <dc:creator />
      <dc:date>2017-04-11T18:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303409#M618881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want to show only the fields, where year is null()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303409#M618881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-11T18:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303410#M618882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in the script for when Year is not available&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Year)) = 0, 1, 0) as Flag&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF(ISNULL(GETFIELDSELECTIONS([Year])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Year]={'($(vCurrentYear))', '($(vPrevYear))','($(v2PrevYear))'}, [Ledger Code]={'1','23','63'}&amp;gt;&lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;Flag = {1}, [Ledger Code]={'1','23','63'}&amp;gt;&lt;/SPAN&gt;} [PO Line Amount Billed Functional]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Year]={'=GETFIELDSELECTIONS([Year])'}, [Ledger Code]={'1','23','63'}&amp;gt;} [PO Line Amount Billed Functional]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303410#M618882</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-11T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303411#M618883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;those and the three year variables above. So null + the current year + Year before + 2 years before. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303411#M618883</guid>
      <dc:creator />
      <dc:date>2017-04-11T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303412#M618884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&lt;/P&gt;&lt;P&gt;&amp;lt;[Year]={'($(vCurrentYear))', '($(vPrevYear))','($(v2PrevYear))'}, [Ledger Code]={'1','23','63'}&amp;gt;&lt;/P&gt;&lt;P&gt;+ (&amp;lt;[Ledger Code]={'1','23','63'}&amp;gt;-&amp;lt;[Ledger Code]={'1','23','63'},Year={"*"}&amp;gt;)&lt;/P&gt;&lt;P&gt;} [PO Line Amount Billed Functional])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303412#M618884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-11T18:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303413#M618885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does that have to be in load script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303413#M618885</guid>
      <dc:creator />
      <dc:date>2017-04-11T18:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Include null values in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303414#M618886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The creation of Flag? Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 19:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-null-values-in-set-analysis-not-working/m-p/1303414#M618886</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-11T19:04:53Z</dc:date>
    </item>
  </channel>
</rss>

