<?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 calculate subtotal skiping strings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-subtotal-skiping-strings/m-p/2107259#M1224408</link>
    <description>&lt;P&gt;We have a dynamic table with this expresion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if(previsao_entrega='-',null(),
	if(Round(previsao_entrega-Date(now()), 1)&amp;gt;0,Round(previsao_entrega-Date(now()), 1),'revisao'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with subtotal itt shows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafael5958_0-1692380858713.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114721i7DBA170822E5FBFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafael5958_0-1692380858713.png" alt="rafael5958_0-1692380858713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I show sum as 17 and 33, and not the string revisao ? Calculate only numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 17:50:03 GMT</pubDate>
    <dc:creator>rafael5958</dc:creator>
    <dc:date>2023-08-18T17:50:03Z</dc:date>
    <item>
      <title>calculate subtotal skiping strings</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-subtotal-skiping-strings/m-p/2107259#M1224408</link>
      <description>&lt;P&gt;We have a dynamic table with this expresion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if(previsao_entrega='-',null(),
	if(Round(previsao_entrega-Date(now()), 1)&amp;gt;0,Round(previsao_entrega-Date(now()), 1),'revisao'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with subtotal itt shows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafael5958_0-1692380858713.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114721i7DBA170822E5FBFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafael5958_0-1692380858713.png" alt="rafael5958_0-1692380858713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I show sum as 17 and 33, and not the string revisao ? Calculate only numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 17:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-subtotal-skiping-strings/m-p/2107259#M1224408</guid>
      <dc:creator>rafael5958</dc:creator>
      <dc:date>2023-08-18T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculate subtotal skiping strings</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-subtotal-skiping-strings/m-p/2107302#M1224409</link>
      <description>&lt;P&gt;Should "revisao" be considered a 0 or Null() when adding up?&lt;/P&gt;
&lt;P&gt;If so, you could use Dual(). This function takes 2 parameters, the first is a text string that you want to display, and the second is a numeric value or expression that results in a numeric value (which can be sum and sorted as a number)&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;If(previsao_entrega = '-', Null(), If(Round(previsao_entrega - Date(Now()), 1) &amp;gt; 0, Round(previsao_entrega - Date(Now()), 1), Dual('revisao', 0)))&lt;/P&gt;
&lt;P&gt;////&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;O campo "revisao" deveria ser lido como 0 ou nulo?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Se sim, você poderia tentar usar a função Dual() que recebe um valor de texto para ser exibido e um valor númerico para ser interpretado.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Testa isso:&lt;/P&gt;
&lt;P&gt;If(previsao_entrega = '-', Null(), If(Round(previsao_entrega - Date(Now()), 1) &amp;gt; 0, Round(previsao_entrega - Date(Now()), 1), Dual('revisao', 0)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 20:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-subtotal-skiping-strings/m-p/2107302#M1224409</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2023-08-18T20:08:16Z</dc:date>
    </item>
  </channel>
</rss>

