<?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 Qlikview: Negative values in Straight and Pivot table not totaling up in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1970906#M1220554</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an expression in a straight table&lt;/P&gt;
&lt;P&gt;=Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&lt;/P&gt;
&lt;P&gt;There are positive and negative values in this column.&lt;/P&gt;
&lt;P&gt;I am trying to make two columns separating the positive and negative values.&lt;/P&gt;
&lt;P&gt;The column with positive values are working perfectly but the one with neg values is not totaling, shows 0 for totals.&lt;/P&gt;
&lt;P&gt;The same issue when i try separate Pivot tables for positive and neg.&lt;/P&gt;
&lt;P&gt;Expressions I use for two columns:&lt;/P&gt;
&lt;P&gt;Positive:&lt;/P&gt;
&lt;P&gt;If(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&amp;gt;0,&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)),0)&lt;/P&gt;
&lt;P&gt;Negative:&lt;/P&gt;
&lt;P&gt;If(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&amp;lt;0,&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)),0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have already tried to make neg output as positive but no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 22:23:19 GMT</pubDate>
    <dc:creator>AB108</dc:creator>
    <dc:date>2022-08-19T22:23:19Z</dc:date>
    <item>
      <title>Qlikview: Negative values in Straight and Pivot table not totaling up</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1970906#M1220554</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an expression in a straight table&lt;/P&gt;
&lt;P&gt;=Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&lt;/P&gt;
&lt;P&gt;There are positive and negative values in this column.&lt;/P&gt;
&lt;P&gt;I am trying to make two columns separating the positive and negative values.&lt;/P&gt;
&lt;P&gt;The column with positive values are working perfectly but the one with neg values is not totaling, shows 0 for totals.&lt;/P&gt;
&lt;P&gt;The same issue when i try separate Pivot tables for positive and neg.&lt;/P&gt;
&lt;P&gt;Expressions I use for two columns:&lt;/P&gt;
&lt;P&gt;Positive:&lt;/P&gt;
&lt;P&gt;If(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&amp;gt;0,&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)),0)&lt;/P&gt;
&lt;P&gt;Negative:&lt;/P&gt;
&lt;P&gt;If(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB))&amp;lt;0,&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)),0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have already tried to make neg output as positive but no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 22:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1970906#M1220554</guid>
      <dc:creator>AB108</dc:creator>
      <dc:date>2022-08-19T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview: Negative values in Straight and Pivot table not totaling up</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1971007#M1220559</link>
      <description>&lt;P&gt;perhaps this&lt;/P&gt;
&lt;P&gt;If(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE=&lt;STRONG&gt;&lt;FONT color="#993366"&gt;{"0&amp;gt;$(vInputDate)"}&lt;/FONT&gt;&lt;/STRONG&gt;&amp;gt;} Value_$(vAB))&amp;lt;0,&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE=&lt;STRONG&gt;&lt;FONT color="#993366"&gt;{"0&amp;gt;$(vInputDate)"}&lt;/FONT&gt;&lt;/STRONG&gt;&amp;gt;} Value_$(vAB)),0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 15:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1971007#M1220559</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-21T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview: Negative values in Straight and Pivot table not totaling up</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1973099#M1220630</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135828"&gt;@AB108&lt;/a&gt;&amp;nbsp;Did it solve your problem?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 14:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1973099#M1220630</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-25T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview: Negative values in Straight and Pivot table not totaling up</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1973145#M1220632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Using Aggr with the all the dimensions worked. I expected Qlik to internally group by the dimensions in St/Pivot tables but somehow it isnt working for subtotals/totals.&lt;/P&gt;
&lt;P&gt;Positive:&lt;/P&gt;
&lt;P&gt;Sum (&lt;BR /&gt;If (&lt;BR /&gt;Aggr(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)) , Dim1,Dim2)&amp;gt;0,&lt;BR /&gt;Aggr(Sum({$&amp;lt;Date={"&amp;lt;=$(vInputDate)"},CLEAR_DATE={0,"&amp;gt;$(vInputDate)"}&amp;gt;} Value_$(vAB)) , Dim1,Dim2)&lt;BR /&gt;, 0))&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 15:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Negative-values-in-Straight-and-Pivot-table-not/m-p/1973145#M1220632</guid>
      <dc:creator>AB108</dc:creator>
      <dc:date>2022-08-25T15:11:53Z</dc:date>
    </item>
  </channel>
</rss>

