<?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 Dynamic aggregation in a variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128191#M8981</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'm created a master dimension (Customer Range) throught a measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to show the following expression:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if(aggr(sum(Sales),Customer)*100&amp;lt;0,'Option1',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(sum(Sales),Customer)*100&amp;gt;=0 AND aggr(sum(Sales),Customer)*100&amp;lt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option3'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Once the dimension is created, if I filter by 'Option1' (for example) the dashboard is filtered. Now, if I filter by other field (for example: customer type = pyme). I can see the data filtered by Customer Range = Opcion1 (i.e. Customers whose sales are less than zero) and Customer Type = PYME, but Customer Range dimension is recalculated and Customer Range dimension may not show only the 'Option1'. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once field value filtered, could I do something so that it's not recalculated? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is posible create a dynamic aggregation in a variable?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 11:15:15 GMT</pubDate>
    <dc:creator>mgarcmun</dc:creator>
    <dc:date>2018-08-10T11:15:15Z</dc:date>
    <item>
      <title>Dynamic aggregation in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128191#M8981</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'm created a master dimension (Customer Range) throught a measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to show the following expression:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if(aggr(sum(Sales),Customer)*100&amp;lt;0,'Option1',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(sum(Sales),Customer)*100&amp;gt;=0 AND aggr(sum(Sales),Customer)*100&amp;lt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option3'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Once the dimension is created, if I filter by 'Option1' (for example) the dashboard is filtered. Now, if I filter by other field (for example: customer type = pyme). I can see the data filtered by Customer Range = Opcion1 (i.e. Customers whose sales are less than zero) and Customer Type = PYME, but Customer Range dimension is recalculated and Customer Range dimension may not show only the 'Option1'. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once field value filtered, could I do something so that it's not recalculated? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is posible create a dynamic aggregation in a variable?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 11:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128191#M8981</guid>
      <dc:creator>mgarcmun</dc:creator>
      <dc:date>2018-08-10T11:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic aggregation in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128192#M8982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone help me, please?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 16:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128192#M8982</guid>
      <dc:creator>mgarcmun</dc:creator>
      <dc:date>2018-08-17T16:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic aggregation in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128193#M8983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear exactly what you are trying to do, but I think Set Analysis will get you there.&lt;/P&gt;&lt;P&gt;It sounds like you want the selection of Customer Type to be ignored for the "Option" calculation.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(aggr(sum({&amp;lt;[Customer Type]=&amp;gt;}Sales),Customer)*100&amp;lt;0,'Option1',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Customer Type]=&amp;gt;}&lt;/SPAN&gt;Sales),Customer)*100&amp;gt;=0 AND aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Customer Type]=&amp;gt;}&lt;/SPAN&gt;Sales),Customer)*100&amp;lt;0,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option2',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Option3'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 18:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-aggregation-in-a-variable/m-p/128193#M8983</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-08-17T18:16:09Z</dc:date>
    </item>
  </channel>
</rss>

