<?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: Can you total variables? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-you-total-variables/m-p/2007245#M83349</link>
    <description>&lt;P&gt;The TOTAL needs to be injected into the "COUNT(OrdersMade)".&amp;nbsp; You cannot do TOTAL after the count has already been calculated.&amp;nbsp; I think your only choice here is to either create multiple variables, or to use variables with parameters.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 19:29:29 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-11-21T19:29:29Z</dc:date>
    <item>
      <title>Can you total variables?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-you-total-variables/m-p/2007212#M83347</link>
      <description>&lt;P&gt;I have a an excel file containing all my KPIs, and in there, I have a fixed variable labeled&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;$(vOrderCount)&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;that corresponds to a particular expression:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=NUM(COUNT(OrdersMade),$(vNumberFormat)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I need to create a&amp;nbsp;&lt;EM&gt;new&lt;/EM&gt; expression that utilizes this variable, however, I need the total of it. Naturally, it would have to be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=NUM(COUNT(&lt;FONT color="#00CCFF"&gt;TOTAL&lt;/FONT&gt;(OrdersMade)),$(vNumberFormat)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;but with the original expression already linked to so many things in my application, I was just wondering if it was possible to do a total on variables like these? I've tried adding SUM and TOTAL before the variable label in the expression, (example:&amp;nbsp;&lt;EM&gt;=SUM(TOTAL($(vOrderCount)&lt;/EM&gt;) and it just doesn't work. The sample given above is fairly simple; The original expression is longer and contains a particular logic within it, but is it not working because the expression in the excel file already contains a &lt;U&gt;NUM&lt;/U&gt; in it, or am I missing something else, logic-wise?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-you-total-variables/m-p/2007212#M83347</guid>
      <dc:creator>bvendeza</dc:creator>
      <dc:date>2022-11-21T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you total variables?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-you-total-variables/m-p/2007245#M83349</link>
      <description>&lt;P&gt;The TOTAL needs to be injected into the "COUNT(OrdersMade)".&amp;nbsp; You cannot do TOTAL after the count has already been calculated.&amp;nbsp; I think your only choice here is to either create multiple variables, or to use variables with parameters.&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 19:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-you-total-variables/m-p/2007245#M83349</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-11-21T19:29:29Z</dc:date>
    </item>
  </channel>
</rss>

