<?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 Alternative to aggr(only( with multiple selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1942664#M77666</link>
    <description>&lt;P&gt;Updated the code, removed only thinking this would allow multiselect. Unfortunately my dimension has only one result when I make a selection on OG_libelle_operation.&lt;/P&gt;
&lt;P&gt;=aggr({1&amp;lt;&lt;BR /&gt;TOG_thematique=-{'ASSISTANCE AD'}&lt;BR /&gt;, numAnnee={$(=$(numAnnee$))}&lt;BR /&gt;, [perimetre_per.per_libelle]={"$(=if(getselectedcount([perimetre_per.per_libelle])=0,'Global',replace(GetFieldSelections([perimetre_per.per_libelle]),', ','","')))"}&lt;BR /&gt;, TOG_famille=P(TOG_famille)&lt;BR /&gt;, TOG_thematique=P(TOG_thematique)&lt;BR /&gt;, [etablissement_etab.etab_type]=P([etablissement_etab.etab_type])&lt;BR /&gt;, [Type Budget]=P([Type Budget])&lt;BR /&gt;, FME_niveau_priorite=P(FME_niveau_priorite)&lt;BR /&gt;, cc_etat_avancement=P(cc_etat_avancement)&lt;BR /&gt;, plan_action_libelle=P(plan_action_libelle)&lt;BR /&gt;, OG_client=P(OG_client)&lt;BR /&gt;, OG_libelle_operation=P(OG_libelle_operation)&lt;BR /&gt;&amp;gt;}OG_libelle_operation,OG_libelle_operation)&lt;/P&gt;
&lt;P&gt;My customer wants to do multiple selections on the field OG_libelle_operation. I must keep AGGR and set analysis elements shown above. Have somebody got a workaround ?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 07:45:48 GMT</pubDate>
    <dc:creator>merlephil</dc:creator>
    <dc:date>2022-06-14T07:45:48Z</dc:date>
    <item>
      <title>Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1942664#M77666</link>
      <description>&lt;P&gt;Updated the code, removed only thinking this would allow multiselect. Unfortunately my dimension has only one result when I make a selection on OG_libelle_operation.&lt;/P&gt;
&lt;P&gt;=aggr({1&amp;lt;&lt;BR /&gt;TOG_thematique=-{'ASSISTANCE AD'}&lt;BR /&gt;, numAnnee={$(=$(numAnnee$))}&lt;BR /&gt;, [perimetre_per.per_libelle]={"$(=if(getselectedcount([perimetre_per.per_libelle])=0,'Global',replace(GetFieldSelections([perimetre_per.per_libelle]),', ','","')))"}&lt;BR /&gt;, TOG_famille=P(TOG_famille)&lt;BR /&gt;, TOG_thematique=P(TOG_thematique)&lt;BR /&gt;, [etablissement_etab.etab_type]=P([etablissement_etab.etab_type])&lt;BR /&gt;, [Type Budget]=P([Type Budget])&lt;BR /&gt;, FME_niveau_priorite=P(FME_niveau_priorite)&lt;BR /&gt;, cc_etat_avancement=P(cc_etat_avancement)&lt;BR /&gt;, plan_action_libelle=P(plan_action_libelle)&lt;BR /&gt;, OG_client=P(OG_client)&lt;BR /&gt;, OG_libelle_operation=P(OG_libelle_operation)&lt;BR /&gt;&amp;gt;}OG_libelle_operation,OG_libelle_operation)&lt;/P&gt;
&lt;P&gt;My customer wants to do multiple selections on the field OG_libelle_operation. I must keep AGGR and set analysis elements shown above. Have somebody got a workaround ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1942664#M77666</guid>
      <dc:creator>merlephil</dc:creator>
      <dc:date>2022-06-14T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1942697#M77674</link>
      <description>&lt;P&gt;I wouldn't use a calculated dimension else using the origin field and applying the needed filters within the chart-expressions.&lt;/P&gt;
&lt;P&gt;Beside this many of the conditions aren't needed because something like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TOG_famille={"$(=if(getselectedcount(TOG_famille)=0,'*',replace(getfieldSelections(TOG_famille),', ','","')))"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;means that the made or not made selections of this field are considered - therefore this condition is superfluous.&lt;/P&gt;
&lt;P&gt;In cases in which the selection-state of a field needs to be queried it's usually easier to use the appropriate features of p() and e(), like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TOG_famille = p(TOG_famille)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 08:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1942697#M77674</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-13T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943175#M77719</link>
      <description>&lt;P&gt;The thing is it is not used in a chart but multiple tables and filters in the app and is meant to work in the same way. I reviewed the conditions as per your suggestions but my problem remains. Aggr if I make no mistake is to build up a list from the values of a field. It should allow muti-selecting items in that list in a way or another. When I try multiselecting, QlikSense throws a "Invalid parameters" error.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943175#M77719</guid>
      <dc:creator>merlephil</dc:creator>
      <dc:date>2022-06-14T07:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943190#M77722</link>
      <description>&lt;P&gt;It's not really clear for me what you are trying to do and what the issue is. I think the conditions aren't essentially in regard to your aim of multi-selecting and therefore we could skip them at this point. So simplified we have:&lt;/P&gt;
&lt;P&gt;aggr(Field, Field)&lt;/P&gt;
&lt;P&gt;as dimension or is it different in your use-case?&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 08:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943190#M77722</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-14T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943200#M77723</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merlephil_0-1655194429639.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81672i42C1E3F11784261C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="merlephil_0-1655194429639.png" alt="merlephil_0-1655194429639.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Above is the behavior I have when I make a selection on the filter. Without selection I have multiple options in that filter.&lt;BR /&gt;I seek out to show on that filter every record of OG_libelle_operation excluding one value for TOG_thematique for a defined perimeter and a defined Year. The dimension shows awaited results but is incorrect after selecting, because once an option of OG_libelle_operation is chosen you just can't select a second one. My goad is to be able to select as many OG_libelle_operation in the list made by the aggr function.&lt;BR /&gt;Hope my explaination's clearer.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 08:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943200#M77723</guid>
      <dc:creator>merlephil</dc:creator>
      <dc:date>2022-06-14T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to aggr(only( with multiple selections</title>
      <link>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943276#M77726</link>
      <description>&lt;P&gt;In QlikView it displayed the excluded values also with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;aggr(only({1} Field), Field)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Alternative-to-aggr-only-with-multiple-selections/m-p/1943276#M77726</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-14T10:31:29Z</dc:date>
    </item>
  </channel>
</rss>

