<?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: set expression with aggr() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017037#M83983</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;can you explain in a bit more detail what you are trying to accomplish? It seems that you are trying to obtain an array of distinct field values corresponding to some filter other than current selections. What are you going to do with it?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 13:37:46 GMT</pubDate>
    <dc:creator>alextimofeyev</dc:creator>
    <dc:date>2022-12-15T13:37:46Z</dc:date>
    <item>
      <title>set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2016687#M83964</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Please someone let me know how could happen that I get back values based on selection when I explicitly ask for all values regardless selection....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;aggr( {1} only( {1} Dateval),Dateval)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do I not see here which allows current selection to creep back to my displayed list of items?&lt;/P&gt;
&lt;P&gt;While it is not working as I expect there is an other simple calculation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count({1} Dateval)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where {1} set identifier works fine, and I always get total count of items regardless of selection. These 2 are "running" in parallel, and the only difference I see is that latter is working fine, while the earlier is not...&lt;/P&gt;
&lt;P&gt;My ultimate goal is to add there a complex dynamic date filter expression instead of {1} set identifier once I understand why this simple is not working the way I think it should...&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp; Levente&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 17:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2016687#M83964</guid>
      <dc:creator>levente81</dc:creator>
      <dc:date>2022-12-14T17:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017037#M83983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;can you explain in a bit more detail what you are trying to accomplish? It seems that you are trying to obtain an array of distinct field values corresponding to some filter other than current selections. What are you going to do with it?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 13:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017037#M83983</guid>
      <dc:creator>alextimofeyev</dc:creator>
      <dc:date>2022-12-15T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017110#M83989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/196099"&gt;@levente81&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;As &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47357"&gt;@alextimofeyev&lt;/a&gt;&amp;nbsp;said you should provide more info about your actual result and the expected one.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017110#M83989</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-12-15T15:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017494#M84023</link>
      <description>&lt;P&gt;Hi Agigliotti,&lt;/P&gt;
&lt;P&gt;There is a simple situation, what I hope can be answered. Using this definition (&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;aggr( {1} only( {1} Dateval),Dateval)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;) in a table object as dimension, what shall I see when I select certain Dateval values:&lt;/P&gt;
&lt;P&gt;- all Dateval values&lt;/P&gt;
&lt;P&gt;- or only those that I selected?&lt;/P&gt;
&lt;P&gt;If the answer is always all as {1} is used, then comes my original question: How could happen, that my table responds to active selection?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Levente&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017494#M84023</guid>
      <dc:creator>levente81</dc:creator>
      <dc:date>2022-12-16T15:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017499#M84024</link>
      <description>&lt;P&gt;It would be easier if you could post a sample app with mock data.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017499#M84024</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-12-16T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017533#M84026</link>
      <description>&lt;P&gt;I think it will not work if you only have this dimension in your table. If you add a measure that ignores selections too, than all values in your dimension will show.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alextimofeyev_0-1671211163479.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96406iFA581F785A23D16F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alextimofeyev_0-1671211163479.png" alt="alextimofeyev_0-1671211163479.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you really don't need that measure in the table, you can "hide" it by setting the label to &lt;FONT face="courier new,courier"&gt;''&lt;/FONT&gt; and text color to &lt;FONT face="courier new,courier"&gt;white().&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 17:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-expression-with-aggr/m-p/2017533#M84026</guid>
      <dc:creator>alextimofeyev</dc:creator>
      <dc:date>2022-12-16T17:23:17Z</dc:date>
    </item>
  </channel>
</rss>

