<?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 help with expression not excluding nulls in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-expression-not-excluding-nulls/m-p/1509667#M601308</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an expression that I was using to bring in target data for a table and it worked fine:&lt;/P&gt;&lt;P&gt;if(ISNULL(&lt;/P&gt;&lt;P&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1)&lt;/P&gt;&lt;P&gt;), NULL(),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need to change it so that I can hard code targets for specific Service Provider numbers and have the code in below which is bringing in the correct data but also showing up hospitals that are blank that were excluded with the first code&lt;/P&gt;&lt;P&gt;IF(ISNULL(&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(ServiceProviderNum='5099','≤5.0',&lt;BR /&gt;if(ServiceProviderNum='5006','≤6.2',&lt;BR /&gt;if(ServiceProviderNum='5004','≤4.2',&lt;BR /&gt;if(ServiceProviderNum='5007','≤5.4',&lt;BR /&gt;if(ServiceProviderNum='5005','≤5.3',&lt;BR /&gt;if(ServiceProviderNum='5008','≤4.6',&lt;BR /&gt;if(ServiceProviderNum='5002','≤4.1',&lt;/P&gt;&lt;P&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1))))))))), NULL(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5099','≤5.0',&lt;BR /&gt;if(ServiceProviderNum='5006','≤6.2',&lt;BR /&gt;if(ServiceProviderNum='5004','≤4.2',&lt;BR /&gt;if(ServiceProviderNum='5007','≤5.4',&lt;BR /&gt;if(ServiceProviderNum='5005','≤5.3',&lt;BR /&gt;if(ServiceProviderNum='5008','≤4.6',&lt;BR /&gt;if(ServiceProviderNum='5002','≤4.1',&lt;/P&gt;&lt;P&gt;'≤' &amp;amp; NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1)))))))))&lt;/P&gt;&lt;P&gt;any help on how to exclude the service Provider numbers that are blank would be great.&amp;nbsp; I have exclude nulls in the dimensions already&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 11:59:18 GMT</pubDate>
    <dc:creator>rcorcoran</dc:creator>
    <dc:date>2018-11-20T11:59:18Z</dc:date>
    <item>
      <title>help with expression not excluding nulls</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression-not-excluding-nulls/m-p/1509667#M601308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an expression that I was using to bring in target data for a table and it worked fine:&lt;/P&gt;&lt;P&gt;if(ISNULL(&lt;/P&gt;&lt;P&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1)&lt;/P&gt;&lt;P&gt;), NULL(),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need to change it so that I can hard code targets for specific Service Provider numbers and have the code in below which is bringing in the correct data but also showing up hospitals that are blank that were excluded with the first code&lt;/P&gt;&lt;P&gt;IF(ISNULL(&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(ServiceProviderNum='5099','≤5.0',&lt;BR /&gt;if(ServiceProviderNum='5006','≤6.2',&lt;BR /&gt;if(ServiceProviderNum='5004','≤4.2',&lt;BR /&gt;if(ServiceProviderNum='5007','≤5.4',&lt;BR /&gt;if(ServiceProviderNum='5005','≤5.3',&lt;BR /&gt;if(ServiceProviderNum='5008','≤4.6',&lt;BR /&gt;if(ServiceProviderNum='5002','≤4.1',&lt;/P&gt;&lt;P&gt;NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1))))))))), NULL(),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5099','≤5.0',&lt;BR /&gt;if(ServiceProviderNum='5006','≤6.2',&lt;BR /&gt;if(ServiceProviderNum='5004','≤4.2',&lt;BR /&gt;if(ServiceProviderNum='5007','≤5.4',&lt;BR /&gt;if(ServiceProviderNum='5005','≤5.3',&lt;BR /&gt;if(ServiceProviderNum='5008','≤4.6',&lt;BR /&gt;if(ServiceProviderNum='5002','≤4.1',&lt;/P&gt;&lt;P&gt;'≤' &amp;amp; NUM(AVG( {$&amp;lt;TargetCode={'CPA27'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={6}, ReferredMM=, YearMonth=&amp;gt;} [AnnualTarget]), format.percentage.decimal1)))))))))&lt;/P&gt;&lt;P&gt;any help on how to exclude the service Provider numbers that are blank would be great.&amp;nbsp; I have exclude nulls in the dimensions already&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 11:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression-not-excluding-nulls/m-p/1509667#M601308</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2018-11-20T11:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with expression not excluding nulls</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression-not-excluding-nulls/m-p/1509673#M601309</link>
      <description>Would you be able to share an image of what you are seeing? A sample might be helpful as well</description>
      <pubDate>Tue, 20 Nov 2018 12:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression-not-excluding-nulls/m-p/1509673#M601309</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-20T12:11:12Z</dc:date>
    </item>
  </channel>
</rss>

