<?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 Get Total Sum from conditional SUM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039154#M936466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there:&lt;/P&gt;&lt;P&gt;I have an Straight Table and I need to replicate sum Totals for each month selected, something like when May is selected:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Totales.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114661_Totales.png" style="height: 267px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In my Qlikview file shows the information like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Totales.png" class="jive-image image-2" src="/legacyfs/online/114680_Qlik Totales.png" style="height: 169px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;When I hide the Column AñoNombreMes, the result is different from the sum of values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression:&lt;/P&gt;&lt;P&gt;=if&lt;/P&gt;&lt;P&gt;(Only ({&amp;lt;MesT=,Mes&amp;gt;}Codigo_IndicadorT)='PROFIT' ,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;EscenarioT={'REAL'},AñoT={'$(vMaxAño)'},Mes_Num={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},Mes=,MesT=,Total_MedidaT={'=not isnull(Total_MedidaT)'}&amp;gt;} Datos)&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Año={'$(vMaxAño)'},Mes=,MesT&amp;gt;} DISTINCT(FechaCont))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Wonder if it is possible to get the Total sum from the conditional SUM or change the expression in order to get the &lt;SPAN style="font-size: 13.3333px;"&gt;correct sum of values&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2016 16:55:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-15T16:55:03Z</dc:date>
    <item>
      <title>Get Total Sum from conditional SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039154#M936466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there:&lt;/P&gt;&lt;P&gt;I have an Straight Table and I need to replicate sum Totals for each month selected, something like when May is selected:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Totales.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114661_Totales.png" style="height: 267px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In my Qlikview file shows the information like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Totales.png" class="jive-image image-2" src="/legacyfs/online/114680_Qlik Totales.png" style="height: 169px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;When I hide the Column AñoNombreMes, the result is different from the sum of values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression:&lt;/P&gt;&lt;P&gt;=if&lt;/P&gt;&lt;P&gt;(Only ({&amp;lt;MesT=,Mes&amp;gt;}Codigo_IndicadorT)='PROFIT' ,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;EscenarioT={'REAL'},AñoT={'$(vMaxAño)'},Mes_Num={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},Mes=,MesT=,Total_MedidaT={'=not isnull(Total_MedidaT)'}&amp;gt;} Datos)&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Año={'$(vMaxAño)'},Mes=,MesT&amp;gt;} DISTINCT(FechaCont))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Wonder if it is possible to get the Total sum from the conditional SUM or change the expression in order to get the &lt;SPAN style="font-size: 13.3333px;"&gt;correct sum of values&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039154#M936466</guid>
      <dc:creator />
      <dc:date>2016-02-15T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Total Sum from conditional SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039155#M936467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using advanced aggregation, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;EscenarioT={'REAL'},AñoT={'$(vMaxAño)'},Mes_Num={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},Mes=,MesT=,Total_MedidaT={'=not isnull(Total_MedidaT)'}&amp;gt;}&lt;BR /&gt; Aggr(&lt;BR /&gt; if&lt;BR /&gt;(Only ({&amp;lt;MesT=,Mes&amp;gt;}Codigo_IndicadorT)='PROFIT' ,&lt;BR /&gt;//Aggr(&lt;BR /&gt;Sum({&amp;lt;EscenarioT={'REAL'},AñoT={'$(vMaxAño)'},Mes_Num={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},Mes=,MesT=,Total_MedidaT={'=not isnull(Total_MedidaT)'}&amp;gt;} Datos)&lt;BR /&gt;*&lt;BR /&gt;Count({&amp;lt;Año={'$(vMaxAño)'},Mes=,MesT&amp;gt;} DISTINCT(FechaCont))&lt;BR /&gt;//,EscenarioT, AñoNombreMes ,AreaT ,Descripcion_IndicadorT)&lt;BR /&gt;)&lt;BR /&gt;,[AñoNombreMes]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039155#M936467</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-15T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Total Sum from conditional SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039156#M936468</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;Try This&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Codigo_IndicadorT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'PROFIT'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EscenarioT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'REAL'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AñoT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vMaxAño)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes_Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Total_MedidaT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'=not isnull(Total_MedidaT)'}&amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Codigo_IndicadorT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'PROFIT'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EscenarioT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'REAL'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AñoT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vMaxAño)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes_Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=1 &amp;lt;=$(vMaxMesNum)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Total_MedidaT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'=not isnull(Total_MedidaT)'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datos&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Codigo_IndicadorT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'PROFIT'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Año&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vMaxAño)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MesT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FechaCont&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AñoNombreMes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039156#M936468</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2016-02-15T17:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Total Sum from conditional SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039157#M936469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sathish G, it works perfect.&lt;/P&gt;&lt;P&gt;My best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 18:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039157#M936469</guid>
      <dc:creator />
      <dc:date>2016-02-15T18:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Total Sum from conditional SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039158#M936470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for you time swuehl, it works, nevertheless when I unmark PROFIT the column doesn't show values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 18:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Total-Sum-from-conditional-SUM/m-p/1039158#M936470</guid>
      <dc:creator />
      <dc:date>2016-02-15T18:11:48Z</dc:date>
    </item>
  </channel>
</rss>

