<?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: Really want this to work - substringcount() and aggr() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204166#M22935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uploaded a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 22:05:28 GMT</pubDate>
    <dc:creator>jjwild00</dc:creator>
    <dc:date>2016-10-10T22:05:28Z</dc:date>
    <item>
      <title>Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204164#M22933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(concat(SelectedValue1), GroupValue1) returns a single value as GroupValue1 is the same for all records.&amp;nbsp; The value is 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value1 is a field that can be A, B, C or D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following calculated dimension fails to return a value:&lt;/P&gt;&lt;P&gt;=SubStringCount(aggr(concat(SelectedValue1), GroupValue1), Value1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the following both return the correct value, 1 in the first case and 0 or 1 in the second case:&lt;/P&gt;&lt;P&gt;=SubStringCount(aggr(concat(SelectedValue1), GroupValue1), 'A')&lt;/P&gt;&lt;P&gt;=SubStringCount('ABC', Value1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can put part of the expression that fails to return a value into a variable and it works in QlikView.&amp;nbsp; However, I need to have this work in Sense and its variable handling is not as powerful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone see something I can change to get the full expression to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 22:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204164#M22933</guid>
      <dc:creator>jjwild00</dc:creator>
      <dc:date>2016-10-05T22:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204165#M22934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you are using this, can you share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 18:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204165#M22934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204166#M22935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uploaded a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 22:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204166#M22935</guid>
      <dc:creator>jjwild00</dc:creator>
      <dc:date>2016-10-10T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204167#M22936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140210_Capture.PNG" style="height: 206px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SubStringCount(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; Concat(SelectedCallGroup), GroupCallGroup), CallGroup&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 22:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204167#M22936</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T22:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204168#M22937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also not sure why you need to use this as a dimension, but usually to show selection from an unlinked field, we can use set analysis like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;CallGroup = p(SelectedCallGroup)&amp;gt;}&lt;/SPAN&gt;1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140211_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 22:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204168#M22937</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T22:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Really want this to work - substringcount() and aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204169#M22938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this too.&amp;nbsp; It is a dimension so I can set it to not show on the chart if it is null.&amp;nbsp; If the SubStringCount returns 0, then I do not want the row in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not possible in a measure (Sense term for an expression).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 22:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Really-want-this-to-work-substringcount-and-aggr/m-p/1204169#M22938</guid>
      <dc:creator>jjwild00</dc:creator>
      <dc:date>2016-10-10T22:59:22Z</dc:date>
    </item>
  </channel>
</rss>

