<?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 null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/null-values/m-p/605601#M1118525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good afternoon, this is me having the following situation, I have one expression that consists of 2 parts subtraction is applied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[%Cuenta contable]={$(=$(vCuentaIngresoGAS))},[Clasificacion categoría]={'Sector Residencial'}&amp;gt;}&lt;/P&gt;&lt;P&gt; if (IsNull([Consumo del cliente])=-1, 0, [Consumo del cliente] ))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Año={$(= Max(Año))},Mes={$(= Month(AddMonths(Max(Fecha),-1)))},[%Cuenta contable]={$(=$(vCuentaIngresoGAS))},[Clasificacion categoría]={'Sector Residencial'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if(IsNull([Consumo del cliente])=-1,0,[Consumo del cliente]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part 2)&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;FlagGT = {1}, FuenteInfo = {'Costo Regulado--&amp;gt;Excell'},[%Cuenta contable]={$(=$(vCuentaCostoGAS))},[Categoría]={'Domestico'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if (IsNull(Mts3DOMESTICO_Costo_reg)=-1,0,Mts3DOMESTICO_Costo_reg))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;Año={$(= Max(Año))},Mes={$(= Month(AddMonths(Max(Fecha),-1)))},FlagGT = {1}, FuenteInfo = {'Costo Regulado--&amp;gt;Excell'},[%Cuenta contable]={$(=$(vCuentaCostoGAS))},[Categoría]={'Domestico'}&amp;gt;}&lt;/P&gt;&lt;P&gt;if (IsNull(Mts3DOMESTICO_Costo_reg)=-1,0,Mts3DOMESTICO_Costo_reg))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not loaded data for part 2, but I try to check if the value is null I replace it by zero, apparently did not make it because part 2 throws me null value and this makes the entire expression is part 1 minus the part 2 me throw nil. As I can do to correct this?, I appreciate your suggestions: for example:&lt;/P&gt;&lt;P&gt;Part 1 result 50, Part 2 result null, then part 1 result minus part 2 resul is equal null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 13:04:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-04T13:04:30Z</dc:date>
    <item>
      <title>null values</title>
      <link>https://community.qlik.com/t5/QlikView/null-values/m-p/605601#M1118525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good afternoon, this is me having the following situation, I have one expression that consists of 2 parts subtraction is applied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[%Cuenta contable]={$(=$(vCuentaIngresoGAS))},[Clasificacion categoría]={'Sector Residencial'}&amp;gt;}&lt;/P&gt;&lt;P&gt; if (IsNull([Consumo del cliente])=-1, 0, [Consumo del cliente] ))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Año={$(= Max(Año))},Mes={$(= Month(AddMonths(Max(Fecha),-1)))},[%Cuenta contable]={$(=$(vCuentaIngresoGAS))},[Clasificacion categoría]={'Sector Residencial'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if(IsNull([Consumo del cliente])=-1,0,[Consumo del cliente]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part 2)&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;FlagGT = {1}, FuenteInfo = {'Costo Regulado--&amp;gt;Excell'},[%Cuenta contable]={$(=$(vCuentaCostoGAS))},[Categoría]={'Domestico'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if (IsNull(Mts3DOMESTICO_Costo_reg)=-1,0,Mts3DOMESTICO_Costo_reg))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;Año={$(= Max(Año))},Mes={$(= Month(AddMonths(Max(Fecha),-1)))},FlagGT = {1}, FuenteInfo = {'Costo Regulado--&amp;gt;Excell'},[%Cuenta contable]={$(=$(vCuentaCostoGAS))},[Categoría]={'Domestico'}&amp;gt;}&lt;/P&gt;&lt;P&gt;if (IsNull(Mts3DOMESTICO_Costo_reg)=-1,0,Mts3DOMESTICO_Costo_reg))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not loaded data for part 2, but I try to check if the value is null I replace it by zero, apparently did not make it because part 2 throws me null value and this makes the entire expression is part 1 minus the part 2 me throw nil. As I can do to correct this?, I appreciate your suggestions: for example:&lt;/P&gt;&lt;P&gt;Part 1 result 50, Part 2 result null, then part 1 result minus part 2 resul is equal null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 13:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-values/m-p/605601#M1118525</guid>
      <dc:creator />
      <dc:date>2014-02-04T13:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: null values</title>
      <link>https://community.qlik.com/t5/QlikView/null-values/m-p/605602#M1118526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Surround all SUM() expressions with a&amp;nbsp; RangeSum() function. RangeSum will treat all non-numerical values as 0. E.g.&lt;/P&gt;&lt;P&gt;=RangeSum(sum(Part1A), -Sum(Part1B), -Sum(Part2A), Sum(Part2B))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 13:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-values/m-p/605602#M1118526</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-02-04T13:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: null values</title>
      <link>https://community.qlik.com/t5/QlikView/null-values/m-p/605603#M1118527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter excellent, thanks it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-values/m-p/605603#M1118527</guid>
      <dc:creator />
      <dc:date>2014-02-04T14:01:30Z</dc:date>
    </item>
  </channel>
</rss>

