<?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 Excluding Null Values in Script Sum &amp;amp; Multiplication expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Excluding-Null-Values-in-Script-Sum-amp-Multiplication/m-p/1773858#M64272</link>
    <description>&lt;P&gt;To Whom it May Concern,&lt;/P&gt;&lt;P&gt;I am currently having trouble with the following table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Weightedassessment:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;distinct&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum (PreScore *Weight) as weightedscorepre,&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;sum (PostScore *Weight) as weightedscorepost,&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;sum (PostScore *Weight) - sum (PreScore *Weight) as weightedgradechange,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;learnerassessment&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Resident [Final_Assessment] &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Group by learnerassessment, cohortassessment, [Academic Year], [Grade Level];&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of the table is to generate correct pre &amp;amp; post scores according to grading-weight. At first it seemed like all the weighted scores were correct then I noticed that for students who do not have a pre-score in the excel sheet (null when viewed as a dimension in qlik) that zeros were turning up from the calculation (PreScore*Weight). This is skewing results both for the &lt;EM&gt;weightedscorepre &amp;amp;&amp;nbsp;weightedgradechange&amp;nbsp;&lt;/EM&gt;fields.&lt;/P&gt;&lt;P&gt;Is there anyway of making Qlik interpret a numeric value * null as null ? Ideally I would like table to produce the following results if:&lt;/P&gt;&lt;P&gt;PreScore&amp;nbsp; &amp;nbsp;Weight&amp;nbsp; &amp;nbsp;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;/P&gt;&lt;P&gt;instead it is resulting in the following:&lt;/P&gt;&lt;P&gt;PreScore&amp;nbsp; &amp;nbsp;Weight&amp;nbsp; &amp;nbsp;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a few different if statements in the table involving null functions but no luck (I can't exclude all zeros either as some prescores were actually zeros...also if i use a where clause in a preceding table it seems to delete the whole row for the individual not just his/her null prescore but also the postscore). Any advice would be much appreciated! Thank you for your support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:37:11 GMT</pubDate>
    <dc:creator>malradi88</dc:creator>
    <dc:date>2024-11-16T17:37:11Z</dc:date>
    <item>
      <title>Excluding Null Values in Script Sum &amp; Multiplication expression</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-Null-Values-in-Script-Sum-amp-Multiplication/m-p/1773858#M64272</link>
      <description>&lt;P&gt;To Whom it May Concern,&lt;/P&gt;&lt;P&gt;I am currently having trouble with the following table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Weightedassessment:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;distinct&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum (PreScore *Weight) as weightedscorepre,&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;sum (PostScore *Weight) as weightedscorepost,&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;sum (PostScore *Weight) - sum (PreScore *Weight) as weightedgradechange,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;learnerassessment&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Resident [Final_Assessment] &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Group by learnerassessment, cohortassessment, [Academic Year], [Grade Level];&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of the table is to generate correct pre &amp;amp; post scores according to grading-weight. At first it seemed like all the weighted scores were correct then I noticed that for students who do not have a pre-score in the excel sheet (null when viewed as a dimension in qlik) that zeros were turning up from the calculation (PreScore*Weight). This is skewing results both for the &lt;EM&gt;weightedscorepre &amp;amp;&amp;nbsp;weightedgradechange&amp;nbsp;&lt;/EM&gt;fields.&lt;/P&gt;&lt;P&gt;Is there anyway of making Qlik interpret a numeric value * null as null ? Ideally I would like table to produce the following results if:&lt;/P&gt;&lt;P&gt;PreScore&amp;nbsp; &amp;nbsp;Weight&amp;nbsp; &amp;nbsp;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;/P&gt;&lt;P&gt;instead it is resulting in the following:&lt;/P&gt;&lt;P&gt;PreScore&amp;nbsp; &amp;nbsp;Weight&amp;nbsp; &amp;nbsp;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a few different if statements in the table involving null functions but no luck (I can't exclude all zeros either as some prescores were actually zeros...also if i use a where clause in a preceding table it seems to delete the whole row for the individual not just his/her null prescore but also the postscore). Any advice would be much appreciated! Thank you for your support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-Null-Values-in-Script-Sum-amp-Multiplication/m-p/1773858#M64272</guid>
      <dc:creator>malradi88</dc:creator>
      <dc:date>2024-11-16T17:37:11Z</dc:date>
    </item>
  </channel>
</rss>

