<?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: Missing Values in a formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747263#M1031354</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;You can try RangeSum() or Alt()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;round((&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Alt(&lt;/SPAN&gt;sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}&amp;gt;} CCM_TOTAL_ENROLMENT), 0)*&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;column(2), 0))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'}&amp;gt;} CCM_STUDENTID), 0))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'},CCM_TAKEN_OVERALL={'N*'}&amp;gt;} CCM_STUDENTID), 0),0.001),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alt(sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}, CCM_PLAN_TYPE={'1MJ*'} &amp;gt;} CCM_TOTAL_ENROLMENT),0)))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 04:04:02 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-02-05T04:04:02Z</dc:date>
    <item>
      <title>Missing Values in a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747262#M1031353</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;&amp;nbsp; I have complex formula... as below, and this formula is being used by other calculations as well..&lt;/P&gt;&lt;P&gt;&amp;nbsp; My problem is, if any component of the formula is missing or has missing value,, it affected the computation and thus has cascading effect on the rest of the dependent calculations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(((sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}&amp;gt;} CCM_TOTAL_ENROLMENT)*column(2))&lt;/P&gt;&lt;P&gt;-count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'}&amp;gt;} CCM_STUDENTID))&lt;/P&gt;&lt;P&gt;+count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'},CCM_TAKEN_OVERALL={'N*'}&amp;gt;} CCM_STUDENTID),0.001),sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}, CCM_PLAN_TYPE={'1MJ*'} &amp;gt;} CCM_TOTAL_ENROLMENT)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If any of the item has missing value i already got null for the rest of the calculations..&lt;/P&gt;&lt;P&gt;example for this segment&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'}&amp;gt;} CCM_STUDENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;how do i trap if this expression would return a missing value and enforced zero instead for the calculations would still go.,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;really appreciate any help..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 03:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747262#M1031353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T03:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values in a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747263#M1031354</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;You can try RangeSum() or Alt()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;round((&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Alt(&lt;/SPAN&gt;sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}&amp;gt;} CCM_TOTAL_ENROLMENT), 0)*&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;column(2), 0))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'}&amp;gt;} CCM_STUDENTID), 0))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alt(&lt;/SPAN&gt;count(DISTINCT {&amp;lt;CCM_MAJOR_TYPE= {'ALL'},CCM_PLAN_TYPE={'1MJ*'},CCM_TAKEN_OVERALL={'N*'}&amp;gt;} CCM_STUDENTID), 0),0.001),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alt(sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}, CCM_PLAN_TYPE={'1MJ*'} &amp;gt;} CCM_TOTAL_ENROLMENT),0)))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 04:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747263#M1031354</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-05T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values in a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747264#M1031355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thx for the fast reply,, have tried this.. unfortunatey it still showing blank for missing items..&lt;/P&gt;&lt;P&gt;i used this formula in a pivot table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my row are courses and my column is year...&lt;/P&gt;&lt;P&gt;if a course is not taken&amp;nbsp; for a specfic year,, then thats where the missing value applies and affects the rest of the calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 05:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747264#M1031355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T05:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values in a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747265#M1031356</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;Check each expression separately outside the chart in text object and make sure that alt is working correctly, like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Alt(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum(distinct {&amp;lt;CCM_MAJOR_TYPE= {'ALL'}&amp;gt;} CCM_TOTAL_ENROLMENT), 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;If above Sum() returns Null then you will get 0.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 05:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Values-in-a-formula/m-p/747265#M1031356</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-05T05:57:19Z</dc:date>
    </item>
  </channel>
</rss>

