<?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 Re: Calculation in a textbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177873#M913445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just make it a chart? A straight table to be exact?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 15:50:11 GMT</pubDate>
    <dc:creator>oknotsen</dc:creator>
    <dc:date>2016-05-31T15:50:11Z</dc:date>
    <item>
      <title>Calculation in a textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177872#M913444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;I want to perform a calculation in a text box.&lt;/P&gt;&lt;P&gt;My data table looks liks this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 261px; height: 70px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Category&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Num of Items&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item Prices&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;&lt;P&gt;B&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV style="margin-left: 4px;"&gt;&lt;DIV&gt;&lt;DIV style="margin: 0 0 8px; background: whitesmoke;"&gt;&lt;DIV class="almost_half_cell"&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get the following results:&lt;/P&gt;&lt;P&gt;textbox1 ---&amp;gt;&lt;STRONG&gt;Total Costs A&amp;nbsp; 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;textbox2 &lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;---&amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;Total Costs&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;B &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;600&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;textbox3 &lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;---&amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;Total Costs C &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;How is the syntax for the following pseudocode in QlikView?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;= &lt;SPAN style="color: #0000ff;"&gt;Num of Item&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Item Prices&lt;/SPAN&gt; where &lt;SPAN style="color: #0000ff;"&gt;Category&lt;/SPAN&gt; is A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;= &lt;SPAN style="color: #0000ff;"&gt;Num of Item&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Item Prices&lt;/SPAN&gt; where &lt;SPAN style="color: #0000ff;"&gt;Category&lt;/SPAN&gt; is B&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; background-color: #f5f5f5;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;= &lt;SPAN style="color: #0000ff;"&gt;Num of Item&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Item Prices&lt;/SPAN&gt; where &lt;SPAN style="color: #0000ff;"&gt;Category&lt;/SPAN&gt; is C&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177872#M913444</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177873#M913445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just make it a chart? A straight table to be exact?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177873#M913445</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-05-31T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177874#M913446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;Only({&amp;lt;Category = {'A'}&amp;gt;}Num of Item * Item Prices)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2)&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-weight: bold;"&gt; Only({&amp;lt;Category = {'B'}&amp;gt;}Num of Item * Item Prices)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3)&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 13.3333px; font-weight: bold;"&gt; Only({&amp;lt;Category = {'C'}&amp;gt;}Num of Item * Item Prices)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177874#M913446</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T15:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in a textbox</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177875#M913447</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;I am not sure what are you trying to achieve but this is how its done using set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Each Text box your formula should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum( {&amp;lt; Category = {A}&amp;gt;&amp;nbsp; } [Num of Items] * [Item Prices])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= sum( {&amp;lt; Category = {B}&amp;gt;&amp;nbsp; } [Num of Items] * [Item Prices])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= sum( {&amp;lt; Category = {C}&amp;gt;&amp;nbsp; } [Num of Items] * [Item Prices])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 16:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-a-textbox/m-p/1177875#M913447</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2016-05-31T16:00:54Z</dc:date>
    </item>
  </channel>
</rss>

