<?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: Use GetFieldsSelection in Aggregations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459258#M794766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you create a variable for GetFieldSelections($field)&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&amp;nbsp;&amp;nbsp; vGetField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than use aggr function with this variable&lt;/P&gt;&lt;P&gt;e.g. Min($(vGetField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 10:53:20 GMT</pubDate>
    <dc:creator>tyagishaila</dc:creator>
    <dc:date>2018-01-05T10:53:20Z</dc:date>
    <item>
      <title>Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459248#M794756</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 would like to achieve the following in QlikView:&lt;/P&gt;&lt;P&gt;I have a list box "Parameter" listing all fields by using $Field. If I select one element from Parameter I would like to get min(), max(),avg() for that field in a text box. I tried something like: &lt;STRONG&gt;=max($(=GetFieldSelections($Field))) . &lt;/STRONG&gt;But that does not work.&lt;/P&gt;&lt;P&gt;I just want to replace the literal field name by the selected value. How can this be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&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/Use-GetFieldsSelection-in-Aggregations/m-p/1459248#M794756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459249#M794757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;='min: '&amp;nbsp; &amp;amp; $(='min([' &amp;amp; $Field &amp;amp; '])') &amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt; 'max:' &amp;amp;&amp;nbsp; $(='max([' &amp;amp; $Field &amp;amp; '])')&amp;nbsp; &amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'avg:' &amp;amp;&amp;nbsp; $(='avg([' &amp;amp; $Field &amp;amp; '])')&amp;nbsp; &amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'median:' &amp;amp;&amp;nbsp; $(='median([' &amp;amp; $Field &amp;amp; '])')&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459249#M794757</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-01-05T08:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459250#M794758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work when you select a &lt;STRONG&gt;single&lt;/STRONG&gt; field from the listbox $Field. However, if your field name has space in between, you might have to try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max($(=&lt;STRONG&gt;'['&lt;/STRONG&gt;&amp;amp;getfieldSelections($Field)&amp;amp;&lt;STRONG&gt;']'&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459250#M794758</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-05T08:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459251#M794759</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;So it should works if you create a variable V_selected_field&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[$Field]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Use this var in the text box with : =&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(V_seleted_field)&lt;/EM&gt;&lt;/STRONG&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459251#M794759</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2018-01-05T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459252#M794760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just put this in a variable&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;Variable1=GetFieldSelections($Field)&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; use something like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Variable1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459252#M794760</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2018-01-05T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459253#M794761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=max({&amp;lt;$Field={$(=GetFieldSelections($Field))}&amp;gt;} $(vNew))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;vNew&lt;/STRONG&gt; is a variable&lt;STRONG&gt; (vNew=getFieldSelections($(Field))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459253#M794761</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-05T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459254#M794762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, that does not work for me. The result is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 09:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459254#M794762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459255#M794763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to work ... almost. If I apply the formula to avg() and max() the result is plausible.&lt;/P&gt;&lt;P&gt;However, for min () it is not. Is there a way to display all values that contribute?&lt;/P&gt;&lt;P&gt;I tried to make a table based on GetFieldSelections() but obviously I have not grabbed the mechanics of referencing right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 09:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459255#M794763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T09:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459256#M794764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I got it now. My Diagram does not show all values for some reason.&lt;/P&gt;&lt;P&gt;so =Max($(=&lt;STRONG&gt;'['&lt;/STRONG&gt;&amp;amp;getfieldSelections($Field)&amp;amp;&lt;STRONG&gt;']'&lt;/STRONG&gt;)) solved my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 09:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459256#M794764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459257#M794765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I am still missing something. I get wrong values for min, max, avg. &lt;/P&gt;&lt;P&gt;What I did not mention before is that I have a second selection "ModelName" in a list box. Maybe this has an impact. &lt;/P&gt;&lt;P&gt;I have a line diagram and list box showing the selected values consistently if I select a ModelName and a Field.&lt;/P&gt;&lt;P&gt;But the aggregations do not reflect the values that I see in list box like a higher Max than any value in the selected list.&lt;/P&gt;&lt;P&gt;It appears that Max is also not global: If I deselect all ModelName then I get different values than when selecting one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to explicitly filter for Model and how do I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 10:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459257#M794765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459258#M794766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you create a variable for GetFieldSelections($field)&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&amp;nbsp;&amp;nbsp; vGetField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than use aggr function with this variable&lt;/P&gt;&lt;P&gt;e.g. Min($(vGetField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 10:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459258#M794766</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2018-01-05T10:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459259#M794767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting set analysis identifier {1} for global output, &lt;SPAN style="font-size: 13.3333px;"&gt;like &lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Max( &lt;STRONG&gt;{1}&lt;/STRONG&gt; $(=&lt;/SPAN&gt;'['&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;amp;getfieldSelections($Field)&amp;amp;&lt;/SPAN&gt;']'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 11:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459259#M794767</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-05T11:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use GetFieldsSelection in Aggregations</title>
      <link>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459260#M794768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I found the issue. Has nothing to do with this aggregation. &lt;/P&gt;&lt;P&gt;There is a date dimension that I use for the diagram as well as for the listbox. I have several values per day so the diagram and the list show only values if there is exactly one value per day otherwise nothing. &lt;/P&gt;&lt;P&gt;I have to figure out how display all values for each day. I think that is worth another thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your kind help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 11:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-GetFieldsSelection-in-Aggregations/m-p/1459260#M794768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T11:55:18Z</dc:date>
    </item>
  </channel>
</rss>

