<?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 Please help with getting answer from data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65723#M773282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious how I can get an answer based on a group of data and then count the "index" that represents that group... here is an example very simplified table:&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;&lt;STRONG&gt;Index&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;Value&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;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;b&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;a&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;a&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;a&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;a&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;b&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;a&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;b&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effectively, I am trying to count the number of indices that distinctly have a value of 'a'. 1 would not be counted because the 3rd record contains a b, 2 would be counted because it only contains the value a (but is only counted once), 3 would not, 4 would count and 5 would not... so when I run the expression on the above table, the resulting count would be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have another level to add to this, but I think if I can understand how to accomplish my goal on just this set of data, I could extract what I need on the larger set...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this one? Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>cthomas2</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65723#M773282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious how I can get an answer based on a group of data and then count the "index" that represents that group... here is an example very simplified table:&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;&lt;STRONG&gt;Index&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;Value&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;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;b&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;a&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;a&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;a&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;a&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;b&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;a&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;b&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effectively, I am trying to count the number of indices that distinctly have a value of 'a'. 1 would not be counted because the 3rd record contains a b, 2 would be counted because it only contains the value a (but is only counted once), 3 would not, 4 would count and 5 would not... so when I run the expression on the above table, the resulting count would be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have another level to add to this, but I think if I can understand how to accomplish my goal on just this set of data, I could extract what I need on the larger set...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this one? Thanks in advance!&lt;/P&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/Please-help-with-getting-answer-from-data/m-p/65723#M773282</guid>
      <dc:creator>cthomas2</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65724#M773283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the AGGR function, if the number of distinct counts is 1, return 1, otherwise 0.&amp;nbsp; Suppress zeroes rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AGGR.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201743_AGGR.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 20:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65724#M773283</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-05-07T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65725#M773284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a chart with the Index as a dimension and this as the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count ({$&amp;lt;[Index] -= P({&amp;lt;[Value] -= {'a'}&amp;gt;})&amp;gt;}&amp;nbsp; Distinct [Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this get you started?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 20:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65725#M773284</guid>
      <dc:creator>ehilsinger</dc:creator>
      <dc:date>2018-05-07T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65726#M773285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- (only(TOTAL &amp;lt;Index&amp;gt; Value) = 'a')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201746_1.png" style="height: 502px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 20:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65726#M773285</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-05-07T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65727#M773286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response, however 3 is incorrect as the distinct values needs to be specifically 'a'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 11:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65727#M773286</guid>
      <dc:creator>cthomas2</dc:creator>
      <dc:date>2018-05-08T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65728#M773287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This result looks correct, however I just get a memory allocation error when I try putting it in and changing Index &amp;amp; Value for the actual field names...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 11:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65728#M773287</guid>
      <dc:creator>cthomas2</dc:creator>
      <dc:date>2018-05-08T11:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65729#M773288</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;another expression might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_300537_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201882_QlikCommunity_Thread_300537_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 21:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65729#M773288</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-05-08T21:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65730#M773289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in a text object.&lt;/P&gt;&lt;P&gt;=count(distinct aggr((only(TOTAL &amp;lt;Index&amp;gt; Value) = 'a'),Index))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 23:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65730#M773289</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-05-08T23:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with getting answer from data</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65731#M773290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is it! I was also able to integrate it into the "next level" I indicated into the original post and it matches up with all the counts I've already manually calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did not occur to me to just try to SUM the -1's, I kept trying to convert them into something else and then count them... such a simple change!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for trying to help me with this... I learned a lot just from trying everyone's suggestions! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-getting-answer-from-data/m-p/65731#M773290</guid>
      <dc:creator>cthomas2</dc:creator>
      <dc:date>2018-05-09T11:50:23Z</dc:date>
    </item>
  </channel>
</rss>

