<?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: display just a calculated total in a text box from a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109085#M367013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the second version (the sum) and it works perfectly - Thanks Sunny T &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 11:31:24 GMT</pubDate>
    <dc:creator>chrismtb</dc:creator>
    <dc:date>2016-06-02T11:31:24Z</dc:date>
    <item>
      <title>display just a calculated total in a text box from a table</title>
      <link>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109083#M367011</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 have a data set currently set out similar to the below example (but with a lot more depth to the information). I have a number of dashboards which query the data in different ways and provide a number of views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the views i had required me to pull out where i had duplicated Ref ID's but &lt;STRONG&gt;only&lt;/STRONG&gt; in the cases where the status was valid (in this case all valid statuses contain " - ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sys ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ref ID&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;Status&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;Name&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;Description&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1 - plan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;project a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;project info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54321&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2 - build&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project b&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11112&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2 - build&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project c&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12457&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;rejected reason a&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project d&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4 - concluded&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project e&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2 - build&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;project f&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;funding denied&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;project g&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;project info&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I used the below logic to come up with a simple table view that works:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;=IF(wildmatch([Status],'*-*'),IF([Ref ID]&amp;gt;0,IF(count([&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ref ID&lt;/SPAN&gt;])&amp;gt;1,count([&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ref ID&lt;/SPAN&gt;]),),))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;which allows me to exclude both where there is not a valid status and where there are blank Ref IDs... IE using the example table i would expect to return results with a total at the bottom:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 271px; height: 32px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ref ID&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;COUNT&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;12345&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; background-color: #c0c0c0;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(this result is Sys ID 1 and 6)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;As previously mentioned i added a number of other views to look at other requirements and decided the best way to look at things was a high level summary tab.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For this i have a text box with the condition for each table and then another text box with the total for that condition.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am stuck though because i want to display the total from the results table (directly above) in this text box.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have tried using another count/sum statement around my formula to get the result i.e.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;=sum(IF(wildmatch([Status],'*-*'),IF([Ref ID]&amp;gt;0,IF(count([&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;Ref ID&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;])&amp;gt;1,count([&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;Ref ID&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333330154419px;"&gt;]),),)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;but this just does not work plain and simple.... can anyone give me some direction as how to solve this (i suspect it involves set analysis of some sort but i have quite a bit going on in the formula and can't get it clear in my head!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109083#M367011</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2016-06-01T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: display just a calculated total in a text box from a table</title>
      <link>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109084#M367012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Aggr(If(WildMatch([Status],'*-*'), If([Ref ID]&amp;gt;0, If(Count([Ref ID]) &amp;gt; 1, Count([Ref ID])))), [Ref ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(Aggr(If(WildMatch([Status],'*-*'), If([Ref ID]&amp;gt;0, If(Count([Ref ID]) &amp;gt; 1, Count([Ref ID])))), [Ref ID]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109084#M367012</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: display just a calculated total in a text box from a table</title>
      <link>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109085#M367013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the second version (the sum) and it works perfectly - Thanks Sunny T &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-just-a-calculated-total-in-a-text-box-from-a-table/m-p/1109085#M367013</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2016-06-02T11:31:24Z</dc:date>
    </item>
  </channel>
</rss>

